Sharepoint 2010中设置web.config的customerror值显示具体错误

在sharepoint
2010的开发中,默认customerror设置为on,因此无法获悉错误的具体信息。单独修改服务器端C:\inetpub\wwwroot\wss\VirtualDirectories\<port>下的web.config并不能禁止customerror。

在Sharepoin
2010中,还需要在另一处web.config进行修改:
C:\Program
Files\Common Files\Microsoft Shared\Web Server
Extensions\14\TEMPLATE\LAYOUTS\web.config

Central
Administration的web.config在这里:
C:\Program
Files\Common Files\Microsoft Shared\Web Server
Extensions\14\TEMPLATE\ADMIN\web.config

posted @ 2014-05-05 14:13  498687387  阅读(121)  评论(0编辑  收藏  举报