System.TypeLoadException:“Method 'get_Info' in type 'Pomelo.EntityFrameworkCore.MySql.Infrastructure.Internal.MySqlOptionsExtension' from assembly 'Pomelo.EntityFrameworkCore.MySql, Version=2.2.6.0, Culture=neutral, PublicKeyToken=null' does not have an implementation.” System.TypeLoadException:“Method 'get_Info' in type 'MySql.Data.EntityFrameworkCore.Infraestructure.MySQLOptionsExtension' from assembly 'MySql.Data.EntityFrameworkCore, Version=8.0.18.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d' does not have an implementation.” Autofac.Core.DependencyResolutionException: An exception was thrown while activating λ:Microsoft.EntityFrameworkCore.DbContextOptions[] -> λ:Microsoft.EntityFrameworkCore.DbContextOptions -> λ:Microsoft.EntityFrameworkCore.DbContextOptions`1[[itsvse.DomainModels.itsvseDb, itsvse.DomainModels, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]. ---> System.TypeLoadException: Methode 'get_Info' in type 'MySql.Data.EntityFrameworkCore.Infraestructure.MySQLOptionsExtension' uit assembly 'MySql.Data.EntityFrameworkCore, Version=8.0.18.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d' heeft geen implementatie. at Microsoft.EntityFrameworkCore.MySQLDbContextOptionsExtensions.UseMySQL Op ITSVSE. WebUI.Startup. <ConfigureServices>b__4_0(DbContextOptionsBuilder opt) in C:\Users\DELL\source\repos\itsvse\itsvse. WebUI\Startup.cs:regel 39 op Microsoft.Extensions.DependencyInjection.EntityFrameworkServiceCollectionExtensions.<>c__DisplayClass3_0'2. <AddDbContextPool>b__0(IServiceProvider _, DbContextOptionsBuilder ob) op Microsoft.Extensions.DependencyInjection.EntityFrameworkServiceCollectionExtensions.<>c__DisplayClass5_0'2. <AddDbContextPool>b__0(IServiceProvider sp, DbContextOptionsBuilder ob) op Microsoft.Extensions.DependencyInjection.EntityFrameworkServiceCollectionExtensions.DbContextOptionsFactory[TContext](IServiceProvider applicationServiceProvider, Actie'2 optiesActie) op Microsoft.Extensions.DependencyInjection.EntityFrameworkServiceCollectionExtensions.<>c__DisplayClass10_0'1. <AddCoreServices>b__0(IServiceProvider p) op Autofac.Extensions.DependencyInjection.AutofacRegistration.<>c__DisplayClass3_0. <Register>b__0(IComponentContext context, IEnumerable'1 parameters) op Autofac.Core.Activators.DelegateDelegateActivator.ActivateInstance(IComponentContext context, IEnumerable'1 parameters) at Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable'1 parameters, Object& decoratorTarget) --- Einde van de inner exception stack trace --- at Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable'1 parameters, Object& decoratorTarget) at Autofac.Core.Resolving.InstanceLookup.Execute() bij Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, IComponentRegistration registration, IEnumerable'1-parameters) bij Autofac.Core.Resolving.ResolveOperation.ResolveComponent(IComponentRegistration registration, IEnumerable'1 parameters) at Autofac.Core.Resolving.ResolveOperation.Execute(IComponentRegistration registration, IEnumerable'1 parameters) bij Autofac.Core.Lifetime.LifetimeScope.ResolveComponent(IComponentRegistration registratie, IEnumerable'1 parameters) op Autofac.ResolutionExtensions.TryResolveService(IComponentContext context, Service service, IEnumerable'1 parameters, Object& instance) bij Autofac.ResolutionExtensions.ResolveService(IComponentContext context, Service service, IEnumerable'1 parameters) op Autofac.ResolutionExtensions.Resolve(IComponentContext context, Type serviceType, IEnumerable'1 parameters) at Autofac.ResolutionExtensions.Resolve(IComponentContext context, Type serviceType) bij Autofac.Extensions.DependencyInjection.AutofacServiceProvider.GetRequiredService(Type serviceType) op Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType) op Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider) bij Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetServices[T](IServiceProvider provider) op Microsoft.EntityFrameworkCore.Design.Internal.DbContextOperations.FindContextTypes() op Microsoft.EntityFrameworkCore.Design.Internal.DbContextOperations.FindContextType(Stringnaam) op Microsoft.EntityFrameworkCore.Design.Internal.DbContextOperations.CreateContext(String contextType) bij Microsoft.EntityFrameworkCore.Design.Internal.MigrationsOperations.AddMigration(Stringnaam, String outputDir, String contextType) op Microsoft.EntityFrameworkCore.Design.OperationExecutor.AddMigrationImpl(Stringnaam, String outputDir, String contextType) op Microsoft.EntityFrameworkCore.Design.OperationExecutor.AddMigration.<>c__DisplayClass0_0. <.ctor>b__0() op Microsoft.EntityFrameworkCore.Design.OperationExecutor.OperationBase.<>c__DisplayClass3_0'1. <Execute>b__0() bij Microsoft.EntityFrameworkCore.Design.OperationExecutor.OperationBase.Execute(Action actie) Er werd een uitzondering gegooid tijdens het activeren van λ:Microsoft.EntityFrameworkCore.DbContextOptions[] -> λ:Microsoft.EntityFrameworkCore.DbContextOptions -> λ: Microsoft.EntityFrameworkCore.DbContextOptions'1[[itsvse. DomainModels.itsvseDb, itsvse. DomainModels, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].
Aan het begin van de installatie stond:
Later geïnstalleerd was
De uiteindelijke oplossing: installeer de volgende versie:
|