在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
转载于:https://www.cnblogs.com/crystal-white/p/3709141.html