错过了我的asp.net应用程序的一些参考

时间:2013-10-17 17:43:20

标签: c# asp.net reference assemblies odata

当我尝试运行我的asp.net应用程序时,它给了我这个错误

Could not load file or assembly 'Microsoft.Data.OData' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

我想我会错过一些汇编参考,但我不能得到哪一个?

请帮我解决这个问题。

1 个答案:

答案 0 :(得分:3)

这可能是相关的:Could not load file or assembly Microsoft.Data.OData Version=5.2.0.0 error in Azure Cloud Worker Role using Table Storage

尝试将此添加到您的web.config:

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