Monday, January 11, 2010

Disable Friedly 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

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 )
  3. 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">
  5. Search for the CustomErrors node and set the mode to off  < customErrors mode="Off"    />
  7. 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.

Check out these SharePoint products:

No comments :

Post a Comment

Please Login and comment to get your questions answered!

You might also like:

Related Posts Plugin for WordPress, Blogger...