赤色烙印 发表于 2015-9-26 13:37:29

关闭SharePoint 2010 customErrors

  在SharePoint 2010上做开发时,如果不把customErrors 关掉,那调试起来那真叫一个费劲。但在2010里,关闭customErrors还有点费劲,不像2007那么直接,只要修改web app下的web.cofing文件。下面的具体步骤:
  
  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\14\TEMPLATE\LAYOUTS\web.config
  CustomErrors=”Off”
  3. 修改 C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\ADMIN\web.config
  CustomErrors=”Off”
页: [1]
查看完整版本: 关闭SharePoint 2010 customErrors