Could not load type ‘Hangfire.Logging.ILog’ from assembly ‘Hangfire.Core, Version=1.1.1.0, Culture=neutral, PublicKeyToken=null’.
I have Hangfire installed through nuget in my solution, I guess there is some runtime error but all I get is above mentioned error, which I believe does not exist in the assembly. Any help?
This is how the whole error section looks like:
Server Error in ‘/CCIActivityWorkflow’ Application.
Could not load type ‘Hangfire.Logging.ILog’ from assembly ‘Hangfire.Core, Version=1.1.1.0, Culture=neutral, PublicKeyToken=null’.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.TypeLoadException: Could not load type ‘Hangfire.Logging.ILog’ from assembly ‘Hangfire.Core, Version=1.1.1.0, Culture=neutral, PublicKeyToken=null’.
Source Error:
Line 41:
Line 42: //JobStorage.Current = new RedisStorage();
Line 43: JobStorage.Current = new SqlServerStorage(“HangfireDB”);
Line 44:
Line 45: _backgroundJobServer = new BackgroundJobServer();
Source File: c:\Source\CCHS\Infrastructure\WorkflowMaster\CCIActivityWorkflow\HangfireBootstrapper.cs Line: 43
Stack Trace:
[TypeLoadException: Could not load type ‘Hangfire.Logging.ILog’ from assembly ‘Hangfire.Core, Version=1.1.1.0, Culture=neutral, PublicKeyToken=null’.]
Hangfire.SqlServer.SqlServerObjectsInstaller.Install(SqlConnection connection) +0
Hangfire.SqlServer.SqlServerStorage…ctor(String nameOrConnectionString, SqlServerStorageOptions options) +292
Hangfire.SqlServer.SqlServerStorage…ctor(String nameOrConnectionString) +97
CareCam.Workflow.Activitywork.HangfireBootstrapper.Start() in c:\Source\CCHS\Infrastructure\WorkflowMaster\CCIActivityWorkflow\HangfireBootstrapper.cs:43
CareCam.Workflow.Activitywork.Global.Application_Start(Object sender, EventArgs e) in c:\Source\CCHS\Infrastructure\WorkflowMaster\CCIActivityWorkflow\Global.asax.cs:15
[HttpException (0x80004005): Could not load type ‘Hangfire.Logging.ILog’ from assembly ‘Hangfire.Core, Version=1.1.1.0, Culture=neutral, PublicKeyToken=null’.]
System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +12963365
System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +175
System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +304
System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +404
System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +475
[HttpException (0x80004005): Could not load type ‘Hangfire.Logging.ILog’ from assembly ‘Hangfire.Core, Version=1.1.1.0, Culture=neutral, PublicKeyToken=null’.]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +12980372
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +159
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +12819965
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.34237