ASP.NET调试器仅在VS2012中不断崩溃 [英] ASP.NET Debugger keeps breaking only with VS2012

查看:82
本文介绍了ASP.NET调试器仅在VS2012中不断崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Visual Studio 2012 Ultimate.我有一个ASP.NET项目.在Visual Studio 2012中,ASP.NET调试器不起作用,在Visual Studio 2010中,它可以工作.使用VS2012,调试器可以正常运行,然后停止.我修复了VS2012,仍然没有修复 问题.我卸载了VS2012,然后重新安装了它,它似乎已解决了该问题.我能够再次调试ASP.NET项目.然后大约一周后,它再次停止工作.我唯一能想到的是,有一个Visual Studio 2012更新 我申请了在我第一次安装VS2012时,我的调试器肯定在应用更新后就坏了.使用最新安装的VS2012,我不记得在应用更新后是否成功调试.我已经搜寻了,找不到了 应用此更新后,任何具有ASP.NET调试问题的人.我的项目中还有其他人已应用此更新,但没有一个人有任何问题.

这是错误:

''无法启动配置的Visual Studio开发Web服务器.无法开始调试.

发生错误,通常表明安装损坏(代码0x80040154).如果问题仍然存在,请通过控制面板"中的添加或删除程序"修复Visual Studio安装."

任何帮助将不胜感激.我不知所措,我不想再重新安装Visual Studio,也不想担心将来会应用错误的更新.

解决方案

威廉,

感谢您在MSDN论坛中发帖.

只是为了清楚地说明此问题,您是说所有asp.net应用程序都存在相同的问题吗?

如果在未调试的情况下运行Web应用程序(CTRL + F5),是否运行良好?如何以管理员身份运行VS?

然后大约一周后,它又停止工作了.我唯一能想到的就是我应用了Visual Studio 2012更新.在我第一次安装VS2012时,我的调试器肯定在之后就坏掉了 我应用了此更新.

您是说您安装了VS2012 Update2?安装此更新后,它在我的环境中运行良好.如果您未安装此更新,请先安装它,然后再次检查.如果安装了它,建议您将其删除,然后重新安装.所以我们 可以确保它是否与此更新安装有关.

如果所有Web应用程序都存在相同的问题,则可以找到IDE文件夹,然后运行这些命令,或者可以设置系统环境的路径.

C:\ Program Files(x86)\ Microsoft Visual Studio 11.0 \ Common7 \ IDE

Devenv.exe/SafeMode:以最小加载窗口的安全模式启动IDE.

Devenv.exe/ResetSettings:恢复IDE的默认设置,还可以选择重置为指定的VSSettings文件.

Devenv.exe/ResetAddin:删除与指定加载项关联的命令和命令UI.

Devenv.exe/ResetSkipPkgs:清除添加到VSPackages的所有SkipLoading标签.

之后,您可以在新的工作区中创建一个新项目,以避免旧工作区设置出现任何问题.再次检查.如果仍然没有帮助,恐怕您会修理/重新安装VS.

但是,如果只是特定的Web应用程序存在此问题,您可以与我分享一个简单的示例,我将尝试在我的一侧对其进行调试,以便我们确定它是否与VS或项目相关. /p>

最好的问候


I'm using Visual Studio 2012 Ultimate. I have an ASP.NET project. In Visual Studio 2012 the ASP.NET debugger doesn't work, in Visual Studio 2010 it does. With VS2012, the debugger was working properly then stopped. I repaired VS2012, still didn't fix the issue. I uninstalled VS2012 and reinstalled it and it seemed to have fixed the issue. I was able to debug ASP.NET projects again. Then about a week later it stopped working again. The only thing I can think of is that there was a Visual Studio 2012 update which I applied. With my first VS2012 install, my debugger definitely broke right after I applied the update. With the latest install of VS2012, I can't remember if I debugged successfully after applying the update. I have searched and searched and can't find anyone with ASP.NET debug issues after applying the update. There are other people on my project that have applied the update and none of them have had any issues. 

This is the error:

"Unable to launch the configured Visual Studio Development Web server. Unable to start debugging.

An error occurred that usually indicates a corrupt installation(code 0x80040154). If the problem persists, repair your Visual Studio installation via 'Add or Remove Programs' in Control Panel."

Any help would be greatly appreciated. I'm at my wits end, I don't want to have to reinstall Visual Studio again and I don't want to have to worry about applying bad updates in the future.

解决方案

Hi William,

Thank you for posting in the MSDN forum.

Just to make this issue clearly, do you mean that all asp.net apps have the same issue?

If you run a web application without debugging (CTRL+F5), does it work well? How about running your VS as the admin?

Then about a week later it stopped working again. The only thing I can think of is that there was a Visual Studio 2012 update which I applied. With my first VS2012 install, my debugger definitely broke right after I applied the update.

Do you mean that you installed the VS2012 Update2? It worked well in my Environment after I installed this update, if you didn’t install it, please install it, and check it again. If you installed it, I suggest you remove it and then re-install it. So we could make sure that whether it is related to this update installing.

If all web apps have the same issue, you could locate to the IDE folder then run these commands, or you can set path to the system environment.

C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE

Devenv.exe /SafeMode: Launches the IDE in safe mode loading minimal windows.

Devenv.exe /ResetSettings: Restores the IDE's default settings, optionally resets to the specified VSSettings file.

Devenv.exe /ResetAddin: Removes commands and command UI associated with the specified Add-in.

Devenv.exe /ResetSkipPkgs: Clears all SkipLoading tags added to VSPackages.

After these, you can create a new project in a new workspace to avoid if there’re any problems of the old workspace settings. Check it again. If still no help, I’m afraid that you would repair/re-install your VS.

But if just the specific web app has this issue, you could share me a simple sample, I will try to debug it in my side, so we could make sure that whether it is related to your VS or the project.

Best Regards,


这篇关于ASP.NET调试器仅在VS2012中不断崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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