I have a MVC4 Webapp (1) with a Virtual Directory under it which contains another independent Webapp, like so:
MainApp
Areas
SUBAPP <------ THIS is a Virtual Directory with its own Webapp
Views
_Layout_2.cshtml
Views
_Layout_1.cshtml
Now I would like to manage the Layouts of the SUBAPP from the MAINAPP like:
_Layout_2.cshtml:
@{
Layout = "../../Views/_Layout_1.cshtml
}
....which gives me the error:
The virtual path '/Views/_Layout_1.cshtml' maps to another application,
which is not allowed
How could I achieve this???