2016-08-25

I'm working on setting up separate projects for my Areas in my main MVC project. I followed the guide here:

http://stackoverflow.com/a/12912161/155110

I set breakpoints during the launch and can see that the RazorGeneratorMvcStart is being hit as well as the AreaRegistration that sets up the routes. RazorGenerator.Mvc is installed and the Custom Tool on my cshtml pages is set to use it. When I access the Area URL after launching my main project, I can see that it hits the controller in the separate Area project, however, I cannot get it to find the view. I get the following which a huge list of locations:

[InvalidOperationException: The view 'Index' or its master was not
found or no view engine supports the searched locations. The following
locations were searched:

STARAreaRegistration.cs

RazorGeneratorMvcStart.cs

Areas/STAR/Controllers/DefaultController.cs

Areas/STAR/Views/Default/Index.cshtml:

URL accessed when seeing the View not found error: http://localhost:53992/STAR/Default/Index

Show more