[Mono-list] ODBC problem on Windows 2k\mono-1.1.10\Apache

Alex Prudkiy ctype at mail.ru
Fri Nov 25 07:59:21 EST 2005


Hi,

Thanks. The first error is away. but raised new.

Look like odbc on windows with mono anyway don't worked.
When I invoke "select * from sometable"
I receive
System.NullReferenceException: Object reference not set to an instance of an
        object
in <0x000a6> System.Data.Odbc.OdbcDataReader:GetPrimaryKeys (System.String catalog,
      System.String schema, System.String table)
in <0x00b62> System.Data.Odbc.OdbcDataReader:GetSchemaTable ()
in <0x0008b> System.Data.Odbc.OdbcDataReader:.ctor (System.Data.Odbc.OdbcCommand command,
      CommandBehavior behavior)
in <0x00010> System.Data.Odbc.OdbcDataReader:.ctor (System.Data.Odbc.OdbcCommand command,
      CommandBehavior behavior, Int32 recordAffected)
in (wrapper remoting-invoke-with-check) System.Data.Odbc.OdbcDataReader:.ctor (
     System.Data.Odbc.OdbcCommand,System.Data.CommandBehavior,int)
in <0x00034> System.Data.Odbc.OdbcCommand:ExecuteReader (CommandBehavior behavior)
in (wrapper remoting-invoke-with-check) System.Data.Odbc.OdbcCommand:ExecuteReader (
     System.Data.CommandBehavior)

Is odbc useful on windows with mono ?


Friday, November 25, 2005, 1:19:17 PM, you wrote:

TS> Hi 

TS> this seems to be an issue with the installer ..
TS> The entry <dllmap dll="odbc32.dll" target ="libodbc.so">  in 
TS> (mono-base-dir)\etc\mono\config file is causing the odbc32.dll to be
TS> mapped to libodbc.so.. 
TS> Remove the entry and things  shud work allright .. 

TS> cheers
TS> senga

>>>> Alex Prudkiy <ctype at mail.ru> 11/25/05 1:22 AM >>>
TS> Hi,

TS> I am trying the developing webservice on windows with
TS> Apache\mod_mono\mono-1.1.10.

TS> When I call my server, I receive such error:
TS> System.DllNotFoundException: libodbc.so
TS> in (wrapper managed-to-native)
TS> System.Data.Odbc.libodbc:SQLAllocHandle (
TS>      System.Data.Odbc.OdbcHandleType,intptr,intptr&)
TS> in <0x00082> System.Data.Odbc.OdbcConnection:Open ()

TS> Where I can found this libodbc.so, because if I copy odbc32.dll to
TS> directory of webservice with name libodbc.dll the
TS> Assembly.Load exception raised.

TS> Best regards,
TS> Alex Prudkiy

TS> _______________________________________________
TS> Mono-list maillist  -  Mono-list at lists.ximian.com 
TS> http://lists.ximian.com/mailman/listinfo/mono-list
TS> _______________________________________________
TS> Mono-list maillist  -  Mono-list at lists.ximian.com
TS> http://lists.ximian.com/mailman/listinfo/mono-list



Best regards,
Alex Prudkiy



More information about the Mono-list mailing list