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 >
< SafeMode MaxControls ="200" CallStack ="false" DirectFileDependencies ="10" TotalFileDependencies ="50" AllowPageLevelTrace ="false" >
< PageParserPaths >
</ PageParserPaths >
</ SafeMode >
然后将CallStack 和AllowPageLevelTrace 的属性设置为“true ”。
(3)在web.config文件中搜索如下内容:
<
customErrors
mode
="On"
/>
将其改为:
< customErrors mode ="Off" />