Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/meteor/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Iis 应用程序离线->;404错误_Iis_Iis 7_Iis 7.5_App Offline.htm - Fatal编程技术网

Iis 应用程序离线->;404错误

Iis 应用程序离线->;404错误,iis,iis-7,iis-7.5,app-offline.htm,Iis,Iis 7,Iis 7.5,App Offline.htm,只需将名为app_offline.htm的文件放在站点的根目录中,ASP.NET就会提供app_offline.htm文件,而不是请求的页面。我最近可能是第一次使用这个功能。我将app_offline.htm文件放在网站上,并在Firefox中调出我的网站。app_offline.htm的内容按预期显示。然而,如果我在IE中拉我的站点,我会得到一个页面未找到的错误,似乎我的整个站点都不存在。操作系统是Windows Server 2008 R2–IIS 7.5 他有什么问题,我该怎么解决?我希望

只需将名为app_offline.htm的文件放在站点的根目录中,ASP.NET就会提供app_offline.htm文件,而不是请求的页面。我最近可能是第一次使用这个功能。我将app_offline.htm文件放在网站上,并在Firefox中调出我的网站。app_offline.htm的内容按预期显示。然而,如果我在IE中拉我的站点,我会得到一个页面未找到的错误,似乎我的整个站点都不存在。操作系统是Windows Server 2008 R2–IIS 7.5
他有什么问题,我该怎么解决?我希望有人能帮我

谢谢Horst

你的
应用程序离线有多大(以字节为单位)

如果我没记错的话,对于IE来说,有一个怪癖要求这个文件具有一定的最小可识别大小(512字节)

在Scott Gu的博客上阅读更多关于这一点的信息:

这对我很有用。 我用以下内容创建了一个新网站: 该站点有448字节


错误页
window.location=”http://error/index.html";
!!错误页!!

谢谢, 地垒

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0     Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 <html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>Errorpage</title>
    <meta http-equiv="REFRESH" content="0;url=http://error/index.html" >
</head>
 <body>
        <script language="javascript" >
         window.location = "http://error/index.html";
       </script>
 !!Errorpage!!
 </body>
 </html>