SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

My goal is to use Event Receiver to add Outlook Calendar Appointements when a ListItem is adding.

My Sharepoint Server is Moss 2007 and it is on a Win2008 R2.

I got and installed the Exchange Web Services API (32 bits) on the Sharepoint Server.

I created my Event Receiver, referenced the Exchanged Web Services API (C:\Program Files (x86)\Microsoft\Exchange\Web Services\1.2) and used it, put the Event Receiver DLL signed in the GAC and attached it to the concerned list. When i add an item into that list,the Event Receiver is fired but then i have an error : "Impossible to load file or assembly 'Microsoft.Exchange.WebServices, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The Specified file isn't found".

So, I put the ExchangeWebServices dll in the GAC, but where to reference it in my web.config (if it's the solution)?

Thanks for yours answers.

share|improve this question

I figured out how to do that.

So, I put the EWS api dll in the GAC and then I referenced it in the web.config there :

    <add assembly="System.Web.Extensions, Version=1.0.61025.0, &#xD;&#xA;Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
    <add assembly="Microsoft.SharePoint, Version=, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />
    <add assembly="Microsoft.Exchange.WebServices, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />

And now, I can reach it through my Event Receiver.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.