Are you working in ASP.NET MVC? I created a blog post to install Hangfire in a non-MVC application.
Basically, you need to create a Startup.cs
class like the following:
using Hangfire;
using Hangfire.SqlServer;
using Microsoft.Owin;
using Owin;
[assembly: OwinStartup(typeof(YourNamespace.Startup))]
namespace YourNamespace
{
public partial class Startup
{
public void Configuration(IAppBuilder app)
{
Hangfire.ConfigureHangfire(app);
Hangfire.InitializeJobs();
}
}
}
Notice the [assembly: OwinStartup(typeof(YourNamespace.Startup))]
line.