当我尝试运行我的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)
我想我会错过一些汇编参考,但我不能得到哪一个?
请帮我解决这个问题。
答案 0 :(得分:3)
尝试将此添加到您的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>