Thursday 26 June, 2008 (.Net | Fixes | Ramblings | Web)
I was just surfing around on http://forums.microsoft.com and got a yellow screen of death!
I must say I was slightly surprised. In web projects that I have been involved in we have always added two customErrors pages one to handle generic errors which redirects to an errorpage.aspx page and then a static html page errorpage.html which is only used when an error occurs on the dynamic error page... A sample configuration using location follows:
<configuration> <system.web> <customErrors mode="on" defaultRedirect="errorpage.aspx"/> </system.web> <location path="errorpage.aspx"> <system.web> <customErrors mode="on" defaultRedirect="errorpage.html"/> </system.web> </location> </configuration>
That way if we have a problem with our application that affects the entire site, for instance menu and navigational rendering, we can still show a nice error page with a message like "The site is temporarily unavailable, please try again in a few minutes."
« Duplicate User Accounts in Active Director... | Latest | Is EDA the way to go? »
Remember Me
b, i, strike
The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.
Sign In
.Net (21) About (1) Agile (2) AJAX (1) Architecture (4) BizTalk (1) Blogging (12) Bugs (10) Business (2) dasBlog (8) EDA (1) Fixes (8) FlexWiki (1) Games (1) Geek (4) GTD (2) Humor (4) Interviews (1) Java (1) Office (1) Ramblings (7) Reviews (6) Scrum (2) Security (1) SharePoint (6) SOA (4) Speaking (2) Team System (8) TechEd 2006 (5) Tips (3) Web (9) Web2.0 (1) XP (1)