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



The information in this article 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.
  3. Click Repair, click Next, and then follow the instructions on the screen to complete the repair process.

MORE INFORMATION

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.

REFERENCES

For more information about how to record a macro in Visual Studio 2005, visit the following Microsoft Developer Network (MSDN) Web site:For more information about how to run a macro in Visual Studio 2005, visit the following MSDN Web site:

Modification Type:MajorLast Reviewed:10/17/2005
Keywords:kbDev kbtshoot kbprb KB906763 kbAudDeveloper