Itemupdating event fires twice lesotho dating site

Posted by / 17-Apr-2015 22:58

I’ve ran into this scenario before mostly in developer environments where registration is occuring in multiple ways.For example deploying your event receiver with VSEWSS and then programmatically registering it (again) in a feature receiver.Why does my event receiver / handler run more than once when I update or add a new list item?

Instead of writing more paragraphs I can use tabular to explain, I think this will be easy to understand.To see a workaround for this see the following KB: There are likely other causes for event receivers running more than once but these are the two that I run into the most while working with customers. This is my first post in 2013, here I just want to discuss about Event Receivers in Share Point 2010 (SPItem Event Receiver class) and an important factor with the Event Receivers.(This can happen from other events too such as Item Added) The following function writes an entry to the Application event log everytime it runs.It also checks for a null title or a title that does not equal “Title Updated in Item Updated”.

itemupdating event fires twice-39itemupdating event fires twice-18itemupdating event fires twice-44

If it finds either it updates the Title field of the current item.