The hangfire recurring jobs which are scheduled using the following line are getting failed after we have upgraded our application into .NET 5.
The exact error I’m seeing is -
can not be scheduled due to job load exception.
Hangfire.Common.JobLoadException: Could not load the job. See inner exception for the details.
—> System.IO.FileNotFoundException: Could not load file or assembly ‘mscorlib, Version=184.108.40.206, Culture=neutral, PublicKeyToken=7cec85d7bea7798e’. The system cannot find the file specified.
The Hangfire versions we are using are -
Hangfire.SqlServer = “1.6.22”