无法加载文件或程序集'Microsoft.WindowsAzure.Storage [英] Could not load file or assembly 'Microsoft.WindowsAzure.Storage

查看:178
本文介绍了无法加载文件或程序集'Microsoft.WindowsAzure.Storage的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我正在使用c#在asp.net上工作。



其中我添加了ajaxtoolkit calendarExtender,在我得到这个...



Hi guys,

i'm working on asp.net using c#.

where i was added ajaxtoolkit calendarExtender, after i'm getting this...

Error	12	Could not load file or assembly 'Microsoft.WindowsAzure.Storage, Version=2.1.0.4, 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)		





请帮帮我,如何解决这个问题...



谢谢



please help me, how to solve this issue...

Thanks

推荐答案

http://stackoverflow.com/questions/21974076/could-not-load-file-or-assembly-exception-from-hresult-0x80131040 [ ^ ]



请参考以上链接解决方案
http://stackoverflow.com/questions/21974076/could-not-load-file-or-assembly-exception-from-hresult-0x80131040[^]

Please refer above link solution


检查您使用的DLL版本。这是Packages.config中的引用dll版本以及引用文件夹中的引用dll版本。可能是不匹配的。此Azure的另一个案例是,如果SDK是旧版本,并且您要通过nuget添加新的dll,则需要删除旧的引用。版本不匹配。

http://www.dinohy.com/post/2014/04/02/Windows-Azure-Could-not-load-file-or-assembly-MicrosoftDataServicesClient-Version=5600 .aspx [ ^ ]

如果这有帮助,请访问此网站。

谢谢: )
Check for the dll version you are using. That is the reference dll version in the Packages.config as well as the in the reference folder. May be that are not matching. And also another case with this Azure is, if the SDK is old version and you are adding a new dll through nuget, you need to remove the old references. There is version mismatch.
http://www.dinohy.com/post/2014/04/02/Windows-Azure-Could-not-load-file-or-assembly-MicrosoftDataServicesClient-Version=5600.aspx[^]
Check out with this site, if this helps.
Thanks :)


之前:

Before:
<runtime>
    <assemblybinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <dependentassembly>
<assemblyidentity name="Microsoft.WindowsAzure.Storage" publickeytoken="31bf3856ad364e35" culture="neutral" />
        <bindingredirect oldversion="0.0.0.0-2.1.0.4" newversion="2.1.0.4" />
      </dependentassembly>
    </assemblybinding>
  </runtime>





之后:





After:

<runtime>
    <assemblybinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <dependentassembly>
        <!--<assemblyIdentity name="Microsoft.WindowsAzure.Storage" publicKeyToken="31bf3856ad364e35" culture="neutral"/>-->
        <bindingredirect oldversion="0.0.0.0-2.1.0.4" newversion="2.1.0.4" />
      </dependentassembly>
    </assemblybinding>
  </runtime>





工作..



谢谢



its work..

Thanks


这篇关于无法加载文件或程序集'Microsoft.WindowsAzure.Storage的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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