有时事件接收器不会触发 [英] Sometimes Event receiver is not firing

查看:87
本文介绍了有时事件接收器不会触发的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我为文档库创建了事件接收器,每当我们上传文档时它都会向用户发送电子邮件。如果我同时上传多个文件,事件接收者向用户发送电子邮件,但有时一个或两个文件事件接收者不是
触发并且不向用户发送电子邮件。

I have created event receiver for document library and it sends an email to users whenever we upload documents. If I upload multiple documents same time, event receiver sending emails to users but sometimes for one or two documents event receiver is not triggering and sending no emails to users.

我可以知道可能是什么原因?

May I know what could be the reason?

任何帮助都会受到高度赞赏。

Any help would be the greatly appreciated.

谢谢,

OK29

推荐答案

您好,

请检查以下内容:

1。检查ULS日志并查看是否发生了一些错误消息。对于SharePoint 2013,默认情况下,ULS日志位于

"C:\Program Files \Common Files \ Micropros Shared \ Web Server Extensions \\\\\\\\\\\\\\\\\\\\\\\\\\ ;。

1. Check the ULS log and see if some errors messages occurs. For SharePoint 2013, by default, ULS log locates in
"C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\LOGS".

2。使用Visual Studio调试代码并检查是否有异常。

2. Debug the code using Visual Studio and check if some exception.

3。在代码中添加一些自定义日志以记录变量的输入和输出值。

3. Add some custom log in the code to log the input and output values of variables.

最好的问候,

Dennis


这篇关于有时事件接收器不会触发的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆