尝试更新、修复、卸载时 Visual Studio 2012 崩溃 [英] Visual Studio 2012 crashes when trying to update, repair, deinstall

查看:17
本文介绍了尝试更新、修复、卸载时 Visual Studio 2012 崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的 Visual Studio 2012 副本不稳定.它启动了,我可以加载项目、编译和运行它们.但有时它会随机崩溃.现在,当我尝试将新的 Windows 窗体添加到项目时,它也会崩溃.但崩溃与加载的项目无关.

我的第一个想法是安装所有新更新,但如果我去更新 &扩展部分它打开对话框并在 1 秒后崩溃.然后我想我可以卸载它并重新安装 VS 2012 或 2013.但我也无法卸载它.如果我去windows程序卸载它,我可以点击更改按钮,但之后安装程序崩溃.我还尝试下载 VS 2013 预览版并安装它,但在显示窗口对话框之前它也会崩溃.

所以我不知道如何继续.其他人有类似的问题吗?

解决方案

尝试在安全模式下运行 Visual Studio (devenv/safemode) 或在打开日志记录的情况下运行它 ().

尝试重置设置和加载项设置(devenv/ResetSettings)和(devenv/ResetSkipPkgs),尝试重建所有模板(devenv/setup).

您甚至可以将一个 Visual Studio 实例作为调试器附加到另一个实例以查看异常发生的位置.有时它可以为您提供有价值的信息,有时崩溃不会发生,因为实际问题与时间有关.

如果一切都失败了,请打开 与 Microsoft 的支持电话在 Connect 上提交错误 或彻底重新安装您的系统.

从您的判断错误消息您正在运行 Visual Studio 2012 Web Developer Express 版本,而不是 devenv,请从普通(Windows)命令行窗口尝试 wdexpress.

另一个使 Visual Studio 非常不稳定的常见问题是加载项缓存损坏.清除它将触发 Visual Studio 为您重建它.

My copy of Visual Studio 2012 is instable. It starts up and I can load projects, compile and run them. But from time to time it crashes randomly. It now also crashes when I try to add a new windows form to a project. But the crashes are independent from the project loaded.

My first idea was to install all new updates but if I go to the updates & extensions section it opens the dialog box and crashes 1 second afterwards. I then thought I might deinstall it and reinstall VS 2012 or 2013. But I also cannot deinstall it. If I go to windows programs to deinstall it I can click on the change button, but after this the installation program crashes. I also tried to download the VS 2013 preview and install it but this also crashes before showing a dialog box of window.

So I don't know how to proceed. Does anybody else have similar problems?

解决方案

Try running Visual Studio in Safemode (devenv /safemode) or run it with logging turned on (devenv /log) the logs will be written to a folder in your user profile. Also check the Eventlog to see whether there's a error report. There should be 2 events logged when Visual Studio crashes. One "Application Error" and one ".NET Runtime Error". The latter will provide information about the stack trace that causes the crash:

When you try to uninstall Visual Studio, first remove update 1, 2 or 3, then repair or remove the whole thing. If uninstall fails, i'm afraid you'll need repave the machine to get it back in a supportable state. When you uninstall an update, you always need to repair Visual Studio itself before re-applying the updates.

Try removing all addins (Resharper, NDepend, etc) and extensions (either from the Visual Studio Updates and Extensions window or by deleting them from the Visual Studio or User profile folder).

Try resetting settings and add-in settings (devenv /ResetSettings) and (devenv /ResetSkipPkgs), try rebuilding all templates (devenv /setup).

You can even attach one Visual Studio instance as a debugger for the other to see where the exception occurs. Sometimes it can give you valuable information, sometimes the crash just doesn't happen because the actual issue is timing related.

If all else fails, open a support call with Microsoft, file a bug on Connect or do a clean re-install of your system.

Judging from you Error message you're running the Visual Studio 2012 Web Developer Express edition, instead of devenv, try wdexpress from a normal (windows) commandline window.

Another common issue that can make Visual Studio very unstable, is a corruption of the Add-in cache. Clearing it will trigger Visual Studio to rebuild it for you.

这篇关于尝试更新、修复、卸载时 Visual Studio 2012 崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆