Hello All..!!
I've developed window & asp web applications in VS 2008 in windows server 2008, which can connect to Oracle database using 10g client (10.2.0.1.0).
Now I want to move my applications to VS 2015 in Windows server 2012 R2, which connects to the same Oracle database using 10g client (10.2.0.1.0).
After moved the web application, I hosted it in IIS @ server 2012 R2. When I try to access the web application, it's showing this error "System.Exception: System.Data.OracleClient requires Oracle client software version 8.1.7 or greater." at the time of opening the db connection ( connection.Open() ).
When I try to open the application in VS 2015 and debug it, I'm getting this error "System.Data.OracleClient.OracleException: ORA-12154: TNS:could not resolve the connect identifier specified" at the time of opening the db connection ( connection.Open() ).
And I've moved several window application too. I'm able to build and run the application if I set the platform target to x86.
If the platform target to 'Any CPU', I'm getting the below error.
An unhandled exception of type 'System.InvalidOperationException' occurred in System.Data.OracleClient.dll
Additional information: Attempt to load Oracle client libraries threw BadImageFormatException. This problem will occur when running in 64 bit mode with the 32 bit Oracle client components installed.
Pls help me out on what I'm missing...!!!