by

How to display Asp.Net error messages instead of the default SharePoint error messages on a website?

When configuring, developing or performing any sort of action inside the Sharepoint environment not very often we see error messages, assuming you’ve been doing the right things. For all those other cases when you can’t Sharepoint might display this default error message:
default basic sharepoint error message
So, how do you know where did your application break?
You certainly can go to the ULS (Universal Logging Service) and trace the enormous log file or you can do this.
Open the web.config file of the website and change these values:
web.config changes to display full error message in sharepoint MOSS
And this one:
web.config changes to display full error message in sharepoint MOSS
Next time you try to run your application you will see the full stack trace, just like any regular .Net application.
Sharepoint MOSS full error stack to debug in asp.net on browser
Obviously, this is a development tip. The best practices probably won’t recommend you to do this on a live website.

By

1 comment:

  1. Could not find a suitable section so I written here, how to become a moderator for your forum, that need for this?

    ReplyDelete