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

来源:互联网 发布:淘宝手机端标题模块 编辑:程序博客网 时间:2024/05/21 16:34

 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" />

原创粉丝点击