G
Guest
ok this is the craziest thing every. I have a piece of code that connects to a dsn database. I have tested the connection two different ways
************************ONE
using ADODB;
ADODB.Connection dbSupra = new ADODB.ConnectionClass();
dbSupra.Open("DSN=112","urs","pss",0);
************************TWO
using System.Data.OleDb;
OdbcConnection dbSupra = new OdbcConnection();
dbSupra.ConnectionString = "DSN=112;UID=urs;PWD=pss";
dbSupra.Open();
run the web page from my development web server which is inside our network and works like a charm. PERFECT
now I upload the exact same code to my production web server which is in between our network and a pix and =( doesnt work error
Exception Details: System.Runtime.InteropServices.COMException: Unspecified error WHY??????????!!!!!!!!!!
now I did this crazy test I build an asp page using vbscript
<%@ language=VBSCRIPT%>
<%
set db=Server.CreateObject("adodb.Connection")
dbSupra.Open("DSN=112","urs","pss",0);
this WORKS both in my dev web server and my production web server.
So first i thought is was the firewall setting but then why does the vbscript code can connect to the server.
PLEASE some enlightening would be appreciated
Silvia Brunet Jones
Programmer Analyst, MCSD.NET\MCDBA
************************ONE
using ADODB;
ADODB.Connection dbSupra = new ADODB.ConnectionClass();
dbSupra.Open("DSN=112","urs","pss",0);
************************TWO
using System.Data.OleDb;
OdbcConnection dbSupra = new OdbcConnection();
dbSupra.ConnectionString = "DSN=112;UID=urs;PWD=pss";
dbSupra.Open();
run the web page from my development web server which is inside our network and works like a charm. PERFECT
now I upload the exact same code to my production web server which is in between our network and a pix and =( doesnt work error
Exception Details: System.Runtime.InteropServices.COMException: Unspecified error WHY??????????!!!!!!!!!!
now I did this crazy test I build an asp page using vbscript
<%@ language=VBSCRIPT%>
<%
set db=Server.CreateObject("adodb.Connection")
dbSupra.Open("DSN=112","urs","pss",0);
this WORKS both in my dev web server and my production web server.
So first i thought is was the firewall setting but then why does the vbscript code can connect to the server.
PLEASE some enlightening would be appreciated
Silvia Brunet Jones
Programmer Analyst, MCSD.NET\MCDBA