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

Posted by LookitsPuck on Stack Overflow See other posts from Stack Overflow or by LookitsPuck
Published on 2009-10-21T16:45:44Z Indexed on 2010/03/28 9:23 UTC
Read the original article Hit count: 724

Filed under:
|
|
|

Hey all!

So, the site I'm working on is using urlrewriting in coordination with aspnet_isapi.dll (everything is mapped to it). I put up my app_offline.htm file, and all the text shows, however, the CSS or images aren't being served. I'm guessing they're being processed by ASP.NET due to the wildcard mapping instead of IIS. Is this correct? If so, how can I allow IIS to serve these files? Furthermore, an issue I can see arising..in the web.config for the rewriter settings:

<rewrite url="^~/images/network/(.*)/(.*).jpg$" to="~/services/ImageHandler.ashx?type=$1&amp;id=$2"/>
	<rewrite url="^~/image/view/(.*).jpg$" to="~/ServePRView.aspx?id=$1"/>
	<rewrite url="^~/asset/view/(.*).jpg$" to="~/services/ImageHandler.ashx?id=$1&amp;type=asset"/>

Thanks for the help all, -Steve

© Stack Overflow or respective owner

Related posts about app-offline.htm

Related posts about css