title: The COMMIT TRANSACTION request has no corresponding BEGIN TRANSACTION
body: <p>Here's a strange problem I'm running into on a production server. It has happened twice in the last two weeks, and this is a server that gets a lot of traffic.</p>
  
  <p>We have some code in a Web Service that executes a <code>BEGIN TRAN</code>, then runs a few SQL queries (two inserts followed by an update). Then at the end executes a <code>COMMIT</code>. Twice now we have gotten the message in the logs:</p>
  
  <blockquote>
    <p>The COMMIT TRANSACTION request has no corresponding BEGIN TRANSACTION.</p>
  </blockquote>
  
  <p>Between the first two inserts and the update, we call another web service, so there could be a slight delay between the first two inserts and last update before the <code>COMMIT</code> is called. Could this be causing our problem? We're running this on IIS 7 and Server 2008 R2 (all updated applied).</p>
  
  <p>Originally we though it could be the app pools getting recycled, but changed that to recycle in the middle of the night. Now I'm not sure what would be causing SQL server to forget the call to <code>BEGIN TRAN</code>.</p>
  
  <p>This web service does get called quite a bit. Has anyone seen something like this before? I'm at a total loss at the moment... </p>
  
  <p>Any help or suggestion appreciated greatly! </p>