2012-07-03

One of my Visual Studio 2010 VMs gives me an error when recording a temporary macro:

---------------------------

Vsaenv

---------------------------

Cannot find one or more components. Please reinstall the application.

---------------------------

OK

---------------------------

Followed by:

---------------------------

Confirm re-creating recording project

---------------------------

Cannot load the recording macro project 'MyMacros' for the following reason:

Server execution failed

Would you like to recreate it

---------------------------

Yes No

---------------------------

Luckily, the first link got me to the VS2010 crashes when trying to edit a macro issue on Microsoft Connect.

There, EvilDr posted a workaround on 20100110:

Answer found at:

http://social.msdn.microsoft.com/Forums/en/vbide/thread/9a8079f1-4a0b-455d-80df-e9daadc2bc34

Referencing:

http://download.microsoft.com/download/8/C/E/8CE18AE7-CAA8-4A4C-87CF-0C3DF772322D/VS2010RTM.htm

On computers on which Visual Studio 2008 or SQL Server 2008 is installed and Visual Studio 2010 has been uninstalled and then reinstalled, using the Visual Studio Macros IDE may cause Visual Studio to crash

Uninstalling Visual Studio 2010 also removes the Visual Studio Macro Tools package. If the computer also has Visual Studio 2008 or SQL Server 2008, then reinstalling Visual Studio 2010 does not reinstall the Visual Studio Macro Tools package. This causes an error when the Macros IDE is started, and Visual Studio crashes if you try to recreate the MyMacros.vsmacros project.

To resolve this issue:

Delete the following file:

On a 64-bit operating system: “%ProgramFiles(x86)%\Microsoft Visual Studio 9.0\Common7\IDE\1033\Microsoft.VSDesignerUI.dll”

On a 32-bit operating system: “%ProgramFiles%\Microsoft Visual Studio 9.0\Common7\IDE\1033\Microsoft.VSDesignerUI.dll”

On the Add or Remove programs page, select Uninstall/Change Visual Studio 2010 and then click Next.

Select Add or Remove features.

Clear and then re-select any of the features in the list. This causes the update state to be enabled.

Finish the Setup wizard. Visual Studio Macro Tools should be installed.

Which means that I’m off to a couple of hours reinstallation job (:

–jeroen

via: VS2010 crashes when trying to edit a macro | Microsoft Connect.

Filed under: .NET, Development, Software Development, Visual Studio 2010, Visual Studio and tools

Show more