I have the following layout for my mvc project:
- /Controllers
- /Demo
- /Demo/DemoArea1Controller
- /Demo/DemoArea2Controller
- etc...
- /Views
- /Demo
- /Demo/DemoArea1/Index.aspx
- /Demo/DemoArea2/Index.aspx
However, when I have this for DemoArea1Controller:
public class DemoArea1Controller : Controller
{
public ActionResult Index()
{
return View();
}
}
I get the "The view 'index' or its master could not be found" error, with the usual search locations.
How can I specify that controllers in the "Demo" namespace search in the "Demo" view subfolder?