Home All Groups Group Topic Archive Search About

Import of MSDTC transaction failed: XACT_E_NOTRANSACTION

Author
16 Mar 2006 4:21 PM
Lynne
I'm running Visual Studio 2005 on a Windows XP machine connecting to a SQL
Server 2000 database on my local machine.  I recently added some transaction 
processing logic to my application using the TransactionScope object.  While
stepping through my application in the debugger, I receive the above error. 
If I run the application outside the debugger I don't receive the error.  For
that matter, if I "quickly" step through my application (i.e.  minimize the
number of breakpoints), I don't receive the error either.  This is my first
experience using the TransactionScope object, so pardon my ignorance.  Any
suggestions?

Thanks.

Author
21 Mar 2006 12:33 AM
Mary Chipman [MSFT]
Here's what I found:

XACT_E_NOTRANSACTION
The transaction cannot be aborted because it already had been
implicitly or explicitly committed or aborted. This call was ignored.

I don't know why debugging triggers this error. Does it occur before
or after you set the scope complete?

--Mary

On Thu, 16 Mar 2006 08:21:29 -0800, Lynne
<Ly***@discussions.microsoft.com> wrote:

Show quote
>I'm running Visual Studio 2005 on a Windows XP machine connecting to a SQL
>Server 2000 database on my local machine.  I recently added some transaction 
>processing logic to my application using the TransactionScope object.  While
>stepping through my application in the debugger, I receive the above error. 
>If I run the application outside the debugger I don't receive the error.  For
>that matter, if I "quickly" step through my application (i.e.  minimize the
>number of breakpoints), I don't receive the error either.  This is my first
>experience using the TransactionScope object, so pardon my ignorance.  Any
>suggestions?
>
>Thanks.
Author
21 Mar 2006 2:49 PM
Lynne
It occurs before I set scope to complete thereby causing the transaction to
fail.

Show quote
"Mary Chipman [MSFT]" wrote:

> Here's what I found:
>
> XACT_E_NOTRANSACTION
> The transaction cannot be aborted because it already had been
> implicitly or explicitly committed or aborted. This call was ignored.
>
> I don't know why debugging triggers this error. Does it occur before
> or after you set the scope complete?
>
> --Mary
>
> On Thu, 16 Mar 2006 08:21:29 -0800, Lynne
> <Ly***@discussions.microsoft.com> wrote:
>
> >I'm running Visual Studio 2005 on a Windows XP machine connecting to a SQL
> >Server 2000 database on my local machine.  I recently added some transaction 
> >processing logic to my application using the TransactionScope object.  While
> >stepping through my application in the debugger, I receive the above error. 
> >If I run the application outside the debugger I don't receive the error.  For
> >that matter, if I "quickly" step through my application (i.e.  minimize the
> >number of breakpoints), I don't receive the error either.  This is my first
> >experience using the TransactionScope object, so pardon my ignorance.  Any
> >suggestions?
> >
> >Thanks.
>
Author
27 Mar 2006 7:41 PM
Mary Chipman [MSFT]
It's possibly due to a timeout error since it only happens when you're
debugging.

--Mary

On Tue, 21 Mar 2006 06:49:31 -0800, Lynne
<Ly***@discussions.microsoft.com> wrote:

Show quote
>It occurs before I set scope to complete thereby causing the transaction to
>fail.
>
>"Mary Chipman [MSFT]" wrote:
>
>> Here's what I found:
>>
>> XACT_E_NOTRANSACTION
>> The transaction cannot be aborted because it already had been
>> implicitly or explicitly committed or aborted. This call was ignored.
>>
>> I don't know why debugging triggers this error. Does it occur before
>> or after you set the scope complete?
>>
>> --Mary
>>
>> On Thu, 16 Mar 2006 08:21:29 -0800, Lynne
>> <Ly***@discussions.microsoft.com> wrote:
>>
>> >I'm running Visual Studio 2005 on a Windows XP machine connecting to a SQL
>> >Server 2000 database on my local machine.  I recently added some transaction 
>> >processing logic to my application using the TransactionScope object.  While
>> >stepping through my application in the debugger, I receive the above error. 
>> >If I run the application outside the debugger I don't receive the error.  For
>> >that matter, if I "quickly" step through my application (i.e.  minimize the
>> >number of breakpoints), I don't receive the error either.  This is my first
>> >experience using the TransactionScope object, so pardon my ignorance.  Any
>> >suggestions?
>> >
>> >Thanks.
>>

AddThis Social Bookmark Button