无法加载文件或程序集' Oracle.DataAccess'问题

时间:2014-04-22 05:40:26

标签: asp.net oracle

当我在asp.net中运行应用程序时,会出现如下错误...我能做什么?你能解决这个问题吗?

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

Oracle版本为2.112.2.0

1 个答案:

答案 0 :(得分:0)

您只需将程序集重定向到web.config文件中的当前程序集,如下所示:

<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
 <dependentAssembly>
  <assemblyIdentity name="Oracle.DataAccess" publicKeyToken="89B483F429C47342"   culture="neutral"/>
<bindingRedirect oldVersion="9.2.0.700" newVersion="4.112.3.0"/>
</dependentAssembly>
</assemblyBinding>
</runtime>

<强> Source