<configuration>
<sharepoint>
<SafeMode CallStack="true" />
</sharepoint>
<system.web>
<customErrors mode="off" />
<compilation debug="true" />
</system.web>
</configuration>
其中CallStack 默认为fasle,设置为true ,将允许sharepoint在浏览器内输出错误的堆栈信息,
customErrors 的默认值为on ,设置为off将允许查看到真实的错误信息,
另外,debug属性默认值为false,这是为true,将允许在程序里设置断点进行调试。