After setting breakpoints and trying to step through the code of a website, the debugger seems to “time out” within only a few seconds and stops debugging. I have no idea what is causing this and it is driving me insane.
Here is the code I am trying to step through:
using (System.Transactions.TransactionScope transaction = new System.Transactions.TransactionScope())
{
// Create new customer.
CustomersBLL customerOperations = new CustomersBLL();
customerOperations.InsertCustomer(quote.CurrentDate, null, null, null, null, null, null, null, null, null);
// Prepare to insert Quote.
// Retrieve CustomerID.
Table = customerOperations.GetNewestCustomerID();
quote.CustomerID = (int)Table.Rows[0][0];
// Get word count and quote amount.
quote.GetWordCount();
quote.GetQuoteAmount();
// Insert Quote
// Insert DocumentFile - must retrieve QuoteNumber.
transaction.Complete();
}
This most likely means that your web application is reset, either due to an unhandled exception or to recycling parameters set on the application pool in IIS.
The first thing to do is check the Windows Application and System Event logs to see if unhandled exceptions are being reported.
The second thing to do is check your IIS app pool settings to see if there is a short recycle limit that may be met.