Question

I'm a bit lost here.

I have a 64-bit Windows 7 and I'm trying to do something on Visual Studio 2008 (I want to build something that works on 32 and 64 bit systems).

I'm also trying to use ODP.net and i had installed, a long time ago, the oracle 11g client, but unfortunatly for me i ended up with 2 oracle clients homes and one oradb home (i did found it to be very confusing, i mean the installation and i remmember i got a lot of troubles during the installations). i tried to correct this by removing what i had extra but never made it, not even with the Oracle uninstall (the official one they provide). Until now i used OLeDB to connect to an oracle DB but i want to start using ODP and so the Oracle.DataAccess.dll.

First i used the 32 bit version and it did not worked, saying it could not load it in the assembly. I found the reason was that my visual studio project properties had to be changed to work only on 32 bit systems. Even this way when i execute the command

cmd.ExecuteReader();

I got an error saying that vshost32 crashed.

I then decided to download the ODP-64 bit. This time it did not gave me the assembly error having my project for all types of systems, but the vshost crash happened anyway, although this time it was vshost and not vshost32, guessing visual studio is executing a different one depending on my project properties.

I'm trying to avoid reinstalling everything (oracle clients and vs2008) for 2 reasons. One, untill now i wasn't able to uninstall completely an oracle client, second because i have many work dependent and can't really do it fast enough and 100% sure it will work or it will not make thing worst.

So... any help? Any advice? I'm i missing something? Is the vshost crashing because i failed to install the ODP correctly? I can't find much information on web, basicly i only find code on how to use the ODP.

I would appreciate any help. I do think i should be starting from zero-ground (uninstalling everything) but only if it is safe and fast to do.

==============================================

Not sure its relevant but i found the oracle.dataaccess.dll in both GAC_64 and GAC_32 under C:\Windows\Microsoft.NET\assembly. I can also find the Policy in both cases.

Was it helpful?

Solution

Start from registry, find odp.net, after it - look at gac, you should see oracle.dataaccess.dll from your versions, as well as pokucy dlls, saying wich odac you are going to use.

Then, look on the folder, specified in registry, try to find oracle.Dataaccess.dll.

I'd yry to backul registry, uninstall ODACs only,cleanup regestry entries, may be backup and clean the gac.

After it, reinstal odac (i think 11 came with own client) 64bits, config your project to be built as 64 bit.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top