-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to determine the provider name for provider factory of type 'System.Data.SqlClient.SqlClientFactory'. Make sure that the ADO.NET provider is installed or registered in the application config. #4283
Comments
@rmsohailarshad are you using EF 6 ? |
Yes. |
And is your project .NET Core ? If so, this is not supported yet, see dotnet/ef6#623 (comment) |
Following is the exact version I am using: |
I mean your project's target framework not the EF's version. |
As mentioned by @ismcagdas, .NET Core does not support EF 6 yet. |
you need to deploy WebApi project, Hoorain.Application is a class library. |
@ismcagdas is there any help manual to configure Web Api 2? |
@rmsohailarshad |
I am designing Core 2.2 Web Api using Abp framework. I've setup App.Core, App.EntityFramework, App.Application. My goal is to expose App.Application & others to App.CoreWebApi project, and my clients uses only App.CoreWebApi which eventually deployed on some server. My clients includes multiple platforms mobile ui, web ui, and desktop ui. Everything is setup and in place but recieveing annoying error with database context class:
Message
Unable to determine the provider name for provider factory of type 'System.Data.SqlClient.SqlClientFactory'. Make sure that the ADO.NET provider is installed or registered in the application config.
Stacktrace
at System.Data.Entity.Utilities.DbProviderFactoryExtensions.GetProviderInvariantName(DbProviderFactory factory) at System.Data.Entity.Infrastructure.DependencyResolution.DefaultInvariantNameResolver.GetService(Type type, Object key) at System.Collections.Concurrent.ConcurrentDictionary
2.GetOrAdd(TKey key, Func2 valueFactory) at System.Linq.Enumerable.SelectArrayIterator
2.MoveNext()at System.Linq.Enumerable.TryGetFirst[TSource](IEnumerable
1 source, Func
2 predicate, Boolean& found) at System.Data.Entity.Infrastructure.DependencyResolution.ResolverChain.GetService(Type type, Object key) at System.Linq.Enumerable.SelectArrayIterator2.MoveNext() at System.Linq.Enumerable.TryGetFirst[TSource](IEnumerable
1 source, Func2 predicate, Boolean& found) at System.Data.Entity.Infrastructure.DependencyResolution.ResolverChain.GetService(Type type, Object key) at System.Data.Entity.Infrastructure.DependencyResolution.CompositeResolver
2.GetService(Type type, Object key) at System.Data.Entity.Infrastructure.DependencyResolution.DbDependencyResolverExtensions.GetService[T](IDbDependencyResolver resolver, Object key) at System.Data.Entity.Utilities.DbConnectionExtensions.GetProviderInvariantName(DbConnection connection) at System.Data.Entity.Internal.InternalConnection.get_ProviderName()at System.Data.Entity.Internal.DefaultModelCacheKeyFactory.Create(DbContext context)
at System.Data.Entity.Internal.LazyInternalContext.InitializeContext()
at System.Data.Entity.Internal.InternalContext.Initialize()
at System.Data.Entity.Internal.InternalContext.ForceOSpaceLoadingForKnownEntityTypes()
at System.Data.Entity.DbContext.System.Data.Entity.Infrastructure.IObjectContextAdapter.get_ObjectContext() at Abp.EntityFramework.AbpDbContext.RegisterToChanges() in D:\Github\aspnetboilerplate\src\Abp.EntityFramework\EntityFramework\AbpDbContext.cs:line 148
at Hoorain.EntityFramework.HoorainDbContext..ctor(String nameOrConnectionString) in C:\Users\Admin\Downloads\Hoorain\4.1.0\src\Hoorain.EntityFramework\EntityFramework\HoorainDbContext.cs:line 34
at lambda_method(Closure , Object[] )
at Castle.Core.Internal.ReflectionUtil.Instantiate[TBase](Type subtypeofTBase, Object[] ctorArgs)
at Castle.MicroKernel.ComponentActivator.DefaultComponentActivator.CreateInstanceCore(ConstructorCandidate constructor, Object[] arguments, Type implType)`
The text was updated successfully, but these errors were encountered: