Visual Studio 2010 出现关于ActivityLog.xml错误的解决方案

时间:2022-05-23 20:57:32
不知道怎么的,在用VS编写程序是第一次会跳出“ Visual Studio has encountered an exception.This may be caused by an extension.

You can get more information by running the application together with the /log parameter on command line ,and then examining the file 'C:\Document and Settings\Administrator\Application Data\Microsoft\Visual Studio\10.0\ActivityLog.xml'”。按照有人方法安装“VS10-KB2251084-x86.exe”补丁后任然没效果,后来发现是注册表的问题。

HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\10.0\Text Editor that has the value name "Report Exceptions".  To suppress the message box, create this registry value as a DWORD and set it to 0.

HKEY_CURRENT_USER

|-------Software

|--------------Microsoft

|---------------------VisualStudio

|----------------------------10.0

|-----------------------------------Text Editor

在TextEdit上新建“Report Exceptions“的DWORD,设定值为0,完美解决。