Base solution for your next web application
Open Closed

ELSA not working in Zero 10.x #10076


User avatar
1
SASIMEXICO created

Prerequisites

Zero 10.2.0 Angular .net core

ABP Framework

ABP Framework version: 6.2.0

ELSA

ELSA version: 1.5.3.1369

EntityFramework

EntityFramework version: 5.0.2

Issue

Using ELSA and configure it as:

        // Add services used for the workflows runtime.
        services
            .AddElsa(elsa => elsa.AddEntityFrameworkStores<SqliteContext>(options => 
                options.UseSqlite(_appConfiguration.GetConnectionString("Sqlite"))))
            .AddHttpActivities(options => options.Bind(_appConfiguration.GetSection("Elsa:Http")))
            .AddEmailActivities(options => options.Bind(_appConfiguration.GetSection("Elsa:Smtp")))
            .AddTimerActivities(options => options.Bind(_appConfiguration.GetSection("Elsa:Timers")))

            // Add services used for the workflows dashboard.
            .AddElsaDashboard();

We can compile and start Swagger as well, but when access to elsa dashboard this error appear:

TypeLoadException: Could not load type 'Microsoft.EntityFrameworkCore.Metadata.RelationalEntityTypeAnnotations' from assembly 'Microsoft.EntityFrameworkCore.Relational, Version=5.0.2.0, Culture=neutral

All the RelationalEntity are listed in the error.

Please help!


2 Answer(s)