问题描述
我的Visual Studio 2012的副本不稳定。它启动,我可以加载项目,编译和运行它们。但是有时它随机崩溃。它现在也崩溃,当我试图添加一个新的窗体到项目。但是崩溃是独立于项目加载的。
我的第一个想法是安装所有新的更新,但如果我去更新&扩展部分,它打开对话框,然后1秒后崩溃。然后我想我可以卸载它,并重新安装VS 2012或2013.但我也无法卸载它。如果我去Windows程序卸载它,我可以单击更改按钮,但此后,安装程序崩溃。我也试图下载VS 2013预览并安装它,但这也崩溃,然后显示一个对话框的窗口。
所以我不知道如何继续。
尝试在Safemode中运行Visual Studio( devenv / safemode
)或在启用日志记录的情况下运行()。
尝试重置设置和加载项设置( devenv / ResetSettings
)和( devenv / ResetSkipPkgs
),尝试重建所有模板( devenv / setup
)。
您甚至可以将一个Visual Studio实例作为另一个的调试器,以查看异常发生在哪里。
如果其他所有操作都失败,请打开,或清除系统重新安装。
判断你的错误讯息Visual Studio 2012 Web Developer Express版,而不是 devenv
,请从正常(Windows)命令行窗口中尝试 wdexpress
。
另一个可能使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崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!