Skip to content

InvalidOperationException in Microsoft.Data.Sqlite.dll in VS Output console #406

@alexandrejobin

Description

@alexandrejobin

When I use the HealthChecksUI, I get many exception in the visual studio output console:

Exception thrown: 'Microsoft.Data.Sqlite.SqliteException' in Microsoft.Data.Sqlite.dll
Exception thrown: 'Microsoft.Data.Sqlite.SqliteException' in Microsoft.EntityFrameworkCore.Relational.dll
Exception thrown: 'Microsoft.Data.Sqlite.SqliteException' in Microsoft.Data.Sqlite.dll
Exception thrown: 'Microsoft.Data.Sqlite.SqliteException' in Microsoft.EntityFrameworkCore.Relational.dll
Exception thrown: 'System.InvalidOperationException' in Microsoft.Data.Sqlite.dll
Exception thrown: 'System.InvalidOperationException' in Microsoft.Data.Sqlite.dll
...
...
// this one repeat many times
Exception thrown: 'System.InvalidOperationException' in Microsoft.Data.Sqlite.dll

To test it, just create a new aspnet core web project and add this in the startup.cs. No need to add anything in the Configure section. If you remove the AddHealthChecksUI() line, there's no error.

public void ConfigureServices(IServiceCollection services)
{
    services.AddControllersWithViews();

    services
        .AddHealthChecksUI()
        .AddHealthChecks();
}

Any idea?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions