ASP.net网站在发布时工作正常,但在使用VS进行调试时返回HTTP错误503
问题描述:
我一直在使用VS 2012一段时间,并且在发布或调试我的网站时没有遇到很多问题。ASP.net网站在发布时工作正常,但在使用VS进行调试时返回HTTP错误503
但就在今天我想发表我的网站到一个新的端口在本地服务器上,之后,每当我试图调试使用“本地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
奇怪的是,我仍然可以发布站点到我们的服务器,甚至在本地,并有我工作。它只在调试时不起作用。我试过重新启动我的电脑,尝试不同的端口,但没有任何运气。
我甚至试图修改这样的家伙我的主机文件所做的:http://www.grumpydev.com/2009/03/12/strange-problem-unable-to-connect-to-the-aspnet-webserver-on-localhost/comment-page-1/#comment-73
,但仍然没有运气。
有什么建议吗?
答
当然,我找到了答案之后我发布了一个问题:
https://stackoverflow.com/a/6661177/5428728
我不得不去我的项目文件夹的根目录,并删除app_offline.htm文件。