Unable to find the requested .Net Framework Data Provider. It may not be installed."

May 10, 2012 at 8:05 AM

after creating POCO classes....adding connectionstring to web.config....

and the below line to Global.asax in Application_Start()

System.Data.Entity.

Database.SetInitializer(new MvcMusicStore.Models.SampleData ());

on my StoreController:

 

public ActionResult Index()

  

{ var genres = storeDB.Genres.ToList(); 

return

View(genres);

}

I am getting error on this line  - var genres = storeDB.Genres.ToList(); as

 

"Unable to find the requested .Net Framework Data Provider.  It may not be installed."

How can i solve this??

Thanks.