SharePoint provides the default friendly error message page, from which I could not understand what went wrong really! How to disable the default custom error page and display actual error in SharePoint?
Here is how to disable SharePoint's friendly error message and show the actual error message:
- In the web server, Open the Web.Config file from web site's directory through IIS. (eg. C:\Inetpub\wwwroot\wss\VirtualDirectories\80 )
- Search for the safemode node with the word "CallStack" and change the CallStack status to true <SafeMode MaxControls="100" CallStack="true" DirectFileDependencies="10" TotalFileDependencies="50" AllowPageLevelTrace="false">
- Search for the CustomErrors node and set the mode to off < customErrors mode="Off" />
- That's All!, You'll get the detailed error page now!!
Update: In SharePoint 2010, addition to the IIS virtual Directory's web.config, you may also need to update the same settings in web.config file under: Layouts folder of 14 hive, if its customized!
You might also like:
SharePoint Usage Reports
Usage reports, collaboration and audit for SharePoint.
Document SharePoint Farm
Automatically generate SharePoint documentation.