Cannot add controller in ASP.NET MVC project
I'm trying to add a controller in my ASP.NET MVC project. I am using Entity Framework Code First (5.0), and when I right-click the Controllers folder in my project and selecting Add Controller : After selecting MVC controller with read/write actions and views, using Entity Framework and other settings, I get this message: There was an error generating '{0}'. Try rebuilding your project. Update Seems that the special constructor I added to the DbContext caused the problem. After commenting out the constructor, it's working back again, however this message appeared: Anyway I checked the activity