DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Wed, 22 Aug 2007 15:06:33 +0200,    posted on: microsoft.public.dotnet.framework.adonet        back       

Thread Index
  1    Johan Karlsson
          2    Johan Karlsson


Transaction fail when called via remoting   
Hi!

I have an application where the client call the server over .net remoting 
(tcp).

The final code to be called looks something like this:

Public Sub Update()
   Using t as New Transaction
        UpdateThisObject()
        UpdateChildObjects()  '  <---  
System.Transaction.TransactionException occurs here if remoted
        t.Complete()
   End Using
End Sub

I've setup a testcase that calls this code locally and remotely. The remote 
call fails with a TransactionException whilst the local call succeeds. This 
behavior is reproduceable within our development environment. I could try to 
boil the code down to the smallest possible codebase to reproduce the error.

The underlying database is Sql Server 2005 on a remote computer. .net 
framework 2.0.

Has anyone seen this behavior before?

Thanks
Johan
Date:Wed, 22 Aug 2007 15:06:33 +0200   Author:  

Re: Transaction fail when called via remoting   
Additional information,

The connection object is created (with the same connection string) at each 
call.

/ Johan

"Johan Karlsson"  skrev i meddelandet 
news:2CE3833B-5E6C-4044-9CD9-EF23520F1159@microsoft.com...

> Hi!
>
> I have an application where the client call the server over .net remoting 
> (tcp).
>
> The final code to be called looks something like this:
>
> Public Sub Update()
>   Using t as New Transaction
>        UpdateThisObject()
>        UpdateChildObjects()  '  <---  
> System.Transaction.TransactionException occurs here if remoted
>        t.Complete()
>   End Using
> End Sub
>
> I've setup a testcase that calls this code locally and remotely. The 
> remote call fails with a TransactionException whilst the local call 
> succeeds. This behavior is reproduceable within our development 
> environment. I could try to boil the code down to the smallest possible 
> codebase to reproduce the error.
>
> The underlying database is Sql Server 2005 on a remote computer. .net 
> framework 2.0.
>
> Has anyone seen this behavior before?
>
> Thanks
> Johan
>
> 
Date:Thu, 23 Aug 2007 11:56:49 +0200   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us