代码改变世界

SharePoint 2013 关闭 customErrors

2013-10-31 14:32  程序开发助手  阅读(313)  评论(0编辑  收藏  举报

在SharePoint 2013上做开发时,如果不把customErrors 关掉,那调试起来那真叫一个费劲。在2013里,关闭customErrors 和2010一样,只要把文件路径改成15目录下即可。下面的具体步骤:

 

1. 修改Web app的web.config (C:\inetpub\wwwroot\wss\VirtualDirectories\<port>)

  • Debug=”true” 
  • CallStack=”true”
  • CustomErrors=”Off”

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

CustomErrors=”Off”

3. 修改 C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\TEMPLATE\ADMIN\web.config

CustomErrors=”Off”