无法在 Web 服务器上开始调试.无法启动 ASP.NET 调试 VS 2010、II7、Win 7 x64 [英] Unable to start debugging on the web server. Could not start ASP.NET debugging VS 2010, II7, Win 7 x64

查看:24
本文介绍了无法在 Web 服务器上开始调试.无法启动 ASP.NET 调试 VS 2010、II7、Win 7 x64的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 Windows 7 x64 上运行 Visual Studio 2010(以管理员身份)和 IIS 7.我无需调试即可在 IIS 7 中运行 ASP.NET 网站,但是当我按 F5 进行调试时,我得到:

I am running Visual Studio 2010 (as Admin), IIS 7 on Windows 7 x64. I am able to run the ASP.NET web site in IIS 7 without debugging just fine, but when I press F5 to debug it, I get:

无法在 Web 服务器上开始调试.无法启动 ASP.NET 调试.无需调试即可启动项目以获得更多信息.

Unable to start debugging on the web server. Could not start ASP.NET debugging. More information may be available by starting the project without debugging.

不幸的是,帮助链接对我帮助不大,导致了一大堆东西.

Unfortunately the help link is not helping me much and leads down a heck of a large tree of things.

我检查了以下内容:

  • 安全要求——我不记得以前必须做任何特别的事情.IIS7 中的工作进程是 w3wp.exe.它说如果它作为 ASPNET 或 NETWORK SERVICE 运行,我必须具有管理员权限才能调试它.如何确定我是否需要在此处更改某些内容?

  • Security requirements — I don't recall having to do anything special before. The worker process in IIS7 is w3wp.exe. It says that if it's running as ASPNET or NETWORK SERVICE I must have Administrator privileges to debug it. How do I find out if I need to change something here?

网站属性页 > 开始选项 > 调试器 > ASP.NET 被选中.使用自定义服务器设置为站点的 URL(无需调试即可正常工作).

Web site Property Pages > Start Options > Debuggers > ASP.NET is checked. Use custom server is set to the URL of the site (which works fine without debugging).

调试在 web.config 中启用.

应用程序正在使用 ASP.NET 3.5(我最终想迁移到 4.0,但我需要处理一些迁移).

Application is using ASP.NET 3.5 (I want to move to 4.0 eventually but I have some migration to deal with).

应用程序池:对 .NET AppPool 进行分类(也尝试过 DefaultAppPool).

Application pool: Classing .NET AppPool (also tried DefaultAppPool).

我接下来可以检查的任何想法?

Any ideas where I can check next?

安装 IIS、VS、创建网站并开始测试应该不会那么难吧?

Surely it shouldn't be that hard to install IIS, VS, create a web site, and start testing it?

提前致谢.

推荐答案

事实证明,罪魁祸首是 IIS Url Rewrite 模块.我定义了一个规则,将调用 Default.aspx(它被设置为网站的起始页)重定向到网站的根目录,这样我就可以规范的主页 URL.但是,显然 VS 对此有问题并感到困惑.这个问题在我使用 Helicon ISAPI_Rewrite 时没有发生,所以我什至没有想到去检查.

Turns out that the culprit was the IIS Url Rewrite module. I had defined a rule that redirected calls to Default.aspx (which was set as the start page of the web site) to the root of the site so that I could have a canonical home URL. However, apparently VS had a problem with this and got confused. This problem did not happen when I was using Helicon ISAPI_Rewrite so it didn't even occur to me to check.

我最终从头开始创建了一个全新的网站,并将项目/文件一点一点地移植到我的解决方案中,并重建我的 web.config,直到我发现这一点!好吧,至少现在我有一个使用 .NET 4.0 的稍微干净一点的网站(到目前为止,希望我不会遇到任何障碍)--但是太痛苦了!

I ended up creating a whole new web site from scratch and porting projects/files over little by little into my solution and rebuilding my web.config until I found this out! Well, at least now I have a slightly cleaner site using .NET 4.0 (so far, hopefully I won't run into any walls)--but what a pain!

这篇关于无法在 Web 服务器上开始调试.无法启动 ASP.NET 调试 VS 2010、II7、Win 7 x64的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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