Reputation: 4498
Ok, so here's the issue. I get a HTTP Error 403.14 (Forbidden) error when I build and run my MVC application because instead of loading the default page (which is at /Views/Home/Index.cshtml). I suspect this is because the Global.asax file is missing from my application...however adding it back in doesn't help.
When I add the global.asax ("Add Global Application Class") it adds the web forms version to my project, which isn't helpful. Altering it to look like a normal MVC global.asax file simply gives me a "Cannot load Namespace.MvcApplication" error (none of the fixes on this site work for helping with that).
I'm just running the site on my local machine through Visual Studio and the app compiles successfully, as far as I can tell.
Something has gone weirdly wrong and I haven't the faintest clue what to do about it.
Upvotes: 1
Views: 1385
Reputation: 39248
Try to create an empty new project. Then copy the structure exactly as it it appears in the default new project. Hopefully that will get you back to a good starting point.
Upvotes: 2