Brandon Michael Hunter
Brandon Michael Hunter

Reputation: 1221

Orphan Event Receivers SharePoint 2010

For some reason my feature event receiver still runs after deactivation and uninstall. I have an feature event receiver on my SharePoint 2010 server that runs on a survey list prevent users to delete survey responses. If I deactivated the feature event receiver, I still can't delete responses. Even after I did an uninstall and iisreset, the event receiver was still running. My solution was to run a powershell command that will physically remove the event receiver from the survey list. Once I did that, I was able to delete survey responses from an existing survey. Any idea why even after an deactivation and uninstall I still have an attached event receiver to my survey list?

Upvotes: 0

Views: 775

Answers (1)

Rich Bennema
Rich Bennema

Reputation: 10335

If you added the Event Receiver to a list in FeatureActivated, you should remove it from that list in FeatureDeactivating.

Upvotes: 1

Related Questions