设置sharepoint错误信息显示方法

在sharepoint的开发中,页面发生错误时,默认不会显示具体错误信息,只显示“友好界面”提示。需要修改配置站点的webconfig文件,才能显示出具体错误提示。具体方法如下:
1、将safeMode中的CallStack属性设置为true
  以下是代码片段:
  <SafeMode MaxControls="200" CallStack="true" DirectFileDependencies="10" TotalFileDependencies="50" AllowPageLevelTrace="false">
2、将customErrors的mode属性设置为off
  以下是代码片段:
  <customErrors mode="Off" />

posted on 2014-01-22 21:51  haipsun  阅读(207)  评论(0编辑  收藏  举报