首页 > 代码库 > sharepoint 2013 设置 显示详细错误信息

sharepoint 2013 设置 显示详细错误信息

1. 在当前网站端口目录下的Web.config修改

   例如80端口的站点路径为:C:\inetpub\wwwroot\wss\VirtualDirectories\80

(1)将<customErrors mode="On" /> 修改成 <customErrors mode="Off" />

(2)将<SafeMode MaxControls="200" CallStack="false"  修改成  <SafeMode MaxControls="200" CallStack="true

(3)将<compilation batch="false" debug="false ">改为; <compilation batch="false" debug="true ">  

 

2.在“Layouts位置(SharePoint发布页面)”的路径下的Web.config修改

具体位置:C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\TEMPLATE\LAYOUTS

(1)将<customErrors mode="On" /> 修改成 <customErrors mode="Off" />