Base solution for your next web application
Open Closed

Can not enable Hangfire dashboard #8134


User avatar
0
npdevs created

Hi,

Hangfire dashboard is missing after login to the web-host service.

Hangfire was enabled as described in documentation: https://aspnetboilerplate.com/Pages/Documents/Hangfire-Integration

Looks like the problem is related to permissions. We can see in debugger that

IsGranted(AppPermissions.Pages_Administration_HangfireDashboard)

returns "false".

In file Index.cshtml

@if (WebConsts.HangfireDashboardEnabled && IsGranted(AppPermissions.Pages_Administration_HangfireDashboard))
{
    <li><a href="@WebConsts.HangfireDashboardEndPoint">Hangfire</a></li>
}

But It looks like corresponding permission is already set in permissions UI:

We login as default "admin" account. We use ASP.NET CORE & Angular version of template (two separate VS solutions), template version 7.2.3. Running web-host part from VS 2017 in Windows 10.

Thanks!


4 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team

    Can you share a screenshot of the login status of the UI page?

    http://localhost:22742/Ui

  • User Avatar
    0
    npdevs created

    Sure.

  • User Avatar
    1
    maliming created
    Support Team

    hi @npdevs Is your application multi-tenant enabled? If multi-tenancy is enabled, you need to log in to Host's account to see hangfire dashboard.

  • User Avatar
    0
    npdevs created

    Login in Host's account helped. It works. Thank you!