Pages

Monday, June 2, 2014

Enabling Visual Studio Macros in Windows Latest Update

In the latest up-to-date windows instance (after February 2014), the Visual Studio Macros don’t work properly. Some .Net security updates break Visual Studio 2010 Macros functionality. Macros just don’t run any  more without an error message. In order to enable them, some specific updates should be uninstalled from the system.

Check out the following table and choose the appropriate update package according to the OS version & .Net version and uninstall them from the system to enable macros.

OS\.Net Version 4.5.1 4.5 3.5
Windows 8.1 KB2898871
Windows 8 KB2898870 KB2898865
Windows 7 KB2898869 KB2898864 KB2898855
Windows XP KB2898855

The installed windows updates could be uninstalled from,

Control Panel -> Windows Update -> Installed Update -> ‘select the appropriate one’ -> Uninstall

But some users or organizations may expect that their system should be up-to-date to real time. So in such a situation, they’ll encounter the problem. So we suggest another solution by altering some configuration files in the system.

These files cannot be altered normally. Because they are locked with some system services. So the user can read; but no one can access them with edit permission. So we advise to ‘safe Boot’ the system. Hold the F8 key when powering on the system and choose the ‘Safe Mode’ option in the black screen. Then normally log in to the system. Windows would be loaded with basic initial processes and most of the other process will be in the dead state. So those particular files would be released to edit and alter.

Open the following three files in any text editor available and add the line <AllowDComReflection enabled="true"/> right after the  <runtime> span.

"C:\Program Files (x86)\Common Files\Microsoft Shared\VSA\9.0\VsaEnv\vsmsvr10.exe.config"

"C:\Program Files (x86)\Common Files\Microsoft Shared\VSA\9.0\VsaEnv\vsaenv10.exe.config"

"C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe.config"



<configuration>
   <runtime>
      <AllowDComReflection enabled="true"/>

No comments:

!-- Twitter Bird start Techblaster.net -->