[Mono-devel-list] Exception using ASP.NET (XSP) and OleDb class
Rafael Teixeira
monoman at gmail.com
Tue Sep 14 14:37:00 EDT 2004
I'm not sure that libgda is available in Windows, so that you could
follow Simon's advice.
Also, to connect to Oracle databases I think it is better to use the
specific provider not OLEDB/odbc.
Mono has an implementation of System.Data.OracleClient.dll (see:
http://www.go-mono.com/oracle.html), but again I'm not sure if it
binds correctly to the Windows' version of the Oracle Client dlls.
Hope it helps,
On Tue, 14 Sep 2004 15:52:07 +0200, Gomez Aragoneses, Andres
<agomez at wke.es> wrote:
> Hello guys.
>
> I am developing an ASP.NET application and I have problems connecting to the
> database. No compilation errors but I catch this exception:
>
> System.DllNotFoundException: gda-2 in <0x00050> (wrapper managed-to-native)
> System.Data.OleDb.libgda:gda_init (string,string,int,string[]) in <0x0003e>
> System.Data.OleDb.OleDbConnection:.ctor () in <0x0000a>
> System.Data.OleDb.OleDbConnection:.ctor (string) in <0x00053> (wrapper
> remoting-invoke-with-check) System.Data.OleDb.OleDbConnection:.ctor (string)
> in <0x00065> ConexionDB:prueba ()
>
> My block of code is:
>
> public class ConexionDB {
>
> const string sCon = "DSN=cronos_geac_oracle;PASSWORD=xxxxx;UID=user;";
>
> public string prueba () {
>
> OleDbConnection oCon;
>
> try {
> oCon = new OleDbConnection(this.sCon);
> }
> catch (Exception e) {
> return e+"";
> }
>
> }
> }
>
> The thing is that I have already found one person that has had my problem,
> but it seems no one replied his message (thread formed by only one message):
>
> http://www.mail-archive.com/mono-list@lists.ximian.com/msg09588.html
>
> The unique difference, I think, is that I am on Windows XP and he is on
> Linux. Version of Mono: 1.0.1.
>
> Anyone could comment anything about this? Thanks very much in advance.
>
> --
> Regards,
>
> Andrew
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
--
Rafael "Monoman" Teixeira
---------------------------------------
Cognition is not a representation of an objectively existing world
but is a bringing forth of a world in the process of living.
-- Fritjof Capra, citing
Humberto Maturana and Francisco Varella's "Santiago Theory of Cognition"
More information about the Mono-devel-list
mailing list