App_offline.htm, CSS, images, and aspnet_isapi.dll

泪湿孤枕 提交于 2019-12-03 05:51:19

It's because if the webserver sees an App_Offline.htm file, it serves that file for every request in the site - even images. You have to serve images from another site. Or you can try something like this http://en.wikipedia.org/wiki/Data_URI_scheme

@JeremyWeir is correct. IIS stops serving sub resources in the prescense of app_offline.htm A way around this is to embed the content in the page directly by using:

1) Encode Images inside Html 2) Internal Style Sheets 3) the same for your javascript

This isn't the easiest to maintain but it does give you control over the appearance of the content displayed on the page.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!