Focal Point
Failure to connect from ASP.NET page using iWay client

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/1381057331/m/784101534

May 05, 2010, 10:48 AM
marnixR
Failure to connect from ASP.NET page using iWay client
I recently upgraded the iWay client software on my PC from version 5.2 to version 7.6 in order to bring it in line with the version on our web server. The reason for this upgrade was that an ASP.NET page written to access data on our Data Warehouse managed to connect OK when run in localhost using iWay Client 5.2, but failed to do so when copied to the web server. I had hoped that an upgrade would allow me to replicate and hopefully resolve the server-side connection issue, but this turned out to be a vain hope.

I use the following DSN in both versions :

quote:
private OdbcConnection edaConn = new OdbcConnection("dsn=EDAPNHUB;uid=xxxxxxxx;pwd=xxxxxxxx;");


which from an ASP.NET page works in 5.2, but not in 7.6, the error message being :

quote:
ERROR [08001] [IBI][EDA]Unable to connect to database server (Eda error -7: EDA INIT EDANET ERROR) 'EDACONNECT' (25.6)


The same connection string when used in a .NET application run from my PC does work, which seems to imply that the DSN, username and password are valid - but not from a locally run ASP.NET page.

Does anyone have any clever ideas as to why a connection can be established in 7.6 from an application but not from a web page ?




WebFocus 7.6.5 - Windows XP - admin of http://thescienceforum.org/ and Philosophorum
May 10, 2010, 04:00 AM
marnixR
Problem solved - a change of the connection string to read :

quote:
private OdbcConnection edaConn =
new OdbcConnection("SERVER=EDAPNHUB;DRIVER=iWay 7.6 ODBC Driver;UID=xxxxxxxx;PWD=xxxxxxxx");


appears to have done the trick.
I must admit that I have no clear idea why this worked, though.




WebFocus 7.6.5 - Windows XP - admin of http://thescienceforum.org/ and Philosophorum