无法加载文件或程序集“Microsoft.Data.OData,版本= 5.6.4.0,文化=中性公钥= 31bf3856ad364e35”或它的一个依赖 [英] Could not load file or assembly 'Microsoft.Data.OData, Version=5.6.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies

查看:1369
本文介绍了无法加载文件或程序集“Microsoft.Data.OData,版本= 5.6.4.0,文化=中性公钥= 31bf3856ad364e35”或它的一个依赖的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有错误无法加载'Microsoft.Data.OData,版本= 5.6.4.0,文化=中性公钥= 31bf3856ad364e35或它的一个依赖。

我在的地方,5.7.0.0版本的所有绑定重定向,但在运行时蔚蓝的实例找不到Microsoft.Data.OData,版本= 5.6.4.0!

我可以RDP到的实例,并用.net反射看,从蔚蓝的实例加载我的服务DLL(E:\\为approot \\ BIN),看来我也取决于此Microsoft.Data.OData 1集,版本= 5.6.4.0这是Microsoft.Azure.Storage.dll;在.net反射所有组件加载罚款不依赖错误。然而,在蔚蓝色的实例要加载旧版本Microsoft.Data.OData,版本= 5.6.4.0的。我把所有组件绑定到位。

任何想法我如何能继续这项调查?还有什么我应该理解一下为什么蔚蓝的实例没有看到我的绑定重定向?

在这里,但没有答案的那种,我面临的问题报道了有些类似的问题:无法在碧霞工作者角色使用表的存储

编辑:现在我甚至不能再RDP,所有我能看到的是诊断总结和那里我可以看到相同的错误如上

因此​​,我们确实好像绑定重定向被完全忽略了......或者只为这个大会?...
你可以请给我一些建议我应该怎么进一步调查?我没有访问天青实例(我可能以后能够访问它...我是今天能做到这一点在一些点)

非常感谢你。


解决方案

和回答我的问题:pfeeewww。因为webrole住在两个过程(见本的https://www.simple -talk.com/content/article.aspx?article=2211
http://dzimchuk.net/post/be-aware-of -Web角色宿主进程)任何定义都没有影响webrole.cs code,但只有Web应用程序code绑定重定向。卫生署!
所以......我有两个选择:要么将所有code从webrole.cs到Web应用程序code或webrole.cs创建特殊的/单独绑定重定向

I have the error "could not load 'Microsoft.Data.OData, Version=5.6.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies."

I have all the binding redirects in place to version 5.7.0.0, however at run time the azure instance can not find the Microsoft.Data.OData, Version=5.6.4.0!

I was able to RDP to the instance and look with .net reflector, and loading my service dll from azure instance (E:\approot\bin), it seems I have one assemblies depending on this Microsoft.Data.OData, Version=5.6.4.0 which is Microsoft.Azure.Storage.dll; in .net reflector all assemblies load fine with no dependency errors. however the azure instance wants to load the old version of Microsoft.Data.OData, Version=5.6.4.0. I have all assembly bindings in place.

any idea how can I continue this investigation? what else should I look for in understanding why the azure instance is not seeing my binding redirect?

a somewhat similar problem reported here but with no answer to the kind of problem I am facing: Could not load file or assembly Microsoft.Data.OData Version=5.2.0.0 error in Azure Cloud Worker Role using Table Storage

EDIT: right now I can't even RDP anymore, all I can see is the diagnostic summary and there I can see the same error as above.

So indeed it seems like the bind redirect is ignored fully... or only for this assembly?... can you please give me some advise how should I investigate further? I do not have access to the azure instance (I might be able to access it later... I was able to do it today at some point)

thank you very much

解决方案

and to answer my question: pfeeewww. because the webrole lives in two processes (see this https://www.simple-talk.com/content/article.aspx?article=2211 and this http://dzimchuk.net/post/be-aware-of-web-role-host-process) any of the binding redirects defined were not affecting the webrole.cs code but only the web app code. doh! so... I have two options: either move all the code from webrole.cs to web app code or create special/separate binding redirects for webrole.cs

这篇关于无法加载文件或程序集“Microsoft.Data.OData,版本= 5.6.4.0,文化=中性公钥= 31bf3856ad364e35”或它的一个依赖的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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