1

服务器会很好地提供静态文件,但是任何带有 aspx 的东西都会在 Firefox 中返回以下消息:

The connection to the server was reset while the page was loading

FirebugNET选项卡显示aborted

IE10 显示

This page can't be displayed

铬显示

This webpage is not available

ASP.NET Webforms 4.5,通过 Visual Studio 2012 上传,在发布时使用 ftp 发布

4

2 回答 2

1

问题似乎是 Microsoft.AspNet.FriendlyUrls

在进入 nuget 并卸载包,以及注释掉它引用的所有地方之后,错误就消失了。

这意味着自动切换到移动设备的功能已经消失,但至少我的网站现在已经启动并运行。

令人沮丧的是,godaddy 帮助台和他们的高级托管支持声称他们没有运行任何更新或补丁,但四天前该网站运行良好。当然,我没有发表任何文章。

于 2013-05-22T21:20:36.307 回答
0

只需将 App_Start/RouteConfig.cs 中的功能注释掉,通过 FTP 发布重新部署即可。

public static class RouteConfig
{
    public static void RegisterRoutes(RouteCollection routes)
    {
        //routes.EnableFriendlyUrls();
    }
}
于 2013-08-22T06:31:42.893 回答