Database connectivity problem mvc

I have Visual Studio.

When a create a new ASP website (so not a project), I can go to the configuration management and enable roles and an aspnetdb.mdf is automatically created in the app_data directory.

When I create a new ASP (MVC 3) project, the configuration management says: can not load MvcApplication1.MvcApplication

Is there some configuration setting for this?

Compile it first. =)

deepaliw964, the OP was having a problem getting the ASP.NET Configuration utility to run after starting a new MVC project. It can’t because it needs the class MvcApplication, which is defined in the Global.asax file. The project needs to be compiled at least once before the configuration tool can be used.

you have to compile it first. Similar problem happen with me as well when i started using MVC. i was creating a class and trying to create view with strongly typed with this class and this class doesn’t appear before compile :slight_smile: