Sharepoint添加EWSManagedAPI引用

在微软下载EWS Managed API

在sharepoint2010中应该下载API1.2版本(2013中使用则下载2.0版本)

下载后是一个.msi文件,安装时注意看下安装位置

安装完成后,在安装位置复制dll文件到IIS相应网站的bin文件下,如C:\inetpub\wwwroot\wss\VirtualDirectories\8000

复制后,打开iis中的config文件,在<SafeControl>节点中添加<SafeControl Assembly="Microsoft.Exchange.WebServices, Version=14.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Namespace="Microsoft.Exchange.WebServices" TypeName="*" Safe="True" SafeAgainstScript="False" />

 

然后定位到<trust level="WSS_Minimal" originUrl="" />,修改为<trust level="Full" originUrl="" />

完成以上步骤后,就可以再sharepoint解决方案中添加Microsoft.Exchange.WebServices引用

之后完成的博客:

 Sharepoint应用EWSManagedAPI操作Exchange邮箱

posted @ 2013-02-22 16:14  任泽华Ryan  阅读(923)  评论(2编辑  收藏  举报