Prerequisites
Please answer the following questions before submitting an issue. YOU MAY DELETE THE PREREQUISITES SECTION.
- What is your product version? v11.0.0
- What is your product type (Angular or MVC)? MVC
- What is product framework type (.net framework or .net core)? .NET CORE 6
Hi guys,
recently I've updated the app from .NET Core 5 to the latest version. With that I've also updated the Hangfire package. After that I am getting the following error in production:
As a part of migrating to new version of ASPNETZERO the signature of the ExecuteAsync method of the background job had to be changed from protected to public. Implementation of the background job look like this:
And I am calling the background job like this:
This are the packages I am using:
So basically the only thing that has changed was the method signature and after that I am getting the error that I pasted above. Any help would be much appreciated.
Thanks.
2 Answer(s)
-
0
Hi @borisproceptio
At first sight, I couldn't figure out the problem. Do you have a detailed log about this problem ? There might be a detailed log in Logs.txt file.
-
0
The problem was that multiple instances were running in the same database. We added Hangfire server with specific SchemaName and it solved the issue. This article describes the same issue.