locked
Azure blob storage can not load file RRS feed

  • Question

  • I am trying to follow the MSDN tutorial on creating a container in blob storage and am getting the following error:

    Additional information: 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 located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

    I have tried numerous stack overflow suggestions such as this one , to no avail. I have also tried uninstalling Azure storage, and re-installing it as well. Just in case it is helpful here is my test case for Azure storage:

    public void TestCloudStorage()
            {
                CloudStorageAccount storageAccount = CloudStorageAccount.Parse(ConfigurationManager.AppSettings["StorageConnectionString"]);
                CloudBlobClient blobClient = storageAccount.CreateCloudBlobClient();
                CloudBlobContainer container = blobClient.GetContainerReference("pictures");
                container.CreateIfNotExists();
            }
    Thank you in advance for your help!

    Tuesday, April 1, 2014 3:02 AM

Answers

  • HI

    I know what happend, that's the Nuget Package error.

    Azure Storage nuget package 3.0+ have this error.

    My solution is use Azure nuget package 2.1+

    1 delete all the dll reference for Azure storage (Or recreate a new project)

    2 input below command in package Manager console

    Install-Package
    WindowsAzure.Storage -Version 2.1.0.4

    That will resolve your problem absolutely .

    Aslo you can refer to other peoples solution.

    http://stackoverflow.com/questions/20457846/missing-microsoft-data-services-client-version-5-6-on-azure-websites



    My Blog
    Please use Make as Answer if my post solved your problem and use Vote As Helpful if a post was useful.


    • Proposed as answer by Yuan2013 Wednesday, April 2, 2014 3:22 AM
    • Edited by Yuan2013 Wednesday, April 2, 2014 3:27 AM
    • Marked as answer by coldcoder Friday, April 4, 2014 3:12 AM
    Wednesday, April 2, 2014 3:22 AM

All replies

  • Hi,

    I found a simlar thread, I'm not sure this will solve your issue, but you could try it. The thread link is: http://social.msdn.microsoft.com/Forums/windowsazure/en-US/06030d47-8cb7-4104-af35-724754926d8d/could-not-load-file-or-assembly-microsoftdataservicesclient-version5500?forum=MediaServices

    Because this issue was hard to reproduce on my side, if above solution didn't give you help, could you tell me which code interrupt running? Or even build solution failed?

    Best Regards 


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Tuesday, April 1, 2014 6:43 AM
  • HI

    I know what happend, that's the Nuget Package error.

    Azure Storage nuget package 3.0+ have this error.

    My solution is use Azure nuget package 2.1+

    1 delete all the dll reference for Azure storage (Or recreate a new project)

    2 input below command in package Manager console

    Install-Package
    WindowsAzure.Storage -Version 2.1.0.4

    That will resolve your problem absolutely .

    Aslo you can refer to other peoples solution.

    http://stackoverflow.com/questions/20457846/missing-microsoft-data-services-client-version-5-6-on-azure-websites



    My Blog
    Please use Make as Answer if my post solved your problem and use Vote As Helpful if a post was useful.


    • Proposed as answer by Yuan2013 Wednesday, April 2, 2014 3:22 AM
    • Edited by Yuan2013 Wednesday, April 2, 2014 3:27 AM
    • Marked as answer by coldcoder Friday, April 4, 2014 3:12 AM
    Wednesday, April 2, 2014 3:22 AM
  • I removed this from the app.config and it worked.

    <runtime>
    
        <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
    
          <dependentAssembly>
    
            <assemblyIdentity name="Microsoft.Data.Edm" publicKeyToken="31bf3856ad364e35" culture="neutral" />
    
            <bindingRedirect oldVersion="0.0.0.0-5.6.1.0" newVersion="5.6.1.0" />
    
          </dependentAssembly>
    
          <dependentAssembly>
    
            <assemblyIdentity name="Microsoft.Data.Services.Client" publicKeyToken="31bf3856ad364e35" culture="neutral" />
    
            <bindingRedirect oldVersion="0.0.0.0-5.6.1.0" newVersion="5.6.1.0" />
    
          </dependentAssembly>
    
          <dependentAssembly>
    
            <assemblyIdentity name="Microsoft.Data.OData" publicKeyToken="31bf3856ad364e35" culture="neutral" />
    
            <bindingRedirect oldVersion="0.0.0.0-5.6.1.0" newVersion="5.6.1.0" />
    
          </dependentAssembly>
    
        </assemblyBinding>
    
      </runtime>


    • Proposed as answer by Siddh_Pro Thursday, May 22, 2014 8:00 PM
    Tuesday, April 15, 2014 10:36 PM
  • Thanks for the solution it also started working for me :)
    Thursday, May 22, 2014 8:01 PM