Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Try the following:</p> <p><code>~/Global.asax.cs</code>:</p> <pre><code>public static void RegisterRoutes(RouteCollection routes) { routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); routes.MapRoute( "Default", "{controller}/{action}/{id}", new { controller = "Home", action = "Index", id = UrlParameter.Optional }, new[] { "MyProject.Controllers" } ); } </code></pre> <p><code>~/Areas/Administration/AdministrationAreaRegistration.cs</code></p> <pre><code>public override void RegisterArea(AreaRegistrationContext context) { context.MapRoute( "Administration_default", "Administration/{controller}/{action}/{id}", new { action = "Index", id = UrlParameter.Optional }, new[] { "MyProject.Areas.Administration.Controllers" } ); } </code></pre> <p><code>~/Areas/FrontEnd/FrontEndAreaRegistration.cs</code>:</p> <pre><code>public override void RegisterArea(AreaRegistrationContext context) { context.MapRoute( "FrontEnd_default", "FrontEnd/{controller}/{action}/{id}", new { action = "Index", id = UrlParameter.Optional }, new[] { "MyProject.Areas.FrontEnd.Controllers" } ); } </code></pre> <p>Now when you request <code>/Administration/Home/Index</code>, the <code>Index</code> action of <code>HomeController</code> in the <code>Administration</code> area will be invoked and it will look for the <code>~/Areas/Administration/Views/Home/Index.cshtml</code> view. Make sure this view is present at this location. In your picture you seem to have omitted the <code>Home</code> directory - <code>~/Areas/Administration/Views/Index.cshtml</code>.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload