Missing Microsoft.Data.Services.Client version 5.6 on Azure Websites
Asked Answered
D

8

17

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 Storage SDK, which seems to reference a version of an assembly that doesn't yet exist. I have not been able to find this version of the DLL file anywhere. Any suggestions?

Could not load file or assembly 'Microsoft.Data.Services.Client, Version=5.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

Deltoid answered 8/12, 2013 at 19:22 Comment(0)
D
21

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.

Densify answered 8/12, 2013 at 19:46 Comment(2)
I still have the issue even after running additional nuget.Jimenez
Please check the version of the library which gets installed. Is it 5.6.0 or 5.6.1?Densify
M
13

I ended up removing storage, installing the 5.6.0 version and then re-installing

  UnInstall-Package WindowsAzure.Storage

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

  Install-Package WindowsAzure.Storage
Marshallmarshallese answered 25/3, 2014 at 22:16 Comment(5)
I had to also remove every dependency of Microsoft.Data.Services.Client before reinstalling it.Sabellian
@selotape: How did you made this? I have the same Problem and can´t fix it. please write all nuget commands down. thx.Twit
@Leparevilo do UnInstall-Package Microsoft.Data.Services.Client it will complain about any packages that depend on it, UnInstall them, repeat until you can remove Microsoft.Data.Services.Client.Marshallmarshallese
@Leparevilo I agree with Fiacc. that's how I handled the problem.Sabellian
I also had do remove Microsoft.Data.OData, Microsoft.Data.Edm and System.Spatial.Configurationism
L
3

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.

Latchet answered 26/3, 2014 at 6:11 Comment(0)
C
2

Installing the nuGet package above still didn't help me when publishing to Azure from Visual Studio 2013. I had to manually upload the Microsoft.Data.Services.Client.dll to the bin folder via FTP to Azure. Hope that helps someone as well.

Chekiang answered 11/2, 2014 at 1:20 Comment(0)
L
1

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
Locate answered 1/5, 2014 at 11:16 Comment(0)
W
1

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>
Wit answered 12/12, 2017 at 23:13 Comment(0)
B
0

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

Buskined answered 4/5, 2014 at 16:57 Comment(0)
S
0

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

Schoolbag answered 6/8, 2014 at 21:12 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.