当我尝试在连接到 SQL Server 2000 的 Windows Server 2003 Standard Edition SP1 计算机上运行 C# WinForms 应用程序时收到以下错误,转换 WinForms 应用程序中的数据并将转换后的数据插入 SQL Server 2005 应用程序。我正在使用 SSPI 连接到每个数据库。
代码包含在 TransactionScope 块中:
System.TimeSpan TransactionTimeOut = new TimeSpan(0, 40, 0);
using(TransactionScope Scope = new TransactionScope(TransactionScopeOption.RequiresNew, TransactionTimeOut))
{
try
{
//meat of transaction...
}
catch(Exception ex)
{
throw ex;
}
Scope.Complete();
}
错误信息:
例外:事务已被隐式或显式提交或中止。
内部异常:事务已被隐式或显式提交或中止(来自 HRESULT 的异常:0x8004D00E)
任何人都知道可能导致此问题的原因是什么?