In our project we need to implement Active Directory authentication for SQL Server. The project is using the .NET framework, and we are making use of Entity Framework. We are making use of Active Directory service principal in connection string.
I have mentioned the provider as System.Data.EntityClient
in the EF connection string. I was able to establish connection for ado.net.
This is the normal connection string
Server=DemoDB.database.windows.net; Authentication=Active Directory Service Principal; Encrypt=True; Database=SQLDevDB; MultipleActiveResultSets=True; User Id=*****; Password=*****
Here's the Entity Framework connection string
metadata=res://*/DemoDB.csdl|res://*/DemoDB.ssdl|res://*/DemoDB.msl;provider=System.Data.EntityClient;provider connection string='{0}'";
We get this exception from Entity Framework:
System.ArgumentException: 'The ADO.NET provider with invariant name 'System.Data.EntityClient' is either not registered in the machine or application config file,or could not be loaded. See the inner exception for details.'
Please help me with these issues.
Thanks