问题描述
我正在Windows 7 x32上运行Visual Studio 2008,IIS 7.5.我可以在IIS 7.5中运行ASP.NET网站,而无需进行调试,但是按F5调试时,我得到:
I am running Visual Studio 2008, IIS 7.5 on Windows 7 x32. I am able to run the ASP.NET web site in IIS 7.5 without debugging just fine, but when I press F5 to debug it, I get:
无法在Web服务器上开始调试.无法连接到网络服务器.确认Web服务器正在运行,并且传入的http请求没有被防火墙阻止.
推荐答案
在VS
中,右键单击您的Web项目->属性转到网络"标签.
In VS
, right click on your web project --> PropertiesGo to the Web tab.
确保选择了适当的单选按钮(使用VS Dev Server,使用本地IIS Web服务器等)
Make sure the appropriate radio button is selected (Use VS Dev Server, Use Local IIS Web Server, etc)
计算机死机后,我的价值有了改变.
另一种尝试:
在administrative
命令提示符下运行"iisreset
"(基本上只是重新启动IIS服务)
run "iisreset
" from an administrative
command prompt (basically just restarts the IIS service)
这篇关于无法在Web服务器上启动调试.无法连接到网络服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!