Thursday, March 11, 2010

Event manager error: Could not load file or assembly

We have created a Custom SharePoint List Event handler to call our custom application (Web Services) when new item is added to the SharePoint List. Everything was worked in production server for first time (Register Event Handler). As soon as a new item was created, event handler was triggered and its called our web services. After we made some changes and reregister the event handler, this time event handler was not triggered somehow. We checked the register process and it same we followed first time, no difference, but still didn’t work.
We checked the Event log and found the following error:
Event manager error: Could not load file or assembly 'CD.Click.SharePoint.Events, Version=1.0.0.29, Culture=neutral, PublicKeyToken=297d23a0a2ee6309' or one of its dependencies. The system cannot find the file specified.

After spending couple of hours we figure it out that some how SharePoint service Cached the dll copy. To clear follow the following steps
  1. In Run, type the Services.MSC and hit Enter.
    image
  2. Stop and start the Windows SharePoint Service Timer
    image
After this it worked like a charm.

Hope this helps someone.

0 comments:

Post a Comment