I’m trying to get a hangfire project going using postgres as the data store.
I’m enabling the dashboard but when i hit localhost/hangfire, I just get an empty blank white screen.
Just questioning why the dashboard is empty and not working. Apparently you just specify UseHangfireDashboard and you then just nav to mysite/hangfire and you have a dashboard to monitor jobs. hmmm
The docs say build your project and nav to /hangfire to test your configuration.
Seems like if i reset iis and nav to it, the dashboard loads, but refreshing the page and i get internal server error.
I’m doing this in the startup class.
JobStorage.Current = new PostgreSqlStorage(ConfigurationManager.ConnectionStrings["pgsql-db"].ConnectionString);
app.UseHangfireServer();
var options = new DashboardOptions { AppPath = VirtualPathUtility.ToAbsolute("~") };
app.UseHangfireDashboard("/hangfire", options);
Instead of the deprecated
app.UseHangfire(cfg =>
{
cfg.UsePostgreSqlStorage(ConfigurationManager.ConnectionStrings["pgsql-db"].ConnectionString);
cfg.UseServer();
cfg.UseAuthorizationFilters(new MyRestrictiveAuthorizationFilter());
});