We have ASP.NET WebSite and it refers project (dll) which refer EntityFramework dll. We have added EntityFramework.dll and EntityFramework.SqlServer.dll
reference to bin folder manually(not through Nuget). We are using Octopus to deploy our websites. While deploying we dont have EntityFramework.SqlServer dll in bin folder. I have gone through various answers but couldn't get it.
Anybody know the answer on the same? I have tried publishing through VS and I see SqlServer of EF in bin folder. Surprisingly we dont have any reference entry in our web.config for EF dll version.
Not sure about adding below code which some of them suggested -
var ensureDLLIsCopied = System.Data.Entity.SqlServer.SqlProviderServices.Instance;
Error Message-
ERROR occurred in LockAutomationNotification.NotifyEmail
System.Data.Entity.Core.MetadataException: Schema specified is not valid. Errors:
OLIEDataModel.ssdl(2,2) : error 0152: No Entity Framework provider found for the ADO.NET provider with invariant name 'System.Data.SqlClient'. Make sure the provider is registered in the 'entityFramework' section of the application config file. See