ASP.NET调试重定向到无效url

ASP.NET调试重定向到无效url,asp.net,visual-studio-2010,debugging,Asp.net,Visual Studio 2010,Debugging,我正在尝试调试我的应用程序,但找不到正确的URL 在Visual Studio 2010中单击F5(开始调试)后,我会在系统托盘通知窗口中看到以下内容: ASP.NET Development Server http://localhost:1392/zz 但在打开的Chrome浏览器地址中,URL是: http://www.localhost/zz/editad.aspx 我看到一个通知: 哎呀!Google Chrome找不到www.localhost 如果我手动将地址更改为 htt

我正在尝试调试我的应用程序,但找不到正确的URL

在Visual Studio 2010中单击F5(开始调试)后,我会在系统托盘通知窗口中看到以下内容:

ASP.NET Development Server  
http://localhost:1392/zz
但在打开的Chrome浏览器地址中,URL是:

http://www.localhost/zz/editad.aspx
我看到一个通知: 哎呀!Google Chrome找不到www.localhost

如果我手动将地址更改为

http://localhost:1392/zz 
它再次重定向回

http://www.localhost/zz/editad.aspx again
所以我似乎无法调试我的网站

我让hostsman使用以下URL运行:

# localhost name resolution is handled within DNS itself.
#   127.0.0.1       localhost
#   ::1             localhost
192.168.0.10    www.zorgbeurs.nl
192.168.0.10    zorgbeurs.nl
不确定这是否重要,但在我的web.config中我有。 作为重写规则:

<rule name="edit ad">?/?
<match url="^account/edit-ad/([0-9]+)?/??(/[a-zA-Z0-9-]+)?$" />
<action type="Rewrite" url="editad.aspx?id={R:1}" />
</rule>
?/?
以及防止未经授权的访问:

<location path="editad.aspx">
    <system.web>
        <authorization>
            <deny users="?" />
        </authorization>
    </system.web>
</location>


我能做些什么才能调试?

在您的解决方案中搜索字符串
editad
?我做了,只有出现在web.config中,我用这些信息更新了我的帖子。我还测试了default.aspx的if,它没有发生奇怪的事情,同样的情况也会发生,但只测试了“default.aspx”,而不是“editad.aspx”,尝试删除对
editid
(暂时)的这些引用,看看会发生什么?您的服务器是否将您重定向到该页面?(使用您的web调试器查看幕后发生的事情)它在其他浏览器上的行为如何?我删除了所有引用,但当我在editad.aspx上按VS中的F5时,我仍然看到相同的行为。你说的什么webdebugger让我可以看到幕后发生了什么?