When we try to run “EntityFramework_CodeFirst” and “EntityFramework_CodeFirst2” samples, we get the following error:
Unable to determine the provider name for connection of type ‘U2.Data.Client.U2Connection’
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I would like to answer this question myself.
You need correct version of Entity Framework 4.1. If you are using older version (assembly file version 4.1.10331.0), you will see this issue.
You need to install Entity Framework 4.1 Update 1 (assembly file version 4.1.10715.0)
See this link : http://www.ladislavmrnka.com/2011/08/problems-with-entity-framework-4-1-update-1/