all groups > dotnet distributed apps > december 2004 >
You're in the

dotnet distributed apps

group:

DTC fails when number of updates in huge


DTC fails when number of updates in huge Tony Moaikel
12/20/2004 12:38:11 PM
dotnet distributed apps:
Hi all,

We are facing an issue with an asp page that performs a huge number of
updates to a database.
The page fails at different places when executed many times.
Is there a way to increase the DTC capacity to allow more updates?
We have tried to increase the log size but it does not seem to have any
effect.

Thanks in advance

Tony

Re: DTC fails when number of updates in huge Sam Santiago
12/22/2004 11:25:38 PM
It might help to post the exact error message you are seeing. Are all of
these updates performed as one big transaction or as individual
transactions?

Thanks,

Sam

--
_______________________________
Sam Santiago
ssantiago@n0spam-SoftiTechture.com
http://www.SoftiTechture.com
_______________________________
[quoted text, click to view]

Re: DTC fails when number of updates in huge Sam Santiago
12/23/2004 4:11:50 PM
Is this ASP or ASP.NET? Do you use an other components with the ASP? The
error indicates you are attempted to perform additional transactional work
after the transaction is committed. Are you explicitly committing the
transaction or marking it as done at any point?

Thanks,

Sam

--
_______________________________
Sam Santiago
ssantiago@n0spam-SoftiTechture.com
http://www.SoftiTechture.com
_______________________________
[quoted text, click to view]

Re: DTC fails when number of updates in huge Tony Moaikel
12/23/2004 4:18:13 PM
The error is: 'Distributed transaction completed. Either enlist in a new
transaction or the null transaction.
The asp page itself is transactional (Transaction=Required) so all updates
within the page are under the same transaction.

Thanks
Tony
[quoted text, click to view]

Re: DTC fails when number of updates in huge Tony Moaikel
12/27/2004 9:35:11 AM
This is ASP. I am not explicitly committing or aborting the transaction.
And what is strange is that the error occurs at a different place when the
page is reloaded!!

[quoted text, click to view]

Re: DTC fails when number of updates in huge Sam Santiago
12/27/2004 8:22:02 PM
You could add event handlers to the page in order to log information
when the transaction is aborted or committed:

Sub OnTransactionCommit()
Response.Write "<p><b>Display debugging info here.</b>."
End Sub

Sub OnTransactionAbort()
Response.Write "<p><b>Display debugging info here.</b>."
End Sub

Also, at some point in your page you should do either and
ObjectContext.SetComplete on success or ObjectContext.SetAbort on failure.
Check out these links for more info:

ObjectContext
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/iissdk/iis/ref_vbom_obco.asp

Spanning Transactions across Pages
http://support.microsoft.com/default.aspx?scid=kb;en-us;299638


Thanks,

Sam
--
_______________________________
Sam Santiago
ssantiago@n0spam-SoftiTechture.com
http://www.SoftiTechture.com
_______________________________
[quoted text, click to view]

AddThis Social Bookmark Button