Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MVC3:unable to retrieve metadata for my model class when i want to accesse model data from controller

I am new to asp.net MVC3 platform i am following the tutorial which is posted on the asp.net website: http://www.asp.net/mvc/tutorials/getting-started-with-aspnet-mvc3/getting-started-with-mvc3-part1-cs

But in the fifth step which i need to access my model class data from a controller i am facing some troubles, i have created model class and the context class but when i want to create a controller class using the scaffolding template(controller with read/write actions and views using entity framework) it gives me an error as below:

unable to retrieve metadata for 'full name of my modelclass'. Configuration system failed to initialize

like image 875
Hardworker Avatar asked Feb 20 '12 09:02

Hardworker


1 Answers

Just change your connection string provider type to System.Data.SqlClient

like image 126
Sumit Avatar answered Oct 09 '22 09:10

Sumit