开发者

Could not load file or assembly 'Microsoft.Exchange.WebServices, Version=14.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'

I'm working on a project that accesses the Excha开发者_如何学Pythonnge Server. Before I replaced the project to a server, everything went fine. But now I'm getting this error.

I don't find what I search in Google, so I hope someone of you can help me. I appreciate that.


You should provide the specified assembly with your application or install it on your server.


The answer is: I copied the dll and xml file (which you get when installing EWS Managed API) to the bin-folder of my project. And it works!


I had the same exact error, in VS2005, .Net 2 and 3.5

This is how I resolved it, and I had to find another solution, because this always failed and Windows would not let me register the DLL.

regsvr32 "C:\Program Files\Microsoft\Exchange\Web services\1.1\Microsoft.Exchange.WebServices.dll"

I went into the .Net Framework Configuration Wizard from Administration tools in Windows XP. Mine is .NET Framework 2.0 Configuration (version 2.0.50727.42).

I then went into Runtime Security Policy -> Increase Assembly Trust and pointed to the above DLL in my C drive. It was set to NO TRUST, for some reason! I changed it to FULL TRUST.

I then closed and re-opened my VS2005 project and everything is now working fine.

Regards,

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜