App_Offline.htm doesn't work for my application subfolders in IIS

I have set app_Offline.htm to the root of my IIS7 application. This works for calls to pages in the root, but not for calls to pages in the application subfolder.

As it turns out? And how do I make it work for subfolders too?

+2


a source to share


1 answer


App_Offline.htm is not meant to work in subdirectories, only for the whole application, Scott Gu on App_Offline.htm . I'm not sure how this works, but check out this SO post about it ... To make this work for subdirectories, you will need to implement custom logic in a handler that intercepts any requests for files where it is in the file path.



+1


a source







All Articles