[英]System.IO.FileLoadException - Could not load file or Assembly Microsoft.WindowsAzure.Storage
I have a web service that downloads a file from a Windows Azure Service Bus.我有一个 web 服务,它从 Windows Azure 服务总线下载文件。 However as soon as I call the method that connects to azure to download the file I get the following error.但是,一旦我调用连接到 azure 的方法来下载文件,我就会收到以下错误。
An exception of type 'System.IO.FileLoadException' occurred in MyWebService.dll but was not handled in user code MyWebService.dll 中出现类型为“System.IO.FileLoadException”的异常,但未在用户代码中处理
Additional information: Could not load file or assembly 'Microsoft.WindowsAzure.Storage, Version=3.1.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies.其他信息:无法加载文件或程序集“Microsoft.WindowsAzure.Storage,Version=3.1.0.1,Culture=neutral,PublicKeyToken=31bf3856ad364e35”或其依赖项之一。 The located assembly's manifest definition does not match the assembly reference.找到的程序集的清单定义与程序集引用不匹配。 (Exception from HRESULT: 0x80131040) (HRESULT 异常:0x80131040)
I have checked the versions of azure I am using and all are version 3.1.0.1.我检查了我使用的azure的版本,都是3.1.0.1版本。
I think the Problem in your case is Windows is blocking the DLL from being referenced . 我认为在你的情况下问题是Windows阻止DLL被引用。 You need to first " Unblock " it first and then add Refernce .. 你需要首先“取消阻止 ”它然后添加参与..
Refer this link : Could not load assembly, Exception from HRESULT: 0x80131040 请参阅此链接: 无法加载程序集,HRESULT异常:0x80131040
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.