[Mono-bugs] [Bug 688925] New: Using Sqlite classes immediately fails with TypeInitializationException

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Apr 20 17:50:11 EDT 2011


https://bugzilla.novell.com/show_bug.cgi?id=688925

https://bugzilla.novell.com/show_bug.cgi?id=688925#c0


           Summary: Using Sqlite classes immediately fails with
                    TypeInitializationException
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.10.x
          Platform: x86-64
        OS/Version: Windows 7
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: Mono.Data.Sqlite
        AssignedTo: mhabersack at novell.com
        ReportedBy: clemahieu at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US;
rv:1.9.2.16) Gecko/20110319 Firefox/3.6.16

>From within Visual Studio, create a new project, add a reference to the Mono
2.10.1 4.0 Mono.Data.Sqlite assembly.  Use the program:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Mono.Data.Sqlite;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main (string [] args)
        {
            SqliteConnection connection;

            connection = new SqliteConnection ("Data Source=:memory:");
            connection.Open ();
        }
    }
}

Exception happens on connection.Open ():

The type initializer for 'Mono.Data.Sqlite.SqliteConvert' threw an exception.

Any call to any static method in SqliteConvert has this issue.

Reproducible: Always

Steps to Reproduce:
1.Create a project with the above short code.
2.Run project
3.Crashes on connection.Open ();
Actual Results:  
Exception

Expected Results:  
Not an exception.

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list