正文
SharePoint 2013 关闭 customErrors
小程序:扫一扫查出行
【扫一扫了解最新限行尾号】
复制小程序
【扫一扫了解最新限行尾号】
复制小程序
在SharePoint 2013上做开发时,如果不把customErrors 关掉,那调试起来那真叫一个费劲。在2013里,关闭customErrors 和2010一样,只要把文件路径改成15目录下即可。下面的具体步骤:
1. 修改Web app的web.config (C:\inetpub\wwwroot\wss\VirtualDirectories\<port>)
- Debug=”true”
- CallStack=”true”
- CustomErrors=”Off”
2. 修改 C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\TEMPLATE\LAYOUTS\web.config
CustomErrors=”Off”
3. 修改 C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\TEMPLATE\ADMIN\web.config
CustomErrors=”Off”