Disable Friendly Error Page and Reveal Actual Error in SharePoint

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?

Disable Friedly Error Page in SharePoint 2007

How to turn off custom errors in SharePoint?

Here is how to disable SharePoint’s friendly error message and show the actual error message:

  1. In the web server, Open the Web.Config file from web site’s  directory through IIS. (eg. C:\Inetpub\wwwroot\wss\VirtualDirectories\80 )
  2. 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”>
  3. Search for the CustomErrors node and set the mode to off  < customErrors mode=”Off”    />
  4. 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!

Salaudeen Rajack

Salaudeen Rajack - SharePoint Expert with Two decades of SharePoint Experience. Love to Share my knowledge and experience with the SharePoint community, through real-time articles!

Leave a Reply

Your email address will not be published. Required fields are marked *