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

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

    I had a similar problem as well, but I wasn't using Azure and there was no hard-coded reference that was pointing to 5.2. But it resolved (after finding this article) by making sure that the text in the .svc pointed to the correct assembly:

    <%@ ServiceHost Language="C#"
          Factory="System.Data.Services.DataServiceHostFactory,
          Microsoft.Data.Services, Version=5.6.0.0,
          Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    

    Service="MVC4WCFDataServiceFE5.NorthWindService" %>

    Note the Version=5.6.0.0, which I didn't have before.

提交回复
热议问题