I'm trying to add a View to an arbitrary folder in my MVC project (~/SomeOtherViewDirectory). This works fine until I modify the View to use be strongly typed.
Ie, if the page inherits from System.Web.Mvc.ViewPage, it compiles and runs fine, but if it inherits from System.Web.Mvc.ViewPage it does not. When I turn page compilation on, it won't compile (can't find type) otherwise it throws a runtime exception.
I'm using a custom ViewEngine -- it's just the standard WebFormsViewEngine with customized location strings for finding the View.
Funny thing about this is that the same (empty) page works inside the Views directory. And I can modify my ViewEngine to point to some sub-sub-sub directory of Views (say, ~/Views/This/Is/Weird/) and copy/paste the page there and everything compiles and runs fine.
WTH?