让SharePoint站点输出详细错误信息[转]

 1)找到SharePoint网站对应的web.config文件,其位于如下的目录(X为系统盘盘符,nnnn为网站端口号):X:/Inetpub/wwwroot/wss/VirtualDirectories/nnnn/
    (2)在web.config文件中搜索如下内容:

< SharePoint >
    
< SafeMode  MaxControls ="200"  CallStack ="false"  DirectFileDependencies ="10"  TotalFileDependencies ="50"  AllowPageLevelTrace ="false" >
      
< PageParserPaths >
      
</ PageParserPaths >
    
</ SafeMode >

       然后将CallStackAllowPageLevelTrace 的属性设置为“true ”。
    (3)在web.config文件中搜索如下内容:

< customErrors  mode ="On"   />

       将其改为:
< customErrors  mode ="Off"   />

原文地址:https://www.cnblogs.com/dbasys/p/2127538.html