当事件处理器使用properties.cancel时

本地调试sharepoint,web.config会置为debug模式。此时若是在事件处理器(比如ItemAdding,ItemUpdating)中使用properties.cancel,则前端页面在新建、更新操作中会直接将stack信息抛出来。

解决方法:

修改对应的web.config文件。

C:\inetpub\wwwroot\wss\VirtualDirectories\<port>\下的配置文件,将其中的

CallStack的值改为false,CustomError改为on

猜你喜欢

转载自laintoday.iteye.com/blog/1397906
今日推荐