1

当我尝试运行我的 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)

我想我错过了一些汇编参考,但我不知道是哪一个?

请帮我解决这个问题。

4

1 回答 1

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>
于 2013-10-17T17:47:02.990 回答