visual studio has encountered an exception .this may be caused by an extension

来源:互联网 发布:cydia怎么安装软件 编辑:程序博客网 时间:2024/06/17 08:31

visual studio has encountered an exception .this may be caused by an extension

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

1) Please open Windows Explorer, and navigate to \Common7\IDE (by default is C:\Program Files \Microsoft Visual Studio 10.0\Common7\IDE);
2) Delete the ItemTemplatesCache, ProjectTemplatesCache folder; (If you are using VWDExpress, please delete folder under \Common7\IDE\VWDExpress)
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

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

1) 到vs安装目录下的Common7\IDE ( 默认是 C:\Program Files \Microsoft Visual Studio 10.0\Common7\IDE);
2) 删除 ItemTemplatesCache, ProjectTemplatesCache 文件夹; (如果你使用的是 VWDExpress, 请删除文件夹 under \Common7\IDE\VWDExpress)
3) 打开 Visual Studio Command Prompt (2010)
在开始菜单 -> All Programs -> Microsoft Visual Studio 2010 -> Visual Studio Tools (使用管理员权限: 右键 程序 -> 作为administrator运行);
4) Run the devenv /InstallVSTemplates switch; (VWDExpress if you are using it)
5) Run the devenv /Setup switch
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
我遇到这个问题,新建工程,或者打开以前的工程,一按回车键,就出这个错误
上面的方法不能用,或者嫌麻烦,就是用vs2010的安装程序的修复功能,修复一下就可以了

0 0
原创粉丝点击