Fix “Missing Event Receivers” issue in SharePoint Migration
During SharePoint 2010 Migration, Preupgradecheck reported the issue of missing Event Receivers:
The following event receiver assembly(s) are referenced by the content, but they are not installed on the web server
So, To resolve this issue we need to two steps:
- Get all list locations, where a particular event receiver is registered
- Unregister the event receiver from the list/document library.
Step 1: Get the list of location (Lists, Document Libraries) where the particular Event handler is registered:
How to get the locations where event receivers are installed? Simple! Just execute the following STSADM command:
stsadm -o enumallwebs -includeeventreceivers > EventReceivers.txt
Now we got the report. By opening the EventReceivers.txt in Excel, you can examine where that particular event receiver is in use.
Step 2: Un-Register the Event Receivers:
We have got the locations now. The next step is to unregister them. Here comes the Handy tool: Event Receiver Manager, download it from: Here
Navigate to the site from the report, Select the library, and then click “Remove Selected Event Handler” button. That’s all!
Another nice utility to help on this issue is: SharePoint Manager Download SharePoint ManagerÂ
You can use:Â Event Receiver Manager also!
How can we restore this event receivers to migrated site ?
If you have deployed your Event receivers via WSP solution or feature, All you have to do is: Redeploy those solutions and activate features. If your event receiver isn’t associated via features, you’ll have do do it again either with C# Object model code or with PowerShell. Here are some of my posts to help you:
Attach Event Receiver to Specific List Programmatically in SharePoint
Add/Remove/Get Event Receivers in SharePoint with PowerShell
very nice aticle.. all your articles are great… Thanks