码迷,mamicode.com
首页 > 其他好文 > 详细

Could not load file or assembly Microsoft.Data.OData Version=5.2.0.0 error in Azure Cloud Worker Role using Table Storage

时间:2015-01-25 20:51:18      阅读:223      评论:0      收藏:0      [点我收藏+]

标签:

解决方法:利用VS2012中Tools->NuGet Package Manage-> Package Manage Console然后输入命令PM> Install-Package Microsoft.Data.OData -Version 5.5.0

然后在Apps应用里加入Microsoft.Data.OData.dll.

最后还要在app.config里加入以下信息:

<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Microsoft.Data.OData" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-5.5.0.0" newVersion="5.5.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Microsoft.Data.Edm" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-5.5.0.0" newVersion="5.5.0.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>

Could not load file or assembly Microsoft.Data.OData Version=5.2.0.0 error in Azure Cloud Worker Role using Table Storage

标签:

原文地址:http://www.cnblogs.com/andzery/p/4248776.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!