Sharepoint - How to set customErrors attribute in sharepoint 2013?

Every change you make in that config files have no effect on the web application. You have to go the web.config file that is generated once the web application is created.

So edit the web.config file in C:\inetpub\wwwroot\wss\VirtualDirectories\your port number and modify the parameters you have indicated in that web.config file:

  • customErrors mode must be "Off"
  • compilation debug must be "true"
  • SafeMode CallStack must be "true"

The 'your port number' piece of path is the port you assigned when you created the Web Application in the Central Administration


I solved this problem editing this file: C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\TEMPLATE\LAYOUTS\web.config


I had to change both web.config files:

  • C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\TEMPLATE\LAYOUTS\web.config

  • C:\inetpub\wwwroot\wss\VirtualDirectories\{your port number}

Only then it is showing detailed error message

Tags:

Error