Sunday, 5 February 2012

Error : " Could not load file or assembly 'Oracle.DataAccess, Version=2.111.6.20, Culture=neutral, PublicKeyToken=89b483f429c47342' "

"Error: Could not load file or assembly 'Oracle.DataAccess,    Version=2.111.6.20, Culture=neutral, PublicKeyToken=89b483f429c47342' or one of its dependencies. An attempt was made to load a program with an incorrect format "


We have to check our machine.config file which is situated atC:\windows\Microsoft .Net \Framework\CONFIG\ v2.0.50727\machin.config file

Here we will get <connectionString><System.Data> etcAlso check the as<system.data><DbProviderFactories> …. <../>
Here u will get Data providerAdd your Oracle.dataAccess provider Please check configuartion of MS .NET framework whether it is
 x86 bit = 32 bit
x64 bit = 64 bit
This both have different machin.config file .. so you have check both ,    configure your settings.


Now , we have Framework and Framework(x64)this two fileIn both folder machin.config files are presentCheck the following sections : 1)<configuration>            <configSections>          <section name="oracle.dataaccess.client"….><…/> 2) <system.data>            <DbProviderFactories>      <add name="Oracle Data Provider for .NET"…> </>  3) <providers>        <add name="OracleMembershipProvider"…>

No comments:

Post a Comment