简体   繁体   English

无法加载文件或程序集'Microsoft.Data.OData,Version = 5.6.4.0,Culture = neutral,PublicKeyToken = 31bf3856ad364e35'或其依赖项之一

[英]Could not load file or assembly 'Microsoft.Data.OData, Version=5.6.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies

I have the error "could not load 'Microsoft.Data.OData, Version=5.6.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies." 我收到错误消息“无法加载'Microsoft.Data.OData,版本= 5.6.4.0,文化=中性,PublicKeyToken = 31bf3856ad364e35'或其依赖项之一。”

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! 我已将所有绑定重定向都安装到版本5.7.0.0,但是在运行时,azure实例找不到Microsoft.Data.OData,版本= 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; 我能够RDP到实例并使用.net反射器查找,并从蔚蓝实例(E:\\ approot \\ bin)加载我的服务dll,看来我有一个依赖于此Microsoft.Data.OData的程序集,版本= 5.6 .4.0,即Microsoft.Azure.Storage.dll; in .net reflector all assemblies load fine with no dependency errors. 在.net反射器中,所有程序集均可正常加载,而不会出现依赖项错误。 however the azure instance wants to load the old version of Microsoft.Data.OData, Version=5.6.4.0. 但是,azure实例要加载旧版本的Microsoft.Data.OData,版本= 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? 在理解为什么azure实例没有看到我的绑定重定向时,我还需要寻找什么?

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 此处报告了类似的问题,但没有答案我面临的问题:无法使用表存储在Azure Cloud Worker角色中加载文件或程序集Microsoft.Data.OData版本= 5.2.0.0错误

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. 编辑:现在我什至不能RDP,我所能看到的只是诊断摘要,在那里我可以看到与上面相同的错误。

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) 我无权访问azure实例(以后我可能可以访问它……今天我可以在某个时候这样做)

thank you very much 非常感谢你

and to answer my question: pfeeewww. 并回答我的问题: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. 因为webrole存在两个过程(请参阅https://www.simple-talk.com/content/article.aspx?article=2211http://dzimchuk.net/post/be-aware-of-web -role-host-process )定义的任何绑定重定向都不会影响webrole.cs代码,而只会影响Web应用程序代码。 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 所以...我有两个选择:将所有代码从webrole.cs移至Web应用程序代码,或为webrole.cs创建特殊/单独的绑定重定向

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 '无法加载文件或程序集'Microsoft.ServiceBus,Version = 3.0.0.0,Culture = neutral,PublicKeyToken = 31bf3856ad364e35'或其依赖项之一 - 'Could not load file or assembly 'Microsoft.ServiceBus, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies 无法加载文件或程序集 'Microsoft.Owin, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' 或其依赖项之一 - Could not load file or assembly 'Microsoft.Owin, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies 无法加载文件或程序集“WebGrease,版本=1.5.1.25624,文化=中性,PublicKeyToken=31bf3856ad364e35”或其依赖项之一 - Could not load file or assembly 'WebGrease, Version=1.5.1.25624, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies 无法加载文件或程序集'System.Web.Razor,版本= 2.0.0.0,区域性=中性,PublicKeyToken = 31bf3856ad364e35'或其依赖项之一 - Could not load file or assembly 'System.Web.Razor, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies 无法加载文件或程序集“Microsoft.CodeAnalysis,版本= 1.3.1.0,Culture=neutral,PublicKeyToken=31bf3856ad364e35”或其依赖项之一 - Could not load file or assembly 'Microsoft.CodeAnalysis, version= 1.3.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependenc 无法加载文件或程序集“Microsoft.Owin,版本=3.0.1.0,文化=中性,PublicKeyToken=31bf3856ad364e35” - Could not load file or assembly 'Microsoft.Owin, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' 无法加载文件或程序集“Microsoft.Owin,版本=2.1.0.0,文化=中性,PublicKeyToken=31bf3856ad364e35 - Could not load file or assembly 'Microsoft.Owin, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 无法加载文件或程序集“Microsoft.Web.Infrastructure,版本=1.0.0.0,Culture=neutral,PublicKeyToken=31bf3856ad364e35” - Could not load file or assembly 'Microsoft.Web.Infrastructure, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' 无法加载文件或程序集“Microsoft.Practices.EnterpriseLibrary.Common,Version=6.0.0.0,Culture=neutral,PublicKeyToken=31bf3856ad364e35”或 - Could not load file or assembly 'Microsoft.Practices.EnterpriseLibrary.Common, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or 无法加载文件或程序集“System.Web.Razor,版本=2.0.0.0,Culture=neutral,PublicKeyToken=31bf3856ad364e35” - Could not load file or assembly 'System.Web.Razor, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM