Visual Studio宏停止工作

时间:2014-02-27 08:50:35

标签: visual-studio visual-studio-macros

我的Visual Studio宏停止工作,没有显示错误或记录我可以找到。

(我确实认为这是我对我的机器做的事情。)

1 个答案:

答案 0 :(得分:8)

Microsoft发布了一个Windows Update,修复了破坏Visual Studio宏的安全问题(MS14-009)。

KB2934830中描述的解决方法是添加

<?xml version="1.0"?>
<configuration>
 <runtime>
  <AllowDComReflection enabled="1"/>
 </runtime>
</configuration>

到Visual Studio宏服务器.exe.config

根据您的Visual Studio版本和Windows位数,文件为:

64-bit Windows:
\Program Files (x86)\Common Files\Microsoft Shared\VSA\

32-bit Windows:
\Program Files\Common Files\Microsoft Shared\VSA\

VS2k5 (SP1):
8.0\VsaEnv\Vsmsvr.exe.config

VS2k8:
9.0\VsaEnv\Vsmsvr.exe.config

VS2010:
9.0\VsaEnv\Vsmsvr10.exe.config

您需要以管理员身份编辑文件(或以其他方式调整权限),并且它应该已包含<configuration><runtime>部分。

(虽然我从知识库文章中收集了上述内容,但我的Google搜索是通过this找到的。)

相关问题