Thursday 20 February 2014

customerrors mode off

During the developing of a custom field, I faced some errors, but the didn't work. 
After some search, it seems that you have to do this trick on three locations. SharePoint 2010 has web.config files on the following locations:

  • C:\inetpub\wwwroot\wss\VirtualDirectories\80\
  • C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\CONFIG\
  • C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS
On all these locations you can find a web.config file.
Change customerrors to:

<customErrors mode="Off" />
and the SaveMode tag (if available) to:

<SafeMode MaxControls="200" CallStack="true" DirectFileDependencies="10" TotalFileDependencies="50" AllowPageLevelTrace="true">
as well as the compilation tag to:


<compilation batch="false" debug="true" optimizeCompilations="true">



http://msdn.microsoft.com/en-us/library/ee231550.aspx

How to Turn Off SharePoint Custom Error Message and Display Stack and Page Output Trace


No comments:

Post a Comment