Home > SharePoint, SharePoint 2010 > Turn off custom errors for SharePoint2010 sites

Turn off custom errors for SharePoint2010 sites

By default, SharePoint2010 custom error page is turned on. So whenever you got an exception on a SharePoint page, it displays the custom error page with a correlation ID. You have to search the log file for detailed exception message. To turn off the custom error page, you need to do the following:

Open the web.config file for the specific web application and make the following modifications. (I suggest you to make a backup copy of the file before you start modifying the web.config file)

  1. Change CallStack=”false” to CallStack=”true” (in safemode element)
  2. Change debug=”false” to debug=”true
  3. Change <customErrors mode=”On” /> to <customErrors mode=”Off” />

*****************Update April 1st 2012**************

In the layout virtual directory in the SharePoint 14 folder,it has its own web.config.You need to change the configuration for custom error as well.

Open the file and change <customErrors mode=”On” /> to <customErrors mode=”Off” />


  1. June 29, 2011 at 9:57 pm

    would be nice if you precised that callstack attribute is in safemode element, debug=true


    • ybbest
      June 29, 2011 at 11:39 pm

      Updated now.

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: