[Mono-dev] Problem with monodevelop and Oracle
Torello Querci
tquerci at gmail.com
Wed Apr 2 16:12:22 EDT 2008
Sorry Velazquez but this one seems to be a runtime error causedc by a
misconfigured TNS network.
Have you tried to use tnsping on the same server?
Regards, Torello Querci
2008/4/2, Velazquez Angel <mrunixus at yahoo.es>:
> I've recently created a simple proyect to connect from mono to Oracle,
> what is the problem?
> when I compile the proyect using mono develop I get the current error:
> Unhandled Exception:
> System.Data.OracleClient.OracleException: ORA-12154:
> TNS:could not resolve the connect identifier specified
>
> at System.Data.OracleClient.Oci.OciServerHandle.Attach
> (System.String tnsname,
> System.Data.OracleClient.Oci.OciErrorHandle error)
> [0x00055] in
> /var/tmp/portage/dev-lang/mono-1.2.5.1-r1/work/mono-1.2.5.1/mcs/class/System.Data.OracleClient/System.Data.OracleClient.Oci/OciServerHandle.cs:56
> at System.Data.OracleClient.Oci.OciGlue.CreateConnection
> (OracleConnectionInfo conInfo) [0x00199] in
> /var/tmp/portage/dev-lang/mono-1.2.5.1-r1/work/mono-1.2.5.1/mcs/class/System.Data.OracleClient/System.Data.OracleClient/OciGlue.cs:123
> at
> System.Data.OracleClient.OracleConnectionPoolManager.CreateConnection
> (OracleConnectionInfo info) [0x00006] in
> /var/tmp/portage/dev-lang/mono-1.2.5.1-r1/work/mono-1.2.5.1/mcs/class/System.Data.OracleClient/System.Data.OracleClient/OracleConnectionPoolManager.cs:57
> at
> System.Data.OracleClient.OracleConnectionPool.CreateConnection
> () [0x0000e] in
> /var/tmp/portage/dev-lang/mono-1.2.5.1-r1/work/mono-1.2.5.1/mcs/class/System.Data.OracleClient/System.Data.OracleClient/OracleConnectionPool.cs:97
> at
> System.Data.OracleClient.OracleConnectionPool.GetConnection
> () [0x000bb] in
> /var/tmp/portage/dev-lang/mono-1.2.5.1-r1/work/mono-1.2.5.1/mcs/class/System.Data.OracleClient/System.Data.OracleClient/OracleConnectionPool.cs:74
> at System.Data.OracleClient.OracleConnection.Open ()
> [0x00061] in
> /var/tmp/portage/dev-lang/mono-1.2.5.1-r1/work/mono-1.2.5.1/mcs/class/System.Data.OracleClient/System.Data.OracleClient/OracleConnection.cs:352
> at (wrapper remoting-invoke-with-check)
> System.Data.OracleClient.OracleConnection:Open ()
> at Test.Main (System.String[] args) [0x0000f] in
> /home/pmorales/Projects/atest/atest/Main.cs:15
>
> -------------------------------------------------------------------------------------------------
> but if I compile the code using this line:
> mcs a.cs /r:System.Data.dll /r:System.Data.OracleClient.dll
> the program work fine,
> Could anyone help me please?
>
>
> ________________________________
>
> Enviado desde Correo Yahoo!
> Disfruta de una bandeja de entrada más inteligente..
>
>
>
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
>
More information about the Mono-devel-list
mailing list