I couldn’t come up with a solution and the sample didn’t work for me but as a trick, is it possible to use hangfire dashboard in an asp.net mvc app which doesn’t use this line //app.UseHangfireServer(); as below ? to be able to use just hangfire dashboard and not the hangfire servers to handle the tasks
public void Configuration(IAppBuilder app)
{
GlobalConfiguration.Configuration
.UseSqlServerStorage(conn, new SqlServerStorageOptions {PrepareSchemaIfNecessary = false});
//app.UseHangfireServer();
app.UseHangfireDashboard("/hangfire");
}
and then use the below code , in another app as a windows service or a console app . Actually I want to use mvc just to provide dashboard and console app or windows service just to handle the tasks .
public void Configuration(IAppBuilder app)
{
GlobalConfiguration.Configuration
.UseSqlServerStorage(conn, new SqlServerStorageOptions {PrepareSchemaIfNecessary = false});
app.UseHangfireServer();
app.UseHangfireDashboard("/hangfire");
}
Didn’t work is too general and ambiguous – blank screen, exception, 404 error, etc, etc. Can you provide more information about this topic. You can also include the following method to see actual exceptions:
I’ve checked these both URLs: http://localhost:8888 , http://localhost:8888/hangfire . and for both I just see the welcome page . And also I used app.UseErrorPage();, but nothing happened , Neither error nor exception
and if I comment //app.UseWelcomePage(); the error would be “This webpage is not available” for both URLs