Quantcast
Channel: Hangfire - No parameterless constructor defined for this object - Stack Overflow
Browsing all 4 articles
Browse latest View live

Answer by Simsons for Hangfire - No parameterless constructor defined for...

You need to inject the dependencies to get this working. Install nuget unity package : Install-Package Hangfire.Unity And then register on Global.asax you will have BootStraper initialise...

View Article



Answer by ruizing for Hangfire - No parameterless constructor defined for...

Solved this using the following code: Hangfire.GlobalConfiguration.Configuration.UseActivator(new ContainerJobActivator(container));...

View Article

Answer by Frode for Hangfire - No parameterless constructor defined for this...

First, you need to create an instance of the UnityContainer (at startup), load configuration from web.config, and finally associated the container with your HttpConfiguration. I Dont remember the code...

View Article

Hangfire - No parameterless constructor defined for this object

I am using Hangfire to do some recurring jobs, but I'm getting the following exception: System.MissingMethodException No parameterless constructor defined for this object....

View Article
Browsing all 4 articles
Browse latest View live




Latest Images