I'm grouping my Views, Controllers and models. The structure is \[code\]~/Controllers-- /_Shared-- -- /Views-- -- /Content-- -- /Scripts-- /Home-- -- /Models-- -- /Content-- -- /Scripts-- -- /Views-- -- HomeController.cs-- /Account-- -- /Models-- -- /Views...\[/code\]Views and partial views work, but layouts (master views) don't work. When I specify a layout in a .cshtml file like: \[code\]@{ Layout = "SimpleSharedLayout"; }\[/code\]I get this error: The layout page "SimpleLayout" could not be found at the following path:\[quote\] "~/Controllers/Account/Views/SimpleSharedLayout".\[/quote\]Asp.NET only searches the layout in the current controller's directory and doesn't look into the Shared folder *(which is at ~/Controllers/_Shared/Views)*Although this works just fine.\[code\]@Html.Partial("SharedPartialView")\[/code\]I have to specify layouts with full paths like \[code\]@{ Layout = "~/Controllers/_Shared/Views/SimpleSharedLayout.cshtml"; }\[/code\]Which is not a hard thing to do but I'm crazy about not being able to get it working.Using IIS Express, VS 2012, .NET 4.5Do you have an idea about what I'm missing?My View Engine:\[code\]public class AreaViewEngine : RazorViewEngine{ public AreaViewEngine() { AreaViewLocationFormats = new[] { "~/Controllers/{1}/Views/{0}.cshtml", "~/Controllers/_Shared/Views/{0}.cshtml"}; ViewLocationFormats = AreaViewLocationFormats; AreaMasterLocationFormats = new[] { "~/Controllers/_Shared/Views/{0}.cshtml" }; MasterLocationFormats = AreaMasterLocationFormats; AreaPartialViewLocationFormats = new[] { "~/Controllers/_Shared/Views/{0}.cshtml", "~/Controllers/{1}/Views/{0}.cshtml"}; PartialViewLocationFormats = AreaPartialViewLocationFormats; } }\[/code\]