Entity Framework

I’m wanting to fire a void that runs some entity framework sql’s on a recurring job to update a table. It fire’s fine when executed normally in the Website fire a button click but I’m getting System.Data.MappingException when it fire’s in Hangfire.

Does anyone have any idea what is causing this?

Thanks

Can you show the full call stack of this exception? Where do you create an instance of the DbContext class?