Cultiv.Hangfire not working on Umbraco 15

Hello!
I just have upgraded my project from umb13 to 15.1.2 and used Hangfire there as suggested: here

Now I cannot access the hangfire anymore :sweat_smile:
Also, I have forwarded headers and used CertificateForwarding along with using UseHttps: true to resolve the issue of not accessing the backoffice whilst running on IIS Server.
I have registered the hangfire as

//ConfigureServices()

 services.AddHangfire(configuration => configuration
     .SetDataCompatibilityLevel(CompatibilityLevel.Version_180)
     .UseSimpleAssemblyNameTypeSerializer()
     .UseRecommendedSerializerSettings()
     .UseConsole()
     .UseSqlServerStorage(_config.GetConnectionString("HangfireConnection")));


//Configure()       

  app.UseHttpsRedirection();
 app.UseStaticFiles();


 // ref- https://our.umbraco.com/forum/using-umbraco-and-getting-started/114332-umbraco-14-cant-login-to-back-office-this-server-only-accepts-https-requests#comment-351935         
 // Add the forwarded headers middleware here
 var forwardedHeaderOptions = new ForwardedHeadersOptions
 {
     ForwardedHeaders = ForwardedHeaders.XForwardedFor | ForwardedHeaders.XForwardedProto
 };
 forwardedHeaderOptions.KnownNetworks.Clear(); // Removes restrictions on proxy IP addresses
 forwardedHeaderOptions.KnownProxies.Clear(); // Allows Azure and IIS proxies to be trusted
 app.UseForwardedHeaders(forwardedHeaderOptions);

 // If certificate forwarding is still required, keep this line
 app.UseCertificateForwarding();


 app.UseRouting();
 app.UseSession();

 app.UseAuthentication();
 app.UseAuthorization();

 app.UseUmbraco()
     .WithMiddleware(u =>
     {
         u.UseBackOffice();
         u.UseWebsite();
     })
     .WithEndpoints(u =>
     {
         u.UseBackOfficeEndpoints();
         u.UseWebsiteEndpoints();
     });

 app.UseEndpoints(endpoints =>
 {
     endpoints.MapControllers();
     endpoints.MapHealthCheckEndpoint();
 });

It works like a charm locally and can access the hangfire dashboard as well.
But when I publish my code to IIS server it gives me an error of 403 - Forbidden and shows only a white blank screen:

If you guys have some idea please help me out.
Thanks in advance! :blush:


This is a companion discussion topic for the original entry at https://our.umbraco.com/forum/115200-cultivhangfire-not-working-on-umbraco-15

Hello

I don’t think the issue is specific to Umbraco 15, I have the same issue in Umbraco 13, when working locally.

The way to access the hangfire dashboard when working on local host if this issue occurs is to use

https://localhost:PORT/umbraco/backoffice/hangfire/

Replacing :PORT with your port number if needed (or remove :PORT if not used)