Visual Studio 2010 和 IIS 5.1 调试问题
我正在使用带有 IIS 5.1 的 Visual Studio 2010,但无法调试我的网站。 错误是:
无法在 Web 服务器上启动调试。 Web 服务器配置不正确。请参阅帮助以了解常见配置错误。在调试器之外运行网页可能会提供更多信息。
我花了很多时间在上面,也用谷歌搜索了很多,但没有找到任何值得的东西。 请帮忙。
I am using Visual Studio 2010 with IIS 5.1 but unable to debug my website.
The error is:
Unable to start debugging on the web server. The web server is not configured correctly. See help for common configuration errors. Running the web page outside of the debugger may provide further information.
I have spent lot of time on it and googled a lot but find nothing worthy.
Please help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我建议获取并使用 IIS Express而不是 IIS 5.1。
它在 Windows XP 上受支持。
I suggest getting and using IIS Express instead of IIS 5.1.
It is supported on Windows XP.
确保 IIS 配置为使用集成 Windows 身份验证。查找从站点属性的“目录安全性”选项卡启动的“身份验证方法”对话框中的复选框。
确保启用了 HTTP 保持活动状态。您将在属性对话框的“网站”选项卡的“连接”部分中找到该复选框。
这个很奇怪,但它似乎对很多人来说都有效,将 http://localhost 添加到 Internet 中的受信任站点探险家。说实话,这似乎是对症状的修复,实际上并没有解决问题本身,但如果有效的话那就有效了。顺便说一句,您必须取消选中“此区域中的所有站点都需要服务器验证 (https:)”复选框才能将其添加为受信任站点。
有关详细信息:
http://msdn.microsoft.com/en-us/library/Aa290100
http://msdn.microsoft .com/en-us/library/0y3b8byc%28v=vs.80%29.aspx
Make sure that IIS is configured to use Integrated Windows Authentication. Look for the checkbox on the Authentication Method dialog launched from the Directory Security tab of the site properties.
Make sure that HTTP Keep Alives are enabled. You'll find that checkbox on the Web Site tab of the properties dialog, in the connections section.
This one is strange, but it seemed to do the trick for many out there, add http://localhost to the trusted sites in Internet Explorer. To tell the truth, this seems to be a fix for the symtoms, not actually fixing the problem itself, but if it works it works. BTW, you'll have to uncheck the “Require server verification (https:) for all sites in this zone“ checkbox to add it as a trusted site.
For more information:
http://msdn.microsoft.com/en-us/library/Aa290100
http://msdn.microsoft.com/en-us/library/0y3b8byc%28v=vs.80%29.aspx
http://geekswithblogs.net/TimH/archive/2006/05/29/80002.aspx
我在使用 VS 2010 和 IIS 7 时有时会遇到同样的问题。这很可能是权限问题。
您的网站是否使用自定义应用程序池?应用程序池的用户身份是什么?
ASP.NET 工作进程用户 (
IUSR_
) 或应用程序池身份用户(如果它们不相同)需要具有Read &执行
以及可能的列出文件夹内容
权限。您可以通过文件夹属性
对话框上的安全
选项卡进行设置。I sometimes have the same problem when using VS 2010 and IIS 7. It is most likely a permissions problem.
Are you using a custom application pool for your site? What's the user identity of the application pool?
Either the ASP.NET Worker Process user (
IUSR_
) or the application pool identity user (if they are not the same) will need to haveRead & Execute
and probablyList Folder Contents
permissions. You can set those through theSecurity
tab on theFolder Properties
dialog.