尝试调试 ASP.NET 网站时,Visual Studio 2013 sp1 挂起? [英] Visual Studio 2013 sp1 hangs when trying to debug ASP.NET web site?

查看:11
本文介绍了尝试调试 ASP.NET 网站时,Visual Studio 2013 sp1 挂起?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近,当尝试调试/跟踪 ASP.NET 网站时,Visual Studio 2013 再次开始挂起.该网站是使用 WebMatrix 3 创建的,但我认为这无关紧要.

Recently, Visual Studio 2013 started hanging again when trying to debug/trace an ASP.NET web site. The site was created with WebMatrix 3 but I don't think that is relevant.

VS2013 打开网站解决方案.加载需要很长时间.一旦它确实加载并运行该项目,它就会到达我的第一个断点,然后 IDE 窗口在标题栏中快速显示(无响应)"并且 IDE 现在挂起.

VS2013 opens the web site Solution. It takes a really long time to load up. Once it does load up and I run the project, it hits my first breakpoint and then the IDE Window quickly shows "(not responding)" in the title bar and the IDE is now hung.

这发生在我很久以前,根本原因是需要设置使用 64 位 IIS"选项,如这篇 SO 帖子所示:

This happened to me a long time ago and the root cause was needing to set the "use 64-bit IIS" option as indicated by this SO post:

Visual Studio 2013每次运行我的测试解决方案时都会崩溃并重新启动

但我三重检查,我确实检查了 64 位选项.我该怎么做才能解决这个问题?

But I triple-checked and I do have the 64-bit option checked. What can I do to fix this?

推荐答案

见这个 博客 在问题中.它基本上说要确保在解决方案中选择显示所有文件"并检查不属于您的项目/解决方案的任何文件夹.

See this blog in the issue. It basiclly says to make sure "show all files" is selected in the solution and check for any folders that don't belong that are not part of your project/solution.

几天后问题再次浮出水面,我终于通过不合作的调试器找出了问题所在.我有一个文件夹,其中包含大约 20,000 个图像,这些图像未包含在 Visual Studio Web 项目中,但位于网站的目录中.我在解决方案资源管理器中打开了显示所有文件"以将一些脚本文件添加到项目中.当显示所有文件"关闭时,F5(开始调试)就像冠军一样工作.当显示所有文件"打开时,Visual Studio 变得无响应.实际上,它并没有冻结",而只是需要很长时间来处理这 20,000 个图像文件.

The problem resurfaced again a few days later and I finally figured out the problem with my uncooperative debugger. I have a folder containing approximately 20,000 images that are not included in the Visual Studio web project but are sitting in a directory in the web site. I had turned on "Show All Files" in Solution Explorer to add some script files into the project. When "Show All Files" is off, F5 (Start Debugging) works like champ. When "Show All Files" is on, Visual Studio becomes unresponsive. In reality it is not "frozen" but simply taking a very long time to process those 20,000 image files.

对我来说,它是一个名为 backup 的文件夹,它是网站的备份(由 VS 创建).我删除了有问题的文件夹并加载了站点以进行调试.

For me, it was a folder created called backup, which was a backup of the site (created by VS). I deleted the folder in question and the site loaded for debugging.

这篇关于尝试调试 ASP.NET 网站时,Visual Studio 2013 sp1 挂起?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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