Can't use Hangfire with ASP.NET websites
I created a blank asp.net website using Visual studio 2013 from File> new> Website (not project) and installed Hangfire library. then I added Startup.cs file to App_code and root folder. then I created a simple test in the Global.ascx file
void Application_Start(object sender, EventArgs e)
{
Hangfire.RecurringJob.AddOrUpdate(() => Console.WriteLine("I am done!"), Hangfire.Cron.Minutely);
}
when i try to run the website it returns
JobStorage.Current property value has not been initialized. You must set it before using Hangfire Client or Server API.
but if I build a project and follow the same steps, it works without issue, can anyone help?
+3
source to share