问题描述
我有下载从Windows Azure的服务总线文件的Web服务。但是当我打电话,连接到Azure下载我得到以下错误的文件的方法。
I have a web service that downloads a file from a Windows Azure Service Bus. However as soon as I call the method that connects to azure to download the file I get the following error.
型System.IO.FileLoadException的异常出现在MyWebService.dll但在用户code没有处理
其他信息:无法加载文件或程序集Microsoft.WindowsAzure.Storage,版本= 3.1.0.1,文化=中性公钥= 31bf3856ad364e35或它的一个依赖。找到的程序集清单定义不匹配程序集引用。 (异常来自HRESULT:0x80131040)
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. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
我已经检查我使用的是天蓝色的版本和所有的3.1.0.1版本。
I have checked the versions of azure I am using and all are version 3.1.0.1.
推荐答案
我觉得你的情况的问题是Windows正在被引用挡住了DLL。
您需要先的阻止它首先,然后添加Refernce ..
I think the Problem in your case is Windows is blocking the DLL from being referenced .You need to first "Unblock" it first and then add Refernce ..
转寄此链接:Could不是从HRESULT加载程序集,例外:0x80131040
这篇关于System.IO.FileLoadException - 无法加载文件或程序Microsoft.WindowsAzure.Storage的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!