I have a SharePoint webpart that creates an alert for a user, for a specific list item (in this case, a document set). I am adding the alert programmatically. The code executes without any errors, and I can see the alert when I click "Manage My Alerts" in SharePoint. The event type is "All", so alerts should get sent when someone adds a document to the document set. However, after the alert is created, and I add a document to the document set for which the alert was created, no email gets sent. I double-checked the email address and other settings for the alert, and everything looks OK. Additionally, I found the following entry in the event log:
Event manager error: Could not load file or assembly 'ListItemEventHandler, Version=184.108.40.206, Culture=neutral, PublicKeyToken=71a9581283b81d5f' or one of its dependencies. The system cannot find the file specified.
This entry was added five times. I assume this is related to the alert that was added. Does anyone know why the email notifications don't get sent?
PS: If I add the alert using "Alert Me" in SharePoint, the emails get sent.