Page 1 of 1

Error conection with oracle

Posted: Thu 27 Apr 2006 16:27
by mjimenez
An unhandled exception of type 'CoreLab.Oracle.OracleException'occurred in CoreLab.Oracle.dll

Additional information:Network error:The requested address is not valid in its context

Dim cnnprueba As OracleConnection
cnnprueba = New OracleConnection
cnnprueba.UserId = "tcihq5"
cnnprueba.Password = "tcihq5"
cnnprueba.Server = "tcihq"
cnnprueba.Sid = "tcihq"
'cnnprueba.Port = 2500
cnnprueba.Open()

Posted: Fri 28 Apr 2006 06:13
by Paul
Please check connection parameters. "cnnprueba.Server" must be the name of host or IP address. Please see OraDirect .NET documentation for more details.

if the port is necessary to write it and as it must be his I number ?

Posted: Fri 28 Apr 2006 15:24
by mjimenez
if the port is necessary to write it and as it must be his I number ?

Posted: Wed 03 May 2006 10:55
by Alexey
Yes, uncomment

Code: Select all

'cnnprueba.Port = 2500 
string.