Closed
Description
openedon Nov 8, 2021
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