derby leeds blog

Posts Tagged ‘MOSS 2013

A) Turn off SharePoint’s friendly error message

  1. Open IIS Manager by typing INETMGR at a command prompt
  2. Go to the Content Site site in IIS Manager, right-click select Explore
  3. Make a backup copy of your web.config file
  4. Using notepad or Visual Studio, open the web.config file
  5. In the SafeMode tag, set the CallStack attribute to ‘true’
  6. In the customErrors tag, set the mode attribute to ‘Off’
  7. Refresh the SharePoint page containing the error, view the error message along with the error stack trace.

<SafeMode MaxControls=”200″ CallStack=”true” DirectFileDependencies=”10″ TotalFileDependencies=”50″ AllowPageLevelTrace=”false”>

……..

<customErrors mode=”Off” />

B) Turn off custom error messages for Layout pages

To view detailed error messages for SharePoint 2010 Layout pages an additional web.config file needs to be updated.

  1. Open a file explorer and browse to the ‘C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS’ directory
  2. Make a backup copy of your web.config file
  3. Using notepad or Visual Studio, open the web.config file
  4. In the customErrors tag, set the mode attribute to ‘Off’
  5. Refresh the Layouts page containing the error, view the error message along with the error stack trace.

<customErrors mode=”Off” />