Microsoft KB Archive/906763

= A macro does not play as expected in the Macros IDE when you record the macro in Visual Studio 2005 =

Article ID: 906763

Article Last Modified on 11/16/2007

-

APPLIES TO


 * Microsoft Visual Studio 2005 Professional Edition
 * Microsoft Visual Studio 2005 Standard Edition

-





SYMPTOMS
When you record a macro in Microsoft Visual Studio 2005, the macro does not play as expected in the Macros IDE or when you press CTRL+P.

You do not receive an error message or a warning message.



CAUSE
This issue occurs if the Mscorlib.tlb file is not registered correctly.

Note The Mscorlib.tlb file can be unregistered when an application or an add-in is removed from the computer.



RESOLUTION
To resolve this issue, repair the Microsoft .NET Framework 2.0. To do this, follow these steps:
 * 1) Click Start, click Run, type Appwiz.cpl, and then click OK.
 * 2) Click Microsoft .NET Framework 2.0, and then click Change/Remove.

Note In beta versions of Visual Studio, the .NET Framework version may be similar to Microsoft .NET Framework 2.0 Beta 2.
 * 1) Click Repair, click Next, and then follow the instructions on the screen to complete the repair process.



Steps to reproduce the behavior

 * 1) Click Start, click Run, type cmd, and then click OK.
 * 2) At the command prompt, type cd %windir%\Microsoft.NET\Framework\v2.0.50215, and then press ENTER.
 * 3) At the command prompt, type Regtlibv12.exe -u Mscorlib.tlb, and then press ENTER.
 * 4) At the command prompt, type exit, and then press ENTER.
 * 5) Start Visual Studio 2005.
 * 6) Record a simple macro, and then try to play the macro. Notice that the macro does not play as expected.

