SERVICE Windows 2012 - Entity Framework Provider Provider Not Found for ADO.NET Provider with the Invariant Name "System.Data.SqlClient"

I have WebAPI 2 using EF6 on my local computer and it works fine. When I PUBLISH the solution and upload it to the server, I get the following error:

System.Data.Entity.Core.MetadataException: The specified schema is not valid. Errors: Database.FooModel.ssdl (2,2): error 0152: the provider of the Entity Framework provider was not found for the ADO.NET provider with the invariant name "System.Data.SqlClient". Make sure the provider is registered in the "entityFramework" section of the application configuration file.

Note:
I see a lot of messages about fixing a development machine, but this is not my problem. My problem is that I am uploading code to a Windows 2012 server.

Question:
How do you guarantee that SERVER will receive the correct settings when downloading the EF6 solution?
I have already upgraded the server to DotNet 4.5.1, what else do I need to install on the server?

+4
source share
2 answers

=======================================
: , . . ( ), "EntityFramework.dll" "EntityFramework.SqlServer.dll" bin. , "Microsoft.Data.Edm.dll Microsoft.Data.OData.dll" .

, .. , !!!

+6

EntityFramework.SqlServer.dll bin .

0

All Articles