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

后端 未结 5 773
既然无缘
既然无缘 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:19

    I had similar problem today. The only difference I spotted is my cloud app was looking (and failing to find) for Microsoft.Data.OData in Version=5.2.0.0

    Using Visual Studio Object Browser i found out that my solution used library from that location:

    C:\Program Files (x86)\Microsoft WCF Data Services\5.0\bin\.NETFramework

    Microsoft.Data.OData library residing there was in ver. 5.0.0.0 so overwriting it with 5.2.0.0 resolved the problem.

    P.S. I installed WCF Data Services Tools for Windows Store Apps earlier in hope of resolving this issue so it may happen that your application gets it from another source. If that is the case you have two options:

    1. Install WCF Data Services Tools for Windows Store Apps from here and use solution above.

    2. Use Visual Studio Object Browser to find what versions of OData library are currently visible for your project and where they are stored. Next you need to overwrite improper versions of them.

提交回复
热议问题