I'd like to separate a big part of our code into an application area. What needs to be done to get this to work? At the moment if I create a pagetype model, a controller and a view episerver won't find my view because it's looking for it in ~/Views//Index.cshtml when it should look in ~/Area/Views//Index.cshtml My guessings are that I need to rewrite something in the AreaRegistration file that gets created when i create the Area but I'm not sure what.
You'll probably need your own custom view engine where you add those conventions.
Thank you, that was very helpful.
Question: Do i need the area registration class thats generated when creating an application area?
I guess only if you need the default routing to work (not EPiServer but ASP.NET routing). If you only have EPiServer content that requires routing then it should be fine without.
Just a side note. If you are using SignalR in your app - register Hub route before doing Area registration.