Skip to content Skip to sidebar Skip to footer

Ef Code First - The Provider Did Not Return A Providermanifesttoken String

I'm trying to get a very simply EF Code First example running but ran into the above problem. I've followed the advice here ( How to configure ProviderManifestToken for EF Code Fir

Solution 1:

The problem with answering this question is that the culprit could be more than one issue.

That said, I see a couple things to check:

  1. Your Data Source name looks to be invalid. You need to declare the host name and the instance name. Example: .\SQLEXPRESS (notice the . dot) or MyServerHostName\MySqlInstanceName.

    Verify you have a valid data source by using SQL Server Management Studio and trying it there first.

  2. Permissions. You are using integrated security and so the security context of the application making the database connection must have proper rights. Things to check:

    Using SQL Server Mgmt Studio, connect to your database. Select your database in the left pane (Object Explorer) --> Databases --> Select your db --> Security --> Users. Make sure you can verify the account being used to run the app has either been granted rights explicitly or can inherit them by being a member of the groups.

When I had this error, my problem proved to be that I had mixed Integrated Security=SSPI with a "Username =" and "Password =" ...not realizing that I needed Integrated Security=false; my user and password parameters were being ignored.

Not sure about this one: I did read some people suggest (at least for troubleshooting) to set Persist Security Info=true.

Solution 2:

I had similar problem on EF6 VS 2013, the problem got solved, when I choose 'Save Password' on Entity Framework - Reverse Engineer Code First - Connection Properties Dialog. Hope this helps someone.

Post a Comment for "Ef Code First - The Provider Did Not Return A Providermanifesttoken String"