[Mono-dev] Problem with monodevelop and Oracle

Velazquez Angel mrunixus at yahoo.es
Wed Apr 2 15:51:07 EDT 2008


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..
  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20080402/51bb1a06/attachment-0001.html 


More information about the Mono-devel-list mailing list