Oracle Connection 64 bit Problem


Author
Message
lastcanary
lastcanary
StrataFrame User (155 reputation)StrataFrame User (155 reputation)StrataFrame User (155 reputation)StrataFrame User (155 reputation)StrataFrame User (155 reputation)StrataFrame User (155 reputation)StrataFrame User (155 reputation)StrataFrame User (155 reputation)StrataFrame User (155 reputation)
Group: StrataFrame Users
Posts: 81, Visits: 270
I am trying to access an Oracle database located on the same Windows 2008 64 bit PC but I am receiving

Error Connecting To Server
Attempting to load Oracle libraries threw
BadImageFormatException. This problem will occur
when running in 64 bit mode with 32 bit Oracle

Error, could you please help me to solve this problem?
Ivan George Borges
Ivan George Borges
Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)
Group: StrataFrame MVPs
Posts: 1.9K, Visits: 21K
lastcanary
lastcanary
StrataFrame User (155 reputation)StrataFrame User (155 reputation)StrataFrame User (155 reputation)StrataFrame User (155 reputation)StrataFrame User (155 reputation)StrataFrame User (155 reputation)StrataFrame User (155 reputation)StrataFrame User (155 reputation)StrataFrame User (155 reputation)
Group: StrataFrame Users
Posts: 81, Visits: 270
Thank you for the reply.

Unfortunately I couldnt find the answer in the link. It is mostly concentrating on web applications and setting IIS settings but my problem is with a windows application that does not use IIS.

Let me give you more details about this issue I hope that it helps.

I was using my laptop with Windows XP and 32 bit CPU and developed the code on this laptop.

It was an application working in my laptop and connecting to an Oracle database located in a Windows 2008 64 bit PC.

My laptop has a low performance so I thought that it is better to move to a better PC to speed up the development.

I shifted my license from my laptop to the PC and copied the project files. I didnt received any compile errors and the application started but when I was setting the connection properties I received the error.

I hope that these details will help
Ivan George Borges
Ivan George Borges
Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)
Group: StrataFrame MVPs
Posts: 1.9K, Visits: 21K
Try targeting your projects to "x86"

1. Open your project in VS.
2. Menu > Project > ... Properties
3. Switch to "Build" card
4. Switch - Platform target to "x86"
5. Save it


Also, you probably have found out already, but there are lots of discussions out there regarding this issue, all about Oracle and connection problems on this situation. If you have a look at some of them you will probably get a better picture on how to deal with it on your situation.
lastcanary
lastcanary
StrataFrame User (155 reputation)StrataFrame User (155 reputation)StrataFrame User (155 reputation)StrataFrame User (155 reputation)StrataFrame User (155 reputation)StrataFrame User (155 reputation)StrataFrame User (155 reputation)StrataFrame User (155 reputation)StrataFrame User (155 reputation)
Group: StrataFrame Users
Posts: 81, Visits: 270
Thank you for your reply,

Unfortunately this didnt work for me. I am struggling for the solution but I couldnt do anything about the problem.

Could you please at least provide me some links that I can try?
lastcanary
lastcanary
StrataFrame User (155 reputation)StrataFrame User (155 reputation)StrataFrame User (155 reputation)StrataFrame User (155 reputation)StrataFrame User (155 reputation)StrataFrame User (155 reputation)StrataFrame User (155 reputation)StrataFrame User (155 reputation)StrataFrame User (155 reputation)
Group: StrataFrame Users
Posts: 81, Visits: 270
Thank you for your support, I figured out that I have installed 32 bit Oracle on a 64 bit O.S. and changed the installation. Now, everthing works perfectly.

Sorry for any inconvenience
Ivan George Borges
Ivan George Borges
Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)
Group: StrataFrame MVPs
Posts: 1.9K, Visits: 21K
Glad to hear that! No problem at all.
Edited 13 Years Ago by Ivan George Borges
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search