Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

App_Offline -> 404 Error

By simply putting a file named app_offline.htm in the root directory of your site, ASP.NET will serve the app_offline.htm file, instead of the requested page. I recently employed this feature for probably the first time. I put the app_offline.htm file on the site, and pulled up my site in Firefox. The contents of app_offline.htm displayed as expected. However, if I were to pull my site in IE, I would get a Page Not Found error that appeared as though my entire site did not exist. The OS is Windows Server 2008 R2 – IIS 7.5
What ist he problem, how can i fix this? I hope somebody can help me,

Thanks Horst

like image 451
user1218240 Avatar asked Jun 21 '26 01:06

user1218240


1 Answers

How big (in bytes) is your app_offline.htm ?

If I remember correctly, for IE, there was a quirk that required this file to be a certain minimum size to be recognized (512 bytes).

Read more on Scott Gu's blog about this: App_Offline.htm and working around the IE Friendly Errors feature

like image 106
marc_s Avatar answered Jun 23 '26 16:06

marc_s



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!