WCF 5.0和3.0 OData的API与蔚蓝的表存储工作 [英] WCF 5.0 and oData 3.0 API not work with azure table storage

查看:238
本文介绍了WCF 5.0和3.0 OData的API与蔚蓝的表存储工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我迁移我WCF5.0应用程序与蔚蓝的整合我不能使用OData的3 API与蔚蓝的表存储。我得到这个错误 -

After i migrated my WCF5.0 application to integrate with azure i can not use oData 3 api with azure table storage. I got this error-

该型'System.Data.Services.Client.DataServiceResponse的定义
  在未引用的程序集。您必须添加一个参考
  集System.Data.Services.Client,版本= 3.5.0.0,
  文化=中性公钥= b77a5c561934e089'。

The type 'System.Data.Services.Client.DataServiceResponse' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Data.Services.Client, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.

该型'System.Data.Services.Client.DataServiceContext的定义
  在未引用的程序集。您必须添加一个参考
  集System.Data.Services.Client,版本= 3.5.0.0,
  文化=中性公钥= b77a5c561934e089'。

The type 'System.Data.Services.Client.DataServiceContext' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Data.Services.Client, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.

我添加 System.Data.Services.Client.dll 在我的项目后,问题消失了,但我不能使用的OData 3.0。

After I add System.Data.Services.Client.dll in my project the problems goes away but i can not use oData 3.0.

推荐答案

这是第二次这个问题最近问。该Microsoft.WindowsAzure.StorageClient.Dll对System.Data.Service.Client.Dll直接引用的依赖,如下图所示,所以如果你打算使用Azure存储客户端API你就必须引用System.Data.Service.Client.Dll在您的应用程序,并确保您不能使用的OData 3.0通过WCF 5.0 SDK提供。

This is second time this question has asked recently. The Microsoft.WindowsAzure.StorageClient.Dll has direct reference dependency on System.Data.Service.Client.Dll as shown below so if you are going to use Azure Storage Client API you would have to reference System.Data.Service.Client.Dll in your application and sure you can not use oData 3.0 supplied by WCF 5.0 SDK.

如果您可以创建基于RESTful接口为Azure存储直接,那么你可以直接在code使用的OData 3.0 + 5.0 WCF web请求,但是这就是你可能需要做腿部的工作。

If you can create a web request based on RESTful Interface to Azure Storage directly then you can use oData 3.0 + WCF 5.0 directly in your code but that's the leg work you may need to do.

这篇关于WCF 5.0和3.0 OData的API与蔚蓝的表存储工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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