[Mono-list] Problems with System.Data.OracleClient under mod_mono
Hi! I have been fighting with mod_mono and a simple WebService that uses System.Data.OracleClient. I just get an error-message from mod_mono that says: The remote server returned an error (500) Internal Server Error oci I have a similar program which I run from the command line which works great. I can also (kind of) make it to work running it under XSP. I have checked the environment variables for mod_mono, I have checked that the dll-map in /etc/mono/config is correct without any success. The exception is thrown when I'm doing a 'dbcon.Open();' I know the connection strings are Ok. Is there btw a way of turning on stacktracing while running a WebService application under mod_mono? ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Problems with System.Data.OracleClient under mod_mono
On Fri, 2004-12-17 at 19:26 +0100, Trygve Falch wrote: I have checked the environment variables for mod_mono, I have checked that the dll-map in /etc/mono/config is correct without any success. Ok, I'm replying to my self now. I'm sorry, but after some 'try' and 'catch'-magic around the dbcon.Open() it is indeed reporting that I'm getting a System.DllNotFoundException: oci. I'm very confused now, because this works perfectly from the commandline (with the same environment variables as I have for the apache instance). Are there any OTHER places that mono looks for the dllmap-information except from /etc/mono/config? I mean, mod-mono-server is executed by mono so it should read it. I'm running 1.0.5 of mono downloaded from go-mono.org. My brain hurts. ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] Problems with System.Data.OracleClient
Hello, please could you tell me how System.Data.OracleClient works on Linux Here my environment : OS : SuSE 9.0 with Mono 1.04 and Oracle Client 9.2.0.1 For testing I used the testprogram down on /www.go-mono.com/oracle.html with modification for connecting my oracle database Compilation was succesfull When I run -mono test.exe- I' ve got this message Unhandled Exception: System.DllNotFoundException: oci in 0x00053 (wrapper managed-to-native) OciNativeCalls:OCIEnvCreate (intptr,System.Data.OracleClient.Oci.OciEnvironmentMode,intptr,intptr,i ntptr,intptr,int,intptr) in 0x00020 System.Data.OracleClient.Oci.OciCalls:OCIEnvCreate (intptr,System.Data.OracleClient.Oci.OciEnvironmentMode,intptr,intptr,i ntptr,intptr,int,intptr) in 0x0005d System.Data.OracleClient.Oci.OciEnvironmentHandle:.ctor (System.Data.OracleClient.Oci.OciEnvironmentMode) in 0x0003c System.Data.OracleClient.Oci.OciGlue:CreateConnection (System.Data.OracleClient.OracleConnectionInfo) in 0x0002b System.Data.OracleClient.OracleConnection:Open () in 0x0004f (wrapper remoting-invoke-with-check) System.Data.OracleClient.OracleConnection:Open () in 0x0006a Test:Main (string[]) Then I tried it with OS : SuSE 9.1 with Mono 1.04 and Oracle Client from Version 10g ... same problems will appear :-( what's wrong ? ... does a file like oci.dll on linux exist ? please help me best regards Mike __ This communication contains information which may be confidential. It is for the exclusive use of the intended recipient. If you are not the intended recipient, please note that any distribution, copying or use of this communication or the information in it is prohibited. If you have received this communication in error, please notify us by email or by telephone on +49-5362-9374-0 and then delete the email and any copies of it. ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Problems with System.Data.OracleClient
Oetjen, Michael wrote: Hello, please could you tell me how System.Data.OracleClient works on Linux Here my environment : OS : SuSE 9.0 with Mono 1.04 and Oracle Client 9.2.0.1 For testing I used the testprogram down on /www.go-mono.com/oracle.html with modification for connecting my oracle database Compilation was succesfull When I run -mono test.exe- I' ve got this message Unhandled Exception: System.DllNotFoundException: oci in 0x00053 (wrapper managed-to-native) OciNativeCalls:OCIEnvCreate (intptr,System.Data.OracleClient.Oci.OciEnvironmentMode,intptr,intptr,i ntptr,intptr,int,intptr) in 0x00020 System.Data.OracleClient.Oci.OciCalls:OCIEnvCreate (intptr,System.Data.OracleClient.Oci.OciEnvironmentMode,intptr,intptr,i ntptr,intptr,int,intptr) in 0x0005d System.Data.OracleClient.Oci.OciEnvironmentHandle:.ctor (System.Data.OracleClient.Oci.OciEnvironmentMode) in 0x0003c System.Data.OracleClient.Oci.OciGlue:CreateConnection (System.Data.OracleClient.OracleConnectionInfo) in 0x0002b System.Data.OracleClient.OracleConnection:Open () in 0x0004f (wrapper remoting-invoke-with-check) System.Data.OracleClient.OracleConnection:Open () in 0x0006a Test:Main (string[]) Then I tried it with OS : SuSE 9.1 with Mono 1.04 and Oracle Client from Version 10g ... same problems will appear :-( what's wrong ? ... does a file like oci.dll on linux exist ? please help me best regards Mike Hi, problem is your program cannot find oracle libraries, so you need to set up ORACLE environment to run your program correctly. Example: export ORACLE_BASE=/opt/oracle export ORACLE_HOME=$ORACLE_BASE/product/9.2.0.1.0 export PATH=$ORACLE_HOME/bin:$PATH export ORACLE_OWNER=oracle export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/opt/oracle/product/9.2.0.1.0/lib export CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib:$ORACLE_HOME/network/jlib Lojza ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
RE: [Mono-list] Problems with System.Data.OracleClient
Hello Michael, -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Oetjen, Michael When I run -mono test.exe- I' ve got this message Unhandled Exception: System.DllNotFoundException: oci in 0x00053 (wrapper managed-to-native) OciNativeCalls:OCIEnvCreate ... what's wrong ? ... does a file like oci.dll on linux exist ? oci.dll is mapped to libclntsh.so under Linux (see $MONO_PATH/etc/mono/config). This lib has to be in the path. Joerg. ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list