【问题标题】:ASP.net Website works fine when published but returns HTTP error 503 when debugging with VSASP.net 网站在发布时工作正常,但在使用 VS 调试时返回 HTTP 错误 503
【发布时间】:2017-08-07 15:50:54
【问题描述】:

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

但就在今天,我尝试将我的网站发布到本地服务器上的新端口,之后每当我尝试使用“本地 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

但还是没有运气。

有什么建议吗?

【问题讨论】:

    标签: c# asp.net web visual-studio-2012 iis-6


    【解决方案1】:

    当然,我在发布问题后立即找到答案:

    https://stackoverflow.com/a/6661177/5428728

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

    【讨论】:

    • 删除 app-offline.htm 也解决了我的问题。
    猜你喜欢
    • 1970-01-01
    • 2015-07-13
    • 1970-01-01
    • 2020-02-25
    • 2017-12-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多