.net - Error using oracle.dataaccess.dll -


i have web application uses oracle.dataaccess.dll communicate oracle db. web application deployed on 32 bit windows system works not on windows server 2008 64 bit. installed 10204_vista_win2k8_x64_production_db package, referenced installed dll (version 2.102.4.0) project following error:

could not load file or assembly 'oracle.dataaccess, version=2.102.4.0, culture=neutral, publickeytoken=89b483f429c47342' or 1 of dependencies. system cannot find file specified.

same here. oracle.dataaccess assembly doesn't run in 64 bit mode.

you should set application pool site 32 bit mode (go application pool's advanced settings , set allow 32 bit applications "true")

if doesn't work, make sure oracle directory (the directory containing oracle dlls) in system path. if forget that, same cryptic error not finding oracle.dataaccess.

edit:

installing oracle client can major pain. using oracle instant client easier installing full client, do:

  1. download oracle instant client
  2. unzip archive in c:\oracle (any other directory do)
  3. open command prompt as administrator
  4. type cd \oracle
  5. type configure odp.net20 myhome
  6. right-click on "my computer", "advanced system settings", "environment variables" , add c:\oracle directory system path
  7. copy oracle.dataaccess.dll file c:\oracle\odp.net\bin\2.x application's bin folder
  8. (optonally) edit c:\oracle\tnsnames.ora file

Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -