Skip to content
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

System.NotSupportedException: '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 #3511

Closed
maddy027 opened this issue Sep 6, 2018 · 2 comments

Comments

@maddy027
Copy link

maddy027 commented Sep 6, 2018

dotnet/ef6#623

Code is available here https://github.com/maddy027/IssueWithEF6WithCore.git
when I tried to use EDMX with Asp.net core , getting the below error
System.NotSupportedException: '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

VS: 2017 15.8
EF: 6.2

@ajcvickers
Copy link
Member

@maddy027 This project file: https://github.com/maddy027/IssueWithEF6WithCore/blob/master/CoreWithEF/CoreWithEF.csproj

targets .NET Core and references the EntityFramework package. This is not supported. If the documentation you are using results in this kind of project structure, then the documentation needs to be changed. As I said on the other issue, this should be reported as a "content feedback". See here:
image

@maddy027
Copy link
Author

maddy027 commented Sep 6, 2018

@ajcvickers Yes , in the doc you can find the below instructions:
image:

Create a solution.

Add New Project > Web > ASP.NET Core Web Application (.NET Framework)

Add New Project > Windows Classic Desktop > Class Library (.NET Framework)

In Package Manager Console (PMC) for both projects, run the command Install-Package Entityframework.

@ghost ghost locked as resolved and limited conversation to collaborators Dec 3, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants