Skip to Main Content

ODP.NET

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Oracle Managed Client - OracleConnection.Open() throw a socket Exception "No such host is known" an

PragmaDevApr 14 2014 — edited Apr 18 2014

Hi,

This is not a blocking bug, but we have an exception throw by OracleConnection.Open() when we activate "Common Language Runtime Exceptions" in VS 2012.

When we try to open the first connection, OracleConnection.Open() throw a socket Exception "No such host is known" ErrorCode 11001 and open the connection.

No problem after that or if we desactivate "Common Language Runtime Exceptions".

Whe have made short investigation using Reflector, It seems to come from OracleInternal.Network.EzConnect.Resolve(string TNSAlias, out ConnectionOption CO, string InstanceName = null) when you try to do : if (Dns.GetHostAddresses(CO.Host) == null).

Best Regard,

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 16 2014
Added on Apr 14 2014
5 comments
2,886 views