Hi,

I'm trying to get some code running that reads an access database. I read in another thread that System.Data.OleDb is un-maintained and requires libgda. So I have install mdbtools and compiled libgda with the mdb provider. Now I have gda-sharp.dll but when I try and create an oleDbInsertCommand1; with the code

private System.Data.OleDb.OleDbCommand oleDbInsertCommand1;
this.oleDbInsertCommand1 = new System.Data.OleDb.OleDbCommand();

I get an error that Mono can't find gda-2.dll, does anyone know what package contains gda-2.dll?

Thanks,
Paddy

Unhandled Exception: System.DllNotFoundException: gda-2
in (wrapper managed-to-native) System.Data.OleDb.libgda:gda_init (string,string,int,string[]) in [0x00017] (at /tmp/mono/trunk/mcs/class/System.Data/System.Data.OleDb/OleDbConnection.cs:58) System.Data.OleDb.OleDbConnection:.ctor () in (wrapper remoting-invoke-with-check) System.Data.OleDb.OleDbConnection:.ctor () in [0x00038] (at /tmp/Samples/SimpleGridEX.cs:92) GridEXSamples.SimpleGridEX:InitializeComponent () in [0x00007] (at /tmp/Samples/SimpleGridEX.cs:61) GridEXSamples.SimpleGridEX:.ctor ()
in (wrapper remoting-invoke-with-check) GridEXSamples.SimpleGridEX:.ctor ()
in [0x0000b] (at /tmp/Samples/MainForm.cs:204) GridEXSamples.MainForm:button1_Click (System.Object sender, System.EventArgs e) in (wrapper delegate-invoke) System.MulticastDelegate:invoke_void_object_EventArgs (object,System.EventArgs) in [0x00013] (at /tmp/mono/trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:4145) System.Windows.Forms.Control:OnClick (System.EventArgs e) in [0x0002c] (at /tmp/mono/trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Button.cs:96) System.Windows.Forms.Button:OnClick (System.EventArgs e) in [0x000a6] (at /tmp/mono/trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ButtonBase.cs:470) System.Windows.Forms.ButtonBase:OnMouseUp (System.Windows.Forms.MouseEventArgs mevent) in [0x00002] (at /tmp/mono/trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Button.cs:100) System.Windows.Forms.Button:OnMouseUp (System.Windows.Forms.MouseEventArgs e) in [0x002d4] (at /tmp/mono/trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:3841) System.Windows.Forms.Control:WndProc (System.Windows.Forms.Message m) in [0x00057] (at /tmp/mono/trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ButtonBase.cs:523) System.Windows.Forms.ButtonBase:WndProc (System.Windows.Forms.Message m) in [0x00002] (at /tmp/mono/trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Button.cs:113) System.Windows.Forms.Button:WndProc (System.Windows.Forms.Message m) in [0x00007] (at /tmp/mono/trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:160) System.Windows.Forms.Control+ControlNativeWindow:WndProc (System.Windows.Forms.Message m) in [0x00056] (at /tmp/mono/trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/NativeWindow.cs:146) System.Windows.Forms.NativeWindow:WndProc (IntPtr hWnd, Msg msg, IntPtr wParam, IntPtr lParam) in [0x0001c] (at /tmp/mono/trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs:2631) System.Windows.Forms.XplatUIX11:DispatchMessage (System.Windows.Forms.MSG msg) in [0x00006] (at /tmp/mono/trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUI.cs:414) System.Windows.Forms.XplatUI:DispatchMessage (System.Windows.Forms.MSG msg) in [0x00248] (at /tmp/mono/trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Application.cs:392) System.Windows.Forms.Application:RunLoop (Boolean Modal, System.Windows.Forms.ApplicationContext context) in [0x00007] (at /tmp/mono/trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Application.cs:288) System.Windows.Forms.Application:Run (System.Windows.Forms.Form mainForm) in [0x00005] (at /tmp/Samples/MainForm.cs:199) GridEXSamples.MainForm:Main ()

_______________________________________________
Mono-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to