title: The transaction operation cannot be performed because there are pending requests working on this transaction
body: <p>I am getting error as :</p>
  
  <p>An error was reported while committing a database transaction but it could not be determined whether the transaction succeeded or failed on the database server. See the inner exception and <a href="http://go.microsoft.com/fwlink/?LinkId=313468" rel="noreferrer">http://go.microsoft.com/fwlink/?LinkId=313468</a> for more information.</p>
  
  <p>The transaction operation cannot be performed because there are pending requests working on this transaction.</p>
  
  <p>i am trying to insert data to DB using Entity Frameowrk using MapStoredProcedure approach.</p>
  
  <p>My Code :</p>
  
  <pre><code>this.MapToStoredProcedures(e =&gt; e.Insert(v =&gt; v.HasName("uspInsertUser").Result(rs =&gt; rs.UserId, "UserId")));
  
   public ActionResult Add(User userDetails)
          {
              try
              {
                  _unitOfWorkAsync.BeginTransaction();
  
                  _userService.Insert(userDetails);
                  _unitOfWorkAsync.SaveChangesAsync();
  
                  _unitOfWorkAsync.Commit(); // This line gives error
                  ModelState.Clear();    
  
                  return View("Add");
              }
              catch (Exception ex)
              {
                  _unitOfWorkAsync.Rollback();
                  throw ex;
              }
  </code></pre>
  
  <p>The most weird thing about this is if i keep a breakpoint and debug the code while insert it insert successfully.</p>
  
  <p>However, when i insert without any breakpoint enabled it gives me above error.
  Any help is appreciated.</p>