2012-11-02 78 views
3

只需將名爲app_offline.htm的文件放入站點的根目錄中,ASP.NET就會提供app_offline.htm文件,而不是請求的頁面。我最近很可能第一次使用了這個功能。我把app_offline.htm文件放在網站上,並在Firefox中拉起我的網站。 app_offline.htm的內容按預期顯示。然而,如果我要在IE中拉我的網站,我會得到一個Page Not Found錯誤,就好像我的整個網站不存在一樣。操作系統是Windows Server 2008 R2 - IIS 7.5
他是什麼問題,我該如何解決這個問題?我希望有人能幫助我,App_Offline - > 404錯誤

感謝霍斯特

回答

0

這對我的作品。 我做了這個內容的新網站: 該網站有448Bytes。

<!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> 

感謝, 霍斯特