EF 4.1 exception "The provider did not return a ProviderManifestToken string" EF 4.1 exception "The provider did not return a ProviderManifestToken string" asp.net asp.net

EF 4.1 exception "The provider did not return a ProviderManifestToken string"


I was getting this error and tried a few of the earlier suggestions. Then I checked the Inner Exception and noticed I was getting a simple SQL login failure for the user. Just something else to check.


This can happen sometimes when you place the connection string within the app.config of the wrong project in Visual Studio.

For example, I got this problem in EF 4.1 (the released version) project + WCF Data Service project and I noticed that I didn't have a connection string specified in the Data Services Project, where it was being used.


I had the same problem, and I add the below code just after the instance of my context (onload by exemple)

context.Database.Connection.ConnectionString = @"Data Source=.\SQLExpress;Initial Catalog=Test;Integrated Security=True";