【VC疑难】Visual Studio has encountered an exception.This may be caused by an extension.

真是气死,今天想新建一个.c练练手,昨天刚安装上,新建好刚输入“#”,就弹出

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 SettingsAdministratorApplication DataMicrosoftVisual Studio10.0ActivityLog.xml'

惯用手法复制粘贴,找到了这个https://social.msdn.microsoft.com/Forums/vstudio/en-US/9b5455c6-a9c6-4c18-90ca-51311411346c/visual-studio-has-encountered-an-exception-this-may-be-caused-by-an-extension?forum=netfxsetup

他的question是

when i was try to crate a new website and create a new table at that time this type of error occurred means one dailog box is automatically opened "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 the command line,and then examining the file 'c:userdhruvappdata oamingmicrosoftvisual studio10.0acitvitylog.xml'   ."

so please help me , please reply me urgently....

仔细一看,he try to的是website,我明明是aplication,但是还是按照解决方案做了下

It seems this error was due to extension. What's your Visual Studio version?  

Could you please disable or remove all of your extensions? //昨天安装了msdn for vs2008,一想会不会是这个原因呢,果断卸载,没用,go on

After that, please follow some common steps to reinstall templates:

1)Please open Windows Explorer, and navigate to  <Visual Studio Installation Path>Common7IDE (by default is C:Program Files Microsoft Visual Studio 10.0Common7IDE); //恩,找啊找啊找到了next
2)Delete the ItemTemplatesCache, ProjectTemplatesCache folder; (If you are using VWDExpress, please delete folder under Common7IDEVWDExpress)//路径是找到,but there is not cache!奔溃。。。还是继续看完
3)Open Visual Studio Command Prompt (2010) under Start menu -> All Programs -> Microsoft Visual Studio 2010 -> Visual Studio Tools (run it with Administrator privilege: right-click the program -> Run as administrator); //试了下,我大管理员运行,还是没用,不行看不下去了
4)Run the devenv /InstallVSTemplates switch; (VWDExpress if you are using it)
5)Run the devenv /Setup switch


继续找啊找啊找朋友,诶,还是咱csdn好啊,这个兄台有个转载http://blog.csdn.net/tong_xin2010/article/details/20484951

解决方案打上这个补丁VS10-KB2251084-x86.exe(带上链接,官网挺慢的,还是csdn)诶,好了,泪奔ing...

原文地址:https://www.cnblogs.com/portb/p/12037344.html