Skip to content

Update from 5.0.1 to 6.0breaks all SqliteConnection  #26574

Closed

Description

File a bug

C# code like:

private static SqliteConnection DbConnectionPeoplePositionInPhoto
{
    get
    {
        var connectionStringBuilder = new SqliteConnectionStringBuilder { DataSource = DBPathPeoplePositionInPhoto };
        string connectionString = connectionStringBuilder.ToString();
        return new SqliteConnection(connectionString);
    }
}

used to work fine.

Now I am getting:

System.TypeInitializationException: 'A type initializer threw an exception. To determine which type, inspect the InnerException's StackTrace property.'

Inner Exception
NullReferenceException: Object reference not set to an instance of an object.


System.TypeInitializationException
  HResult=0x80131534
  Message=A type initializer threw an exception. To determine which type, inspect the InnerException's StackTrace property.
  Source=<Cannot evaluate the exception source>
  StackTrace:
<Cannot evaluate the exception stack trace>

Inner Exception 1:
NullReferenceException: Object reference not set to an instance of an object.

Include version information

Microsoft.Data.Sqlite version: 6.0
Target framework: (e.g. .NET 5.0)
Operating system: Windows 11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions