Hello
I have a solution created in VS.NET and i�m trying to port it to Mono in linux. The application has ASPX pages and acesses a MySQL DB through ODBC.
In windows i use Microsoft.Data.Odbc and in linux i change it System.Data.Odbc. It builds fine but when i execute it there is an error:
 
** (xsp.exe:2930): WARNING **: Failed to load library ./libodbc32.so (odbc32): ./libodbc32.so: cannot open shared object file: No such file or directory
 
I instaled the rpm "wine-20000213-1.i386.rpm" that has that library so i don't see why i have this error.
I have RedHat 9, Mono 0.26 and xsp 0.5.
If i run MySql on another machine i only need odbc drivers and not MyOdbc drivers, right? Thats what i have, i've installed unixODBC 2.2.5 anda i'm connecting to MySql that is on another machine.
I don't see where the problem is, can anyone help me? Could it be of unixODBC ? xsp? or is libodbc32.so badly configured?
 
Btw, this is the exception that is thrown and apears in the browser:
System.MissingMethodException: A missing method exception has occurred.
in <0x00042> 06 System.Data.Odbc.libodbc:SQLAllocHandle (System.Data.Odbc.OdbcHandleType,intptr,intptr&)
in <0x00073> 00 System.Data.Odbc.OdbcConnection:.ctor ()
in <0x0000a> 00 System.Data.Odbc.OdbcConnection:.ctor (string)
in <0x00066> 08 System.Data.Odbc.OdbcConnection:.ctor (string)
in <0x000d0> 00 ServidorDadosSpace.ServidorDados:.ctor (PropriedadesSpace.Propriedades,XmlSpace.MyXml&,MonitorizacaoSpace.Monitorizacao&)
in <0x005bf> 00 InterfaceUtilizador.login:Page_Load (object,System.EventArgs)
in <0x0005a> 01 System.MulticastDelegate:invoke_void_object_EventArgs (object,System.EventArgs)
in <0x00084> 00 System.Web.UI.Control:OnLoad (System.EventArgs)
in <0x00031> 00 System.Web.UI.Control:LoadRecursive ()
in <0x000be> 00 System.Web.UI.Page:ProcessRequest (System.Web.HttpContext)
in <0x00191> 00 .ExecuteHandlerState:Execute ()
in <0x0004e> 00 .StateMachine:ExecuteState (System.Web.HttpApplication/IStateHandler,bool&)
Thanks in advance
 
Pedro Borges
 
 

 

Reply via email to