New answers tagged error-handling
Imho the page looks ugly, becouse detailed errors messages are enabled. Change web.config options back to turn it off, and it will show "standard" sharepoint error page with Your message. In my case if I want to display customized error message to user, I create Page and redirect to it from event receiver.
Top 50 recent answers are included