BZink BZink - 1 month ago 21
ASP.NET (C#) Question Dashboard mapped to IIS Virtual Directory

I'm having trouble getting the Hangfire (1.5.8) dashboard to work inside of an IIS Virtual Directoy. Everything works beautifully in my dev environment where my application is simply mapped to the root of localhost. Our beta server, on the other hand, uses Virtual Directories to separate apps and app pools.

It's an ASP.Net MVC site using Hangfire with an OWIN Startup class. It gets deployed to

. When I attempt to access either
I get a 404 from IIS.

For the purposes of troubleshooting this, my IAuthenticationFilter simply returns true.

Here is my Startup.cs, pretty basic:

public class Startup
public void Configuration(IAppBuilder app)
// For more information on how to configure your application, visit

.UseSqlServerStorage(new DetectsEnvironment().GetEnvironment());

app.UseHangfireDashboard("/hangfire", new DashboardOptions
AuthorizationFilters = new[] {new AuthenticationFilter()}


Does anyone have a working implementation that gets deployed to a Virtual Directory? Are there any OWIN middleware admin/management tools I can use to dig into what URL is getting registered within IIS?


I ended up fixing this simply by adding the HTTPHandler to the section in web.config.

<add name="hangfireDashboard" path="hangfire" type="System.Web.DefaultHttpHandler" verb="*" />