Quantcast
Channel: Troubleshooting
Viewing all articles
Browse latest Browse all 1814

Classic ASP with Oracle Connection is not working

$
0
0

I am running Windows Server 2008R2 64-bit (IIS 7.5).  I am in the process of moving my webs from my 2003 web server.  I have installed the Oracle 11.2.0.3 64bit client.  TNSNames.ora is configured and  I can connect to my database using SQLPlus.

When I try to run my Classic ASP web page that connects to Oracle, I get a "Server.CreateObject Failed" on the following line of code:
Set OraSession  = Server.CreateObject("OracleInProcServer.XOraSession")

I have installed/removed the oracle client at least a dozen times from this server, using various installation selections.  The current install was created using the Instant-Client option and then I created a Network\Admin folder and added the TNSNames.ORA file.  Like: http://thedotnethub.blogspot.com/2010/10/installing-oracle-client-on-windows.html 

I have also tried this same install type setting up a TNS_ADMIN environment variable (see http://www.dovetailsoftware.com/blogs/gsherman/archive/2009/09/16/some-notes-on-using-oracle-11-database-instant-client)  I have also tried a Custom Install selecting SQL *Plus, Oracle Call Interface (OCI), Oracle Net, Oracle Services for MTS, Oracle Administration Assistant for Windows, Oracle Provider for OLE DB, Oracle Data Provider for .NET and Oracle Providers for ASP.NET.

I have also tried installing 32 & 64 bit clients using both Instant Client and Custom options (Both Clients using Custom with the above selections is what worked on my SQL 2008 server running on Windows Server 2008R2 for configuring linked server to Oracle) see: http://sqlblog.com/blogs/jorg_klein/archive/2011/06/09/ssis-connect-to-oracle-on-a-64-bit-machine.aspx

I have also install the Oracle Data Access Componets for Oracle Client 11.2.0.3.2 on top of the existing client. - same ASP error as before.  SQLPlus connection works.

So you can see I've been working on this awhile and have tried lots of things.  It really should not be this hard to get database drivers to work on a web server.  If you have had success getting Oracle Drivers to run on Windows Server 2008R2 (IIS 7.5), please let me know what you did to make it work.

 


Viewing all articles
Browse latest Browse all 1814

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>