The 500 (Server Error) page is beyond the control of Umbraco. If you get a 500 error, then the application has pretty much crashed (or it's a severe error), so you generally wouldn't be serving pages from the web-application (i.e. Umbraco).
To handle the 500 error, you can do this in your Web.config. MSDN has an example on it:
It's good practice to have your 500 page as a static HTML ... because it would be unhelpful to ever get an error on your "friendly" 500 error page! ;-)
@RasB, I think there's a weird bug on the forum, if you reload the page, you should be able to mark it as a solution. (Jeez, I'm getting a reputation as a "karma hunter" haha - scary!) ;-)
@Kim, Just shows how eager the Umbraco community are to help out! 1+ to you too! :-D
Custom 500 Error Page
Hi Guys,
I have created a custom 404 Page Not Found error page. This is quite simple. But I can't seem to find any way to implement a custom 500 Error page.
Where do I do that?
Thanks,
RasB
Hi RasB,
The 500 (Server Error) page is beyond the control of Umbraco. If you get a 500 error, then the application has pretty much crashed (or it's a severe error), so you generally wouldn't be serving pages from the web-application (i.e. Umbraco).
To handle the 500 error, you can do this in your Web.config. MSDN has an example on it:
http://msdn.microsoft.com/en-us/library/h0hfz6fc.aspx
It's good practice to have your 500 page as a static HTML ... because it would be unhelpful to ever get an error on your "friendly" 500 error page! ;-)
Cheers, Lee.
Hi Lee,
Just as I had written the post, I started thinking about this, and thought that might be the way to do it.
Thanks for the solution,
RasB
Hi RasB
I think that you can use the answer in this thread: http://our.umbraco.org/forum/developers/api-questions/4919-Custom-Error-Page
/Kim A
Hi Lee,
I would have marked your post as the solution in stead of just giving it thumbs up.
If you want the Karma, just post another reply and I will give it to you :-)
/RasB
I am sooo slow. Sorry for the same answer as Lee 1+ to him :)
/Kim A
@RasB, I think there's a weird bug on the forum, if you reload the page, you should be able to mark it as a solution. (Jeez, I'm getting a reputation as a "karma hunter" haha - scary!) ;-)
@Kim, Just shows how eager the Umbraco community are to help out! 1+ to you too! :-D
Cheers, Lee.
Heya
I know I'm 3 years late on this topic but...
You can set your web.config to use an error.html page which does a meta redirect to /error/ which allows you to content manage the error page
So you can have a content managed umbraco page for /error/ :)
See redirect below:
I'm 7 years late, but if you want you can generate a static page from a dynamic one with something like this: https://gist.github.com/StefanoChiodino/ad6f6860c235f4fd1d536fe53f887c2c
So you can have the safety of a static page with the headers, footers and content updated
is working on a reply...