让SharePoint站点输出详细错误信息
2008-11-01 11:16
246 查看
原帖见http://blog.csdn.net/jackjoy/archive/2007/07/31/1719012.aspx
弄过ASP.NET的朋友们都应该想到了修改站点的web.config文件来解决网站相关的问题,对于SharePoint站点这个方法同样适用。具体的步骤如下:
(1)找到SharePoint网站对应的web.config文件,其位于如下的目录(X为系统盘盘符,nnnn为网站端口号):X:/Inetpub/wwwroot/wss/VirtualDirectories/nnnn/
(2)在web.config文件中搜索如下内容:
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<SharePoint>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<SafeMode MaxControls="200" CallStack="false" DirectFileDependencies="10" TotalFileDependencies="50" AllowPageLevelTrace="false">
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<PageParserPaths>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
</PageParserPaths>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
</SafeMode>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
然后将CallStack和AllowPageLevelTrace的属性设置为“true”。
(3)在web.config文件中搜索如下内容:
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<customErrors mode="On" />
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
将其改为:
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<customErrors mode="Off" />
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
(4)保存web.config,大功告成。
搞定之后,错误信息就是这样的,顺眼多了吧?
弄过ASP.NET的朋友们都应该想到了修改站点的web.config文件来解决网站相关的问题,对于SharePoint站点这个方法同样适用。具体的步骤如下:
(1)找到SharePoint网站对应的web.config文件,其位于如下的目录(X为系统盘盘符,nnnn为网站端口号):X:/Inetpub/wwwroot/wss/VirtualDirectories/nnnn/
(2)在web.config文件中搜索如下内容:
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<SharePoint>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<SafeMode MaxControls="200" CallStack="false" DirectFileDependencies="10" TotalFileDependencies="50" AllowPageLevelTrace="false">
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<PageParserPaths>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
</PageParserPaths>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
</SafeMode>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
然后将CallStack和AllowPageLevelTrace的属性设置为“true”。
(3)在web.config文件中搜索如下内容:
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<customErrors mode="On" />
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
将其改为:
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<customErrors mode="Off" />
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
(4)保存web.config,大功告成。
搞定之后,错误信息就是这样的,顺眼多了吧?
相关文章推荐
- 让SharePoint站点输出详细错误信息
- 让SharePoint站点输出详细错误信息
- 让SharePoint站点输出详细错误信息[转]
- 让SharePoint站点输出详细错误信息[转]
- 让SharePoint站点输出详细错误信息[转]
- sharepoint 2013 设置 显示详细错误信息
- Sharepoint学习笔记---Debug&TroubleShooting-如何让Sharepoint2010网站返回详细错误信息
- sharepoint显示详细错误信息
- sharePoint 发生意外错误.显示错误详细信息
- 如何查看SharePoint未知错误的详细信息
- 如何查看SharePoint未知错误的详细信息
- 如何查看SharePoint未知错误的详细信息
- vs中输出详细错误信息的设置
- 让SharePoint直接显示详细的错误信息
- 如何查看SharePoint未知错误的详细信息
- 如何查看SharePoint未知错误的详细信息
- 打开SharePoint 2010详细错误信息
- 如何在 SharePoint中显示详细错误信息
- SharePoint 2013 设置 显示详细错误信息 修改位置总结
- sharepoint开发中,页面报“未知错误”或“Unknown Error”后,如何查看详细错误信息