Windows 10 IoT核心(UAP)上的Exchange Web服务 [英] Exchange Web Services on Windows 10 IoT Core (UAP)

查看:121
本文介绍了Windows 10 IoT核心(UAP)上的Exchange Web服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个应该在运行Windows 10 IoT核心的Raspberry Pi 2上运行的C#应用​​程序。我想使用Exchange Web服务访问我们的Exchange服务器。我的问题是我不能让EWS与应该在Raspberry上运行的通用Windows应用程序
一起工作。当我尝试在NuGet中添加包时,我收到以下错误消息:

I'm developing an application in C# that should run on a Raspberry Pi 2 running Windows 10 IoT Core. I want to use Exchange Web Services to access our Exchange server. My problem is that I can't get EWS to work together with the universal windows application that's supposed to run on the Raspberry. When I try to add the package in NuGet I get the following error message:

Microsoft.Exchange.WebServices 2.2.0 is not compatible with UAP,Version=v10.0 (win10-arm).

如果我从Microsoft手动下载DLL并在Visual Studio中添加它我可以编译和部署代码但是一旦应用程序启动并尝试运行第一行:

If I download the DLL's manually from Microsoft and add them in Visual Studio I can compile and deploy the code but as soon as the application starts and tries to run the first line:

ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2010_SP2);

我收到以下错误:

I get the following error:

An exception of type 'System.IO.FileLoadException' occurred in Microsoft.Exchange.
    WebServices.dll but was not handled in user code

    Additional information: Could not load file or assembly 'System.Core,
    Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of 
    its dependencies. The located assembly's manifest definition does not match 
    the assembly reference. (Exception from HRESULT: 0x80131040)

我不明白为什么它无法加载System.Core。我甚至试图添加System.Core作为参考,但VS显然不会让我,因为它从一开始就存在。



有没有人有任何提示如何让EWS与我的应用程序一起使用?
$


问候 

I don't get why it can't load System.Core. I even tried to add System.Core as a reference but VS obviously won't let me since it's there from the beginning.

Does anyone have any tips at all on how to get EWS to work with my application?

Regards 

推荐答案

使用x86 dll不能在ARM处理器上运行!因此消息显示System.Core.x86不存在。

Well using the x86 dlls wont work on an ARM processor! Hence System.Core.x86 is not present as the message suggests.

我认为NewGet消息说明了一切。

I think that the NewGet message says it all.

Microsoft Exchange Web服务
2.2 0 不适用于ARM(序言)

Microsoft.Exchange.WebServices 2.2.0 is not available for ARM (para-phrased)


这篇关于Windows 10 IoT核心(UAP)上的Exchange Web服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆