I am able to fire an Event using an Event receiver which I created using Visual Studio 2010 on a custom list. But instead of firing once, it fires twice. I tried to debug the code and I saw that the ItemAdded event was getting executed twice. Is there any particular reason that this is executing in such a manner?
Share
Alas!! I found it!!! I had left the elements file for the Event Receiver there, and therefore when the feature was activated for the project, the receiver got associated to ALL custom lists on the site. And in the Feature Activated event, I was stapling the event to the particular custom list. So, in effect, the Event receiver was getting attached to my particular custom list twice, ie, from the elements file & feature activated event. So, i just deleted the elements file of the event reveicer and it WORKED!!!
Thanks all for your suggestions…