[Mono-devel-list] help with using OleDb

ronny abraham ballantrae_jlinx2000 at yahoo.com
Mon Jul 12 21:41:58 EDT 2004


I'm trying to run a Mono example which
uses to Ole classes.  I can run Npgsql-based classes
fine.  But when I run a similiar example using OleDb I
get:

[ron at localhost sharp]$ mono dbtest.exe
 
** (System.Data.OleDb:27727): CRITICAL **: file
gda-config.c: line 136 (gda_config_parse_config_file):
assertion `len != 0' failed


Which is why I'm trying to reinstall libgda from
sources in the first place.  If someone can help, I'll
be happy.

For the sake of completeness, I'm including the code
for the OleDb example below (it's slightly modified
from the go-mono website)

I've gotten this thing working before, only I can't
figure out what I've done differently.  ARRRGH!

*********************************
 using System;
 using System.Data;
 using System.Data.OleDb;
                                                      
                         
 public class DbTest
 {
    public static void Main(string[] args)
    {
        // there is a libgda PostgreSQL provider
       string connectionString =
          "Provider=PostgreSQL;" +
          "Addr=127.0.0.1;" +
          "Database=bogus;" +
          "User ID=bogusman;" +
          "Password=";
       IDbConnection dbcon;
       dbcon = new OleDbConnection(connectionString);
       dbcon.Open();

       dbcon.Close();
       dbcon = null;
    }
 }
***********************************************






		
__________________________________
Do you Yahoo!?
Yahoo! Mail is new and improved - Check it out!
http://promotions.yahoo.com/new_mail



More information about the Mono-devel-list mailing list