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!!
detailed error page

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 is a SharePoint Architect with Two decades of SharePoint Experience. He loves sharing his knowledge and experiences with the SharePoint community, through his real-world articles!

Leave a Reply