VS2010错误:无法在Web服务器上启动调试 [英] VS2010 error: Unable to start debugging on the web server

查看:822
本文介绍了VS2010错误:无法在Web服务器上启动调试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我收到错误消息无法在Web服务器上启动调试在Visual Studio 2010中我点击帮助按钮并遵循相关建议没有成功。

I get error message "Unable to start debugging on the web server" in Visual Studio 2010. I clicked the Help button and followed the related suggestions without success.

这恰好与新创建的本地ASP.Net项目修改为使用IIS,而不是卡西尼(这对于调试工作)时。它提示设置调试在web.config =true,并随即弹出的错误。没有在事件查看器中显示出来。

This happens with a newly created local ASP.Net project when modified to use IIS instead of Cassini (which works for debugging). It prompts to set debug="true" in the web.config and then immediately pops up the error. Nothing shows up in the Event Viewer.

我可以附加到W3WP进行调试。它的工作原理,但并不像F5一样方便。

I am able to attach to w3wp to debug. It works but is not as convenient as F5.

我也有在同一台PC上VS2008类似的问题。调试用于两个工作。

I also have a similar problem with VS2008 on the same PC. Debugging used to work for both.

我已经重新登记的框架4(aspnet_regiis的-i)。我跑了VS2010修复(这是RTM版本)。我运行在Windows Server 2008 R2的64箱。

I have re-registered Framework 4 (aspnet_regiis -i). I ran the VS2010 repair (this is the RTM version). I am running on a Windows Server 2008 R2 x64 box.

我有安装ReSharper的V5。

I do have Resharper V5 installed.

必须有一些配置设置或注册表值,它生存的修复导致的问题。

There must be some configuration setting or registry value that survives the repair causing the problem.

我想AP preciate任何想法。

I'd appreciate any ideas.

推荐答案

我得到了与Windows 7我安装VS2010和我的研究与开发环境,希望我的F5调试的问题也就不复存在了,但它仍然无法启动调试新PC 。这是一个很好的线索,因为它排除了安装软件。

I got a new PC with Windows 7. I installed VS2010 and my developement environment and hoped my F5 debug problem would be gone but it still failed to start the debugger. This was a good clue since it ruled out the install of software.

我终于追查到我的HOSTS文件。我有一些我的,我可以像访问本地网站的条目HTTP://testsite.lcl,但我已经分配是我的机器的IP,而不是使用127.0.0.1所以它看起来像一个远程服务器VS2010的IP。变回127.0.0.1解决了这个问题。

I finally traced it down to my HOSTS file. I had an entry for some of my local websites which I can access like "http://testsite.lcl" but the IP I had assigned was my machine's IP instead of using 127.0.0.1 so it looked like a remote server to VS2010. Changing back to 127.0.0.1 resolved the issue.

感谢大家对这一帮助。

这篇关于VS2010错误:无法在Web服务器上启动调试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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