title: Hangfire and ASP.NET MVC
body: <p>I'm currently using Hangfire in an ASP.NET MVC 5 project, which uses Ninject to use the same Context in RequestScope.</p>
  
  <p>In Hangfire dashboard, I get random errors like:</p>
  
  <blockquote>
    <p>System.Data.Entity.Core.EntityException: An error occurred while starting a transaction on the provider connection. See the inner exception for details. ---> System.Data.SqlClient.SqlException: New transaction is not allowed because there are other threads running in the session.</p>
  </blockquote>
  
  <p>How can I make Entity, ASP.NET and Hangfire work without getting all those transaction errors?</p>
  
  <p>I bet those errors can happen on the other side (in web).</p>