Thread: Could not load file or assembly 'Oracle.DataAccess, Version=2.111.6.20

This question is not answered. Helpful answers available: 5. Correct answers available: 1.


Permlink Replies: 4 - Pages: 1 - Last Post: Oct 28, 2008 1:38 PM Last Post By: JA
ming.man.chan@o...

Posts: 278
Registered: 04/14/07
Could not load file or assembly 'Oracle.DataAccess, Version=2.111.6.20
Posted: Aug 31, 2008 5:55 AM
 
Click to report abuse...   Click to reply to this thread Reply
I hit a problem myself this round. I am running the follow:

Host OS: Windows Server 2008 x64
Visual Studio version: 9.0 (2008) with SP1
ODP.NET: Version=2.111.6.20 (installed)
Guest OSL Win XP Professional SP3
Virtual Machine Software: 6.0.4
Database running in guest OS: Oracle DB 11g

The error message:

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.

I am really running out of idea this time. I run the same application in Windows Server 2008 x86 (32 bit) is fine. Anyone got the accurate solution?

Thanks,
Ming Man
skj

Posts: 463
Registered: 03/28/06
Re: Could not load file or assembly 'Oracle.DataAccess, Version=2.111.6.20
Posted: Aug 31, 2008 9:46 AM   in response to: ming.man.chan@o... in response to: ming.man.chan@o...
 
Click to report abuse...   Click to reply to this thread Reply
Mark's answer posted in this thread might help you -
http://forums.oracle.com/forums/thread.jspa?threadID=697883
ming.man.chan@o...

Posts: 278
Registered: 04/14/07
Re: Could not load file or assembly 'Oracle.DataAccess, Version=2.111.6.20
Posted: Aug 31, 2008 6:39 PM   in response to: skj in response to: skj
 
Click to report abuse...   Click to reply to this thread Reply
It seems the only thing that I can do is try ODP.NET 10g and see what is going on.

Ming Man
ming.man.chan@o...

Posts: 278
Registered: 04/14/07
Re: Could not load file or assembly 'Oracle.DataAccess, Version=2.111.6.20
Posted: Sep 1, 2008 2:48 AM   in response to: ming.man.chan@o... in response to: ming.man.chan@o...
 
Click to report abuse...   Click to reply to this thread Reply
I have no luck on ODP.NET 10g either.

The message I got:

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

Mark, have you tried it in Windows Server 2008 x64?

Ming Man
JA

Posts: 217
Registered: 06/22/06
Re: Could not load file or assembly 'Oracle.DataAccess, Version=2.111.6.20
Posted: Oct 28, 2008 1:38 PM   in response to: ming.man.chan@o... in response to: ming.man.chan@o...
 
Click to report abuse...   Click to reply to this thread Reply
Hi,
I was getting the same error in a new win forms app (.net 2.0 vs 2005). I was thinking this was very odd as I had a asp.net app working fine with pretty much the same code.

When I glanced at Mark Williams comment on the thread above regarding all the x64/64-bit stuff it all came back to me.. I'm running XP x64 edition. And installed the x86 (32bit) ODAC 11.1 (which is all that is out at this time). Is VS need to create a new target solution platform config (that little drop box at the top that says Any CPU by default). All is well in my world now.

Hope this helps somebody out there further.

Cheers
Legend
Guru Guru : 2500 - 1000000 pts
Expert Expert : 1000 - 2499 pts
Pro Pro : 500 - 999 pts
Journeyman Journeyman : 200 - 499 pts
Newbie Newbie : 0 - 199 pts
Oracle ACE Director
Oracle ACE Member
Oracle Employee ACE
Helpful Answer (5 pts)
Correct Answer (10 pts)

Point your RSS reader here for a feed of the latest messages in all forums