Base solution for your next web application
Open Closed

Hangfire on production #11381


User avatar
0
uabel created

Hello, ASP.NET Core / Angular, Current Version auf Zero.

I have problem with Hangfire on production.

Locally in the development environment everything works. I have created a merged solution with dotnet publish -c release and installed it on the server. There everything is running too, I just can't access https://serverurl/hangfire

public const string SwaggerUiEndPoint = "/swagger"; public const string HangfireDashboardEndPoint = "/hangfire";

public static class WebConsts
{
    public const string SwaggerUiEndPoint = "/swagger";
    public const string HangfireDashboardEndPoint = "/hangfire";

Is there anything else I need to configure ?

/swagger and also my GUI/Angular is running.

With /hangfire I get /Error?statusCode=401

Greetings

Uwe


3 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @uabel

    As I can see, there are two conditions to see hangfire dashboard;

    1. WebConsts.HangfireDashboardEnabled must be true
    2. User must have AppPermissions.Pages_Administration_HangfireDashboard permission.

    Could you check those 2 items ?

    Thanks,

  • User Avatar
    0
    uabel created

    Hello, both are fulfilled in this way.

    Uwe

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @uabel

    Is it possible for us to access the production URL of your app ? If it is private, you can share it with [email protected].

    Thanks,