简体   繁体   English

启动asp.net站点调试时,Visual Studio 2010会挂起

[英]Visual Studio 2010 hangs when starting asp.net site debugging

i have problem with Visual Studio 2010 on Windows 7 x64. 我在Windows 7 x64上遇到Visual Studio 2010的问题。 When i started asp.net site debugging, it stoped working. 当我启动asp.net站点调试时,它停止工作。 Only solution is restarting IIS. 只有解决方案是重新启动IIS。 Have anyone experiences with this? 有没有人体验过这个?

Thanks 谢谢

As Peter mentioned, manually attaching through the Attach to Process dialog should work. 正如Peter所提到的,通过Attach to Process对话框手动附加应该可行。

Another option is to temporarily update your project to .NET Framework v4.0. 另一种选择是将项目临时更新到.NET Framework v4.0。 In the IDE, this can be done in 'Build' section of under project properties. 在IDE中,这可以在项目属性下的“构建”部分中完成。

We are still investigating the issue to find a longer term solution. 我们仍在调查该问题以寻找更长期的解决方案。

Sorry for the inconvenience that this problem has caused. 很抱歉此问题造成的不便。

This M$ Connect article points straight to the topic: http://connect.microsoft.com/VisualStudio/feedback/details/556000/vs-2010-hangs-when-debugging-asp-net-3-5-web-application-or-website 这篇M $ Connect文章直接指向主题: http//connect.microsoft.com/VisualStudio/feedback/details/556000/vs-2010-hangs-when-debugging-asp-net-3-5-web-application -或网站

Apart from the different intermediate solutions proposed, there seems to be an official Microsoft VS 2010 HotFix available here: http://archive.msdn.microsoft.com/KB2106584/Release/ProjectReleases.aspx?ReleaseId=4834 . 除了提出的不同中间解决方案之外,似乎还有一个官方的 Microsoft VS 2010 HotFix: http//archive.msdn.microsoft.com/KB2106584/Release/ProjectReleases.aspx? ReleaseId = 4834。

HTH HTH

Here's a workaround that helped me: 这是一个帮助我的解决方法:

Go to Debug->Attach to Process. 转到Debug-> Attach to Process。 If the 'Attach To' box says 'Automatic: Native code' then click the 'Select...' button. 如果“附加到”框显示“自动:本机代码”,则单击“选择...”按钮。 In the 'Select Code Type' dialog change the option from 'Automatically determine the type of code to debug' to 'Debug these code types' and choose ONLY the options for you project. 在“选择代码类型”对话框中,将“自动确定要调试的代码类型”选项更改为“调试这些代码类型”,然后仅选择项目的选项。 For me this was 'Managed (v2.0, v1.1, v1.0)'. 对我来说,这是'Managed(v2.0,v1.1,v1.0)'。 Click OK. 单击确定。 Then click Cancel in the 'Attach to Process' dialog. 然后在“附加到进程”对话框中单击“取消”。

At this point I'm now able to do F5 Debugging. 此时我现在可以进行F5调试了。

I hope this helps! 我希望这有帮助!

For what it is worth I had this problem this morning out of nowhere. 值得我今天早上出现这个问题。 In my case I am converting a database into webpages and one of the folders of one of the projects in my solution now has over 200 thousand html web pages. 在我的情况下,我正在将数据库转换为网页,我的解决方案中的一个项目的文件夹之一现在有超过20万个html网页。 As soon as I one off'd my solution and removed the project with the giant folder debugging worked again. 一旦我解决了我的解决方案并删除了巨型文件夹调试项目再次工作。

This is not unlike what happens when performing a global search and vs 2010 tries to search a folder with an enormous # of files. 这与执行全局搜索时发生的情况没有什么不同,而2010年试图搜索具有大量文件的文件夹。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在调试ASP.Net 3.5时观察集合时,Visual Studio 2012挂起 - Visual Studio 2012 hangs, when observing an Collection while debugging ASP.Net 3.5 使用Microsoft Visual Studio 2010进行调试。ASP.NET - Debugging with Microsoft Visual Studio 2010. ASP.NET 尝试调试ASP.NET网站时,Visual Studio 2013 sp1挂起? - Visual Studio 2013 sp1 hangs when trying to debug ASP.NET web site? 运行Asp.Net网站项目时如何在Visual Studio 2010中禁用脚本调试? - How to disable script debugging in Visual Studio 2010 when running Asp.Net website project? 在调试ASP.NET MVC应用程序时,Visual Studio 2010 Dev Server停止提供样式表吗? - Visual Studio 2010 Dev Server Stopped Serving Style Sheets When Debugging ASP.NET MVC app? 在Visual Studio 2008中调试HTTPS ASP.NET站点? - Debugging HTTPS ASP.NET site in Visual Studio 2008? 调试asp.net应用程序时在Visual Studio中查看会话 - View sessions in Visual Studio when debugging a asp.net application 防止 Visual Studio 2010 启动 ASP.net 开发服务器 - Prevent Visual Studio 2010 from starting ASP.net development server 网站不能在IIS中工作,但可以在Visual Studio调试模式下工作Asp.Net - Site not working in IIS but working in visual studio debugging mode Asp.Net Visual Studio正在调试我没有要求的ASP.Net网站! - Visual studio is debugging an ASP.Net site I didn't ask it to!
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM