Missing Microsoft.Data.Services.Client version 5.6 on Azure Websites

后端 未结 8 808
灰色年华
灰色年华 2020-12-08 21:56

I\'ve recently tried to deploy a website to the Windows Azure websites service which utilizes Azure Storage. Upon deployment, I received the following error coming from the

相关标签:
8条回答
  • 2020-12-08 22:09

    Agree with StressChicken. The thing here is the latest WindowsAzure.Storage will install Services.Client 5.6.1 by default, which will throw exception for some reason. just install Service.Client 5.6.0 before WindowsAzure.Storage. Then WindowsAzure.Storage will use the installed 5.6.0 to resolve dependency.

    0 讨论(0)
  • 2020-12-08 22:13

    I found I had to uninstall WindowsAzure.Storage and Microsoft.Data.Services.Client. Then (using Package Manager Console) I installed the specific version of Microsoft.Data.Services.Client:

    Install-Package Microsoft.Data.Services.Client -Version 5.6.0
    

    and then installed a specific version of WindowsAzure.Storage:

    Install-Package WindowsAzure.Storage -Version 2.1.0.4
    
    0 讨论(0)
  • 2020-12-08 22:16

    I simply switched back to WindowsAzure.Storage 3.1.0 and that fixed the problem. There is a problem with the latest version of WindowsAzure.Storage 3.1.0.1

    PM> Install-Package WindowsAzure.Storage -Version 3.1.0

    0 讨论(0)
  • 2020-12-08 22:19

    Storage client library has a dependency on this assembly and unfortunately it's not downloaded automatically when you install the library through Nuget. You would need to get this package yourself. You can download this package from here: http://www.nuget.org/packages/Microsoft.Data.Services.Client/.

    For more information, please read the comments on this blog post from storage team: http://blogs.msdn.com/b/windowsazurestorage/archive/2013/11/27/windows-azure-storage-release-introducing-cors-json-minute-metrics-and-more.aspx.

    0 讨论(0)
  • 2020-12-08 22:23

    Found it resolved the issue for me if I added the following to the appropriate project's app.config:

      <dependentAssembly>
        <assemblyIdentity name="Microsoft.Data.Services.Client" publicKeyToken="31bf3856ad364e35" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-5.6.3.0" newVersion="5.6.3.0" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="Microsoft.Data.Edm" publicKeyToken="31bf3856ad364e35" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-5.6.3.0" newVersion="5.6.3.0" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="Microsoft.Data.OData" publicKeyToken="31bf3856ad364e35" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-5.6.3.0" newVersion="5.6.3.0" />
      </dependentAssembly>
    
    0 讨论(0)
  • 2020-12-08 22:24

    this problem is gone after you upgrade WindowsAzure.Storage to v. 4.2.0

    0 讨论(0)
提交回复
热议问题