Article ID: 906763 - Last Review: November 16, 2007 - Revision: 1.2
A macro does not play as expected in the Macros IDE when you record the macro in Visual Studio 2005
On This Page
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.
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.
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:
- Click Start, click Run, type Appwiz.cpl, and then click OK.
- 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. - Click Repair, click Next, and then follow the instructions on the screen to complete the repair process.
MORE INFORMATION
Steps to reproduce the behavior
- Click Start, click Run, type cmd, and then click OK.
- At the command prompt, type cd %windir%\Microsoft.NET\Framework\v2.0.50215, and then press ENTER.
- At the command prompt, type Regtlibv12.exe -u Mscorlib.tlb, and then press ENTER.
- At the command prompt, type exit, and then press ENTER.
- Start Visual Studio 2005.
- 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:
http://msdn2.microsoft.com/en-us/library/7kyhdt1z(vs.71).aspx
(http://msdn2.microsoft.com/en-us/library/7kyhdt1z(vs.71).aspx)
For more information about how to run a macro in Visual Studio 2005, visit the following MSDN Web site:http://msdn2.microsoft.com/en-us/library/a0003t62(vs.71).aspx
(http://msdn2.microsoft.com/en-us/library/a0003t62(vs.71).aspx)
Note: This article is from Microsoft Knowledage Base
Related problems posted by other users | |
| more... |

