Hi,
I need your help on Hangfire version 1.7.13 working locally and running on Visual Studio IIS express.
I can’t deploy to IIS 10 on Windows server 2016.
My startup.cs
" public class Startup
{
public Startup(IConfiguration configuration)
{
Configuration = configuration;
}
public IConfiguration Configuration { get; }
// This method gets called by the runtime. Use this method to add services to the container.
public void ConfigureServices(IServiceCollection services)
{
services.AddHangfire(configuration =>configuration.UseSqlServerStorage(Configuration.GetConnectionString("DefaultConnection")));
services.AddHangfireServer();
services.AddControllers();
}
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
{
if (env.IsDevelopment())
{
app.UseDeveloperExceptionPage();
}
app.UseHttpsRedirection();
app.UseHangfireDashboard();
app.UseRouting();
app.UseAuthorization();
app.UseEndpoints(endpoints =>
{
endpoints.MapControllers();
});
}
}
Folder structure
Web.config
I always get the error “HTTP ERROR 404”
I followed this link “Making ASP.NET Core application always running on IIS” but to no avail (Error 500)
Making ASP.NET Application Always Running — Hangfire Documentation
Thanks.