Could not load file or assembly Microsoft.Data.OData Version=5.2.0.0 error in Azure Cloud Worker Role using Table Storage

后端 未结 5 783
既然无缘
既然无缘 2020-12-23 16:49

I have a very peculiar issue using Azure Table Storage. I have a .NET 4.5 project in Visual Studio 2012 where I deal with all my Azure Table Storage functions. This project/

5条回答
  •  难免孤独
    2020-12-23 17:36

    You can solve this issue in general whenever you update packages or add new packages via NuGet and end up with "Could Not Load file or Assembly..." issues.

    Open the Package Manager Console (VS 2012 Tools/Library Package Manager/ Package Manager Console). Once the shell opens for the Package Manager Console run the command:

    Add-BindingRedirect

    Note: Be careful as the NugGet example added an 's' to the end in their example and Add-BindingRedirect is not a valid command.

    This does the following:

    Examines all assemblies in the output path for a project and adds binding redirects to the application configuration (app.config) file or to the web configuration (web.config) file where required.

    You can see complete documentation for the Package Manager Console at: http://nuget.codeplex.com/wikipage?title=Package%20Manager%20Console%20Command%20Reference%20(v1.3)

    In addition to the two entries you see in astaykov's answer the following was also added for my Project.

      
        
        
      
    

提交回复
热议问题