Click here to Skip to main content
15,886,724 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,

I am a completely new to MVC and am in first tutorial. I am getting an error while adding a controller.

The complete text of error is "Unable to retrieve metadata for "Project.Model.ModelName". Unable to find requested .Net Framework data provider. It may not be installed"

connection strings part of web.config is as follows.

XML
<connectionStrings>

  <add name="EmpDbContext "
       connectionString="data source=.\SQLEXPRESS; Integrated Security=SSPI; AttachDBFilename=|DataDirectory|\MVCtest.sdf;
       User Instance=true" providerName="System.Data.SqlClient" />

  <add name="ApplicationServices"
       connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|aspnetdb.mdf;User Instance=true"
       providerName="System.Data.SqlClient" />
</connectionStrings>


Thanks in advance!
Posted
Comments
♥…ЯҠ…♥ 22-Nov-13 4:48am    
Where do you find this error in your application? while adding controller? could you share what are all the steps followed in first part of the tutorial?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900