“Unable to retrieve the metadata for …” Error while using ASP.NET MVC 3


While adding a controller in ASP.NET MVC 3 application, you might get a error “Unable to retrieve the metadata for …”. This error is due to the incorrect connection string name or the connection string in the web.config.

I had encountered the same error and the issue was that the name of my DBContext was different from that of the web.config connection string name. When I made it same it was able to create the controller.

Comments

Mfon said…
This comment has been removed by the author.

Popular posts from this blog

Partition Function in SQL Server

WPF/E