I have this codes(asp.net) working in windows XP system.. however when I deployed it to Windows Server 2003 R2, I got the
TransactionAbortedException Error...
I tried to change the machine.config to allow 10 minutes timeout, didn't work..
Any idea? Thank you.
// to update database and send out email..if the email ever fails, it rollbacks the transation.
using (TransactionScope scope = new TransactionScope())
{
try {
DAL.UpdateQry(strSQL);
}
catch (Exception ex)
{
Message.Text=ex.Message;
return;
}
try {
this.SendModifyEmail(); //email
}
catch (Exception ex)
{
Message.Text=ex.Message;
return;
}
scope.Complete();
}
TransactionAbortedException Error...
I tried to change the machine.config to allow 10 minutes timeout, didn't work..
Any idea? Thank you.
// to update database and send out email..if the email ever fails, it rollbacks the transation.
using (TransactionScope scope = new TransactionScope())
{
try {
DAL.UpdateQry(strSQL);
}
catch (Exception ex)
{
Message.Text=ex.Message;
return;
}
try {
this.SendModifyEmail(); //email
}
catch (Exception ex)
{
Message.Text=ex.Message;
return;
}
scope.Complete();
}