Roh*_*ana 13 .net asp.net visual-studio-2008 iis-7.5 visual-studio-debugging
我在Windows 7 x32上运行Visual Studio 2008,IIS 7.5.我能够在IIS 7.5中运行ASP.NET网站而无需调试,但是当我按F5进行调试时,我得到:
无法在Web服务器上启动调试.无法连接到网络服务器.验证Web服务器是否正在运行,并且防火墙未阻止传入的http请求.
iso*_*nol 13
在VS,右键单击您的Web项目 - >属性转到Web选项卡.
确保选择了相应的单选按钮(使用VS Dev服务器,使用本地IIS Web服务器等)
电脑冻结后,我对这个价值有了改变.
另一件事要尝试:
iisreset从administrative命令提示符运行" " (基本上只是重新启动IIS服务)
验证您是否web.config有以下条目:
<compilation debug="true" targetFramework="2.0" />
Run Code Online (Sandbox Code Playgroud)
注意:如果您的目标是框架 1.1,那么显然将 更改2.0为1.1.
更新:
The `targetFramework` attribute is new in .NET 4.0 and later, so to enable debugging on .NET 2.0 and earlier, then you cannot use the `targetFramework` attribute, like this:
<compilation debug="true" />
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
24526 次 |
| 最近记录: |