Error: hangfire.dashboard.dashboardmiddleware does not have a constructor taking 5 arguments

Hello,

I’m using Hangfire 1.6.14 and I’m getting this error:

‘hangfire.dashboard.dashboardmiddleware’ does not have a constructor taking 5 arguments.

I’m using owin 3.1 and this happens when using this code:

[assembly: OwinStartup(typeof(MyWebApplication.Startup))]
namespace MyWebApplication
{
public class Startup
{
public void Configuration(IAppBuilder app)
{
app.UseHangfire(config =>
{
config.UseSqlServerStorage(ConfigurationManager.ConnectionStrings[“QueueConnection”].ConnectionString);
config.UseServer();
});

How do I troubleshoot it?

Thanks,
Scott

1 Like