VahidN / DNTIdentity

A highly customized sample of the ASP.NET Core Identity

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Exception has occurred: CLR/System.InvalidOperationException

mammadkoma opened this issue · comments

image

after run by vscode :
Exception has occurred: CLR/System.InvalidOperationException
An exception of type 'System.InvalidOperationException' occurred in Microsoft.EntityFrameworkCore.Relational.dll but was not handled in user code: 'Relational-specific methods can only be used when the context is using a relational database provider.'
at Microsoft.EntityFrameworkCore.RelationalDatabaseFacadeExtensions.GetRelationalService[TService](IInfrastructure`1 databaseFacade)
at Microsoft.EntityFrameworkCore.RelationalDatabaseFacadeExtensions.Migrate(DatabaseFacade databaseFacade)
at ASPNETCoreIdentitySample.Services.Identity.IdentityDbInitializer.Initialize() in E:\Projects\DNTIdentity\src\ASPNETCoreIdentitySample.Services\Identity\IdentityDbInitializer.cs:line 64
at ASPNETCoreIdentitySample.IocConfig.IdentityServicesRegistry.callDbInitializer(IApplicationBuilder app) in E:\Projects\DNTIdentity\src\ASPNETCoreIdentitySample.IocConfig\IdentityServicesRegistry.cs:line 40
at ASPNETCoreIdentitySample.IocConfig.IdentityServicesRegistry.UseCustomIdentityServices(IApplicationBuilder app) in E:\Projects\DNTIdentity\src\ASPNETCoreIdentitySample.IocConfig\IdentityServicesRegistry.cs:line 31
at ASPNETCoreIdentitySample.Startup.Configure(ILoggerFactory loggerFactory, IApplicationBuilder app, IHostingEnvironment env) in E:\Projects\DNTIdentity\src\ASPNETCoreIdentitySample\Startup.cs:line 83

Have you changed anything? because the Relational-specific methods can only be used when the context is using a relational database provider. error message means you are not using the default LocalDB database.

I have not installed any sql sever on my pc because of the network policies.
How can I run this projects by other local or in memory db just for see the demo?

commented

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related problems.