Can’t access admin site after a clean installation - Nop 3.70

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
7 years ago
When I click on the admin link, it redirects me on: mydomain/en/admin (which leads to the raw html error page)

while, according the AdminAreaRegistration.cs it should be: mydomain/admin/home/index (which leads me correctly on the admin site as you found).

How come the link is not passed correctly in between the view and the controller?

The RegisterArea function is unchanged though:

public override void RegisterArea(AreaRegistrationContext context)
        {
            context.MapRoute(
                "Admin_default",
                "Admin/{controller}/{action}/{id}",
                new { controller = "Home", action = "Index", area = "Admin", id = "" },
                new[] { "Nop.Admin.Controllers" }
            );
        }

Thanks again for your help!
7 years ago
Ok I simply changed the link in the view AdminHeaderLinks.cshmtl


@if (Model.DisplayAdminLink)
        {
            <a href="@Url.Content("~/admin/home/index")" class="administration">@T("Account.Administration")</a>
        }


I just don't really understand how come the default installation files were not working for me.

Thanks again though!
7 years ago
Hey, I think not need to change anything on a view, give a try to just modify and save Global.asax file and do not change anything into it(just edit and save).
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.