[Mono-dev] Issue with the system.DllNotFoundException

Abir Bhattacharya abirb at 2pirad.com
Mon Jul 23 00:38:26 EDT 2007


Hi,

Thanks of the help , its solved now , I did figure it out a little later.
Now it gives problems only when running on the Linux platforms whereas in
the Windows platforms it runs fine with Mono installed on Windows. 

The error returned on the Linux while accessing the DB is as follows :

Conn Class ReadData method Connection unexpectedly terminated
System.ArgumentOutOfRangeException: Index is less than 0 or more than or
equal to the list count.
Parameter name: index
0
  at System.Collections.ArrayList.get_Item (Int32 index) [0x00000] 
  at System.Windows.Forms.DataGridViewCellCollection.get_Item (Int32 index)
[0x00000] 
  

I could not understand if it runs fine on MONO installed over windows why
its having problems over linux.

- Thanks Again

- Abir

-----Original Message-----
From: Rafael Teixeira [mailto:monoman at gmail.com] 
Sent: Saturday, July 21, 2007 6:53 PM
To: Abir Bhattacharya
Cc: mono-devel-list at lists.ximian.com
Subject: Re: [Mono-dev] Issue with the system.DllNotFoundException

Why are you using ODBC, instead of one of the MySQL specific providers?

To use the ODBC provider you need to have the native libs for odbc
installed.

Regards,

On 7/18/07, Abir Bhattacharya <abirb at 2pirad.com> wrote:
>
>
>
>
> Hi
>
>
>
> Am getting this error while I am trying to connect to the MySql DB.
(however
> there are no compile time problems) . I am running mono on VM Ware
(openSuse
> 10.2 ).
>
>
>
>
>
> System.DllNotFoundException: libodbc.so
>
>   at (wrapper managed-to-native)
> System.Data.Odbc.libodbc:SQLAllocHandle
> (System.Data.Odbc.OdbcHandleType,intptr,intptr&)
>
>   at System.Data.Odbc.OdbcConnection.Open () [0x00014] in
>
/tmp/scratch/BUILD/mono-1.2.4/mcs/class/System.Data/System.Data.Odbc/OdbcCon
nection.cs:338
>
>
>
> Please help
>
>
>
> Regards
>
>
>
> Abir
>
>
> -- Visit us at http://www.2pirad.com/ --
>
>
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
>


-- 
Rafael "Monoman" Teixeira
---------------------------------------
"I myself am made entirely of flaws, stitched together with good
intentions."
Augusten Burroughs




-- Visit us at http://www.2pirad.com/ --



More information about the Mono-devel-list mailing list