更改“项目 URL”导致 ASP.Net Web 应用程序不可调试
我有一个 ASP.NET Web 应用程序项目,用于托管 WCF 数据服务 (OData) 项目。
我去改变了网址:
到
完成此操作后,我为新项目 URL 创建了一个虚拟目录。
现在,当我运行时,我收到此错误:
无法在 Web 服务器上启动调试。 Web 服务器配置不正确。请参阅帮助以了解常见配置错误。在调试器之外运行网页可能会提供更多信息。
我单击了帮助,但没有任何帮助(是 IIS 6 级别说明,我有 IIS 7)。我用谷歌搜索了一下,得到的都是相当笼统的答复。
我怎样才能让它再次工作? (除了恢复到我的旧网址之外。恢复有效,但我更改它是有充分理由的。)
I have an ASP.NET Web Application project that I am using to host a WCF Data Services (OData) project.
I went and changed the url from:
to
after I did that I created a Virtual Directory for the new project URL.
Now when I run I get this error:
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 clicked help but it was no help (was IIS 6 level instructions, I have IIS 7). I did some googling and it was all fairly generic responses.
How can I get this working again? (Aside from revert to my old Url. Reverting works but I changed it for a very good reason.)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您的虚拟目录需要指向您最初调试的同一 scr 目录。
另外,请确保为 Windows 身份验证配置虚拟目录,这是调试所必需的。
Your virtual directory need to point to the same scr directory you were originally debugging against.
Also, make sure the virtual directory is configured for Windows Authentication, which is required for debugging.
我必须在 IIS 中访问我的网站并在其下添加一个名为 v1 的文件夹。在我这样做之后,一切都很顺利。
I had to go to my website in IIS and add a folder under it called v1. After I did that it all worked perfectly.