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

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
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值