12 Nov 2010
17 Feb 2011
Link to this post
I am creating a CustomErrorPage.html that would be called when there is a
problem connecting to the database. CustomErrorPage.html is simple html
page with no database connection.
I am raising an HTTPException
with custom status code(999) and have added following entry in
CustomErrors section of in web.config
<error redirect="~/CustomErrorPage.html" statusCode="999"/>
code works fine and it redirects to CustomErrorPage.html but while
trying to load this page it still tries to connect to database. It
appears that its trying to load the page through Sitefinity framework.
Is there any way to exclude rendering of certain pages through Sitefinity and load them directly?