Error conection with oracle

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for Oracle
Post Reply
mjimenez
Posts: 6
Joined: Thu 27 Apr 2006 16:22

Error conection with oracle

Post by mjimenez » Thu 27 Apr 2006 16:27

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()

Paul
Posts: 725
Joined: Thu 28 Oct 2004 14:06

Post by Paul » Fri 28 Apr 2006 06:13

Please check connection parameters. "cnnprueba.Server" must be the name of host or IP address. Please see OraDirect .NET documentation for more details.

mjimenez
Posts: 6
Joined: Thu 27 Apr 2006 16:22

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

Post by mjimenez » Fri 28 Apr 2006 15:24

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

Alexey
Posts: 2756
Joined: Mon 13 Mar 2006 07:43

Post by Alexey » Wed 03 May 2006 10:55

Yes, uncomment

Code: Select all

'cnnprueba.Port = 2500 
string.

Post Reply