title: Internal connection fatal error
body: <p>I've recently started receiving this error: "Internal connection fatal error" from my application. The error occurs randomly. When it happens my application is unusable for the next few minutes. </p>
  
  <p>After careful analysis of the error I've concluded that this error happens in only one method within my application. This method fires a series of simple ordinary SQL queries but it does involve multithreading however all threads should be disposed before this block of code. The error happens always on a specific SQL query. For test I've eliminated this query which resulted in error happening on next in line query. </p>
  
  <p>This is stack strace:</p>
  
  <pre>
  Internal connection fatal error.
  
  -------------- Stack trace ---------------
     at Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.ExceptionPolicyEntry.IntentionalRethrow(Exception chainException, Exception originalException)
     at Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.ExceptionPolicyEntry.RethrowRecommended(Exception chainException, Exception originalException)
     at Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.ExceptionPolicyEntry.Handle(Exception exceptionToHandle)
     at Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.ExceptionPolicyImpl.HandleException(Exception exceptionToHandle)
     at Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.ExceptionPolicy.HandleException(Exception exceptionToHandle, String policyName, ExceptionPolicyFactory policyFactory)
     at Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.ExceptionPolicy.HandleException(Exception exceptionToHandle, String policyName)
     at Base.Sql.ExecuteScalar()
  </pre>
  
  <p>Application is built on .NET 3.5 and it obviously uses Enterprise Library Data Access.
  Application is run on Win2003 Terminal Server and it's using Sql Server 2005 database which is on different server.</p>
  
  <p>The method which causes this error is not triggered from GUI but from command line if that is of any significence.</p>
  
  <p>If someone would suggest where to go from here I would be very grateful.</p>