Posts Tagged ‘MOSS 2013’
A) Turn off SharePoint’s friendly error message
- Open IIS Manager by typing INETMGR at a command prompt
- Go to the Content Site site in IIS Manager, right-click select Explore
- Make a backup copy of your web.config file
- Using notepad or Visual Studio, open the web.config file
- In the SafeMode tag, set the CallStack attribute to ‘true’
- In the customErrors tag, set the mode attribute to ‘Off’
- 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.
- Open a file explorer and browse to the ‘C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS’ directory
- Make a backup copy of your web.config file
- Using notepad or Visual Studio, open the web.config file
- In the customErrors tag, set the mode attribute to ‘Off’
- Refresh the Layouts page containing the error, view the error message along with the error stack trace.
<customErrors mode=”Off” />