I'm trying to connect to an existing database (non-SQLEXPRESS) but everytime I try to access it. I get the following error: The provider did not return a ProviderManifestToken string.
I'm passing a SqlConnection
instance to the constructor DbContext(DbConnection, bool)
and instantiating the connection in the constructor beacuse I was getting the same error by just passing the connection string. Both of the approaches get the same error.
This is happening on full SQL Server 2008 and 2005.
UPDATE: Read my solution below.
SUMMARY: Always look for the inner exception when you receive The provider did not return a ProviderManifestToken string