C# ASP.net网站在发布时工作正常,但在使用VS调试时返回HTTP错误503

C# ASP.net网站在发布时工作正常,但在使用VS调试时返回HTTP错误503,c#,asp.net,web,visual-studio-2012,iis-6,C#,Asp.net,Web,Visual Studio 2012,Iis 6,我使用VS2012已经有一段时间了,在发布或调试我的网站时没有遇到很多问题 但就在今天,我尝试将我的网站发布到本地服务器上的一个新端口,之后每当我尝试使用“本地ISS Web服务器”或“Visual studio开发服务器”调试我的网站时,我的页面都会返回: 火狐: Unable to connect Firefox can’t establish a connection to the server at localhost:59617. The site could be tempora

我使用VS2012已经有一段时间了,在发布或调试我的网站时没有遇到很多问题

但就在今天,我尝试将我的网站发布到本地服务器上的一个新端口,之后每当我尝试使用“本地ISS Web服务器”或“Visual studio开发服务器”调试我的网站时,我的页面都会返回:

火狐:

Unable to connect

Firefox can’t establish a connection to the server at localhost:59617.

The site could be temporarily unavailable or too busy. Try again in a few moments.
If you are unable to load any pages, check your computer’s network connection.
If your computer or network is protected by a firewall or proxy, make sure that Firefox is permitted to access the Web.
铬:

This page isn’t working

localhost is currently unable to handle this request.
HTTP ERROR 503
奇怪的是,我仍然可以将网站发布到我们的服务器上,甚至是本地,并让它工作。它只有在调试时才起作用。我试着重新启动我的电脑,尝试不同的端口,但没有任何运气

我甚至试着像这家伙那样修改我的主机文件:

但还是没有运气


有什么建议吗?

当然,我在发布问题后马上找到了答案:


我必须转到项目文件夹的根目录并删除app_offline.htm文件。

删除app-offline.htm也保存了我的问题。