CSLA .NET

From Rockford Lhotka's Expert C# 2005 and VB 2005 Business Objects books

Welcome to CSLA .NET Sign in | Join | Help
in Search

How to Configure for TransactionScope

Last post 05-12-2008, 6:42 AM by smiley riley. 10 replies.
Sort Posts: Previous Next
  •  08-30-2006, 10:38 AM 5522

    How to Configure for TransactionScope

    I am using TransactionalTypes.TransactionScope for my DataPortal_XXX methods.

    My business objects and Data Portal run on the same web server and access SQL Server database on another machine. What I attempt to save the object, which involves distributed transaction, it throws me the following error.

    Csla.DataPortalException : DataPortal.Update failed
    Csla.Server.CallMethodException : DataPortal_Insert method call failed
    System.Transactions.TransactionManagerCommunicationException : Network access for Distributed Transaction Manager (MSDTC) has been disabled. Please enable DTC for network access in the security configuration for MSDTC using the Component Services Administrative tool.
    System.Runtime.InteropServices.COMException : The transaction manager has disabled its support for remote/network transactions. (Exception from HRESULT: 0x8004D024)

    How should I configure the server or MSDTC to resolve this?

    Regards,
    William

     


    Regards,
    William
  •  08-30-2006, 10:47 AM 5524 in reply to 5522

    Re: How to Configure for TransactionScope

    There's a Microsoft article on this. The issue appeared with XP SP2, because they tightened security and turned off the DTC by default.

    Rocky
  •  08-30-2006, 11:10 AM 5529 in reply to 5524

    Re: How to Configure for TransactionScope

    Thanks Rocky. I will try out the configuration outlined in the MS article.

    Regards,
    William

     


    Regards,
    William
  •  01-25-2007, 11:13 AM 11460 in reply to 5529

    Re: How to Configure for TransactionScope

    Hi Rocky,

    I have recently started using your framework and am still learning my way around.

    I am also using TransactionScope but both my application and the SQL server reside on the same machine.

    I have a parent object with a collection of child objects. In the INSERT on the parent - the sql connection works fine but as soon as it goes to the child update and tries to open a connection, I get the same error as above.

    Need some help as to figure out where I am going wrong.

    Thanks

    Jas

  •  01-25-2007, 1:05 PM 11463 in reply to 11460

    Re: How to Configure for TransactionScope

    Change the code so that only one connection is opened.

    As soon as you open a second connection, even if you use the same connection string, TS promotes the transaction to a distributed transaction.
  •  01-25-2007, 3:02 PM 11471 in reply to 11463

    Re: How to Configure for TransactionScope

    Thanks !

    Had tried that and it worked. Your reply just confirmed that I did right. ~smile~

     

    Jas

  •  02-06-2008, 4:14 AM 21103 in reply to 5524

    Re: How to Configure for TransactionScope

    RockfordLhotka:
    There's a Microsoft article on this. The issue appeared with XP SP2, because they tightened security and turned off the DTC by default.


    Article is gone. Any idea where too?
  •  02-06-2008, 8:52 AM 21116 in reply to 21103

    Re: How to Configure for TransactionScope

    skaue:


    Article is gone. Any idea where too?

    If you google the DTCTest and DTCPing tools you should be able to get what you need.

    Thanks,

    Kevin

  •  05-09-2008, 9:46 AM 23464 in reply to 21116

    Re: How to Configure for TransactionScope

    Has anyone found a solution to this problem?

    I too am getting the exception:

    Network access for Distributed Transaction Manager (MSDTC) has been disabled. Please enable DTC for network access in the security configuration for MSDTC using the Component Services Administrative tool.

    I have looked on the Internet and at the article above, nothing is working. I am using a local client Windows XP SP2 connecting across the network to a SQL 2005 database on a Windows 2003 server (standard edition).

    Appreciated.

    A

  •  05-09-2008, 9:56 AM 23465 in reply to 23464

    RE: How to Configure for TransactionScope

    Is this the article you followed?

    http://blogs.msdn.com/florinlazar/archive/2003/12/04/enable-network-dtc-access-in-windows-server-2003.aspx

     

     

    Sergey Barskiy

    Senior Consultant

    office: 678.405.0687 | mobile: 404.388.1899

    cid:_2_0648EA840648E85C001BBCB886257279
    Microsoft Worldwide Partner of the Year | Custom Development Solutions, Technical Innovation

     

    From: andrewem [mailto:cslanet@lhotka.net]
    Sent: Friday, May 09, 2008 10:46 AM
    To: Sergey Barskiy
    Subject: Re: [CSLA .NET] How to Configure for TransactionScope

     

    Has anyone found a solution to this problem?

    I too am getting the exception:

    Network access for Distributed Transaction Manager (MSDTC) has been disabled. Please enable DTC for network access in the security configuration for MSDTC using the Component Services Administrative tool.

    I have looked on the Internet and at the article above, nothing is working. I am using a local client Windows XP SP2 connecting across the network to a SQL 2005 database on a Windows 2003 server (standard edition).

    Appreciated.

    A



  •  05-12-2008, 6:42 AM 23495 in reply to 23465

    Re: RE: How to Configure for TransactionScope

    Try looking up enabling XA transactions or network DTC transactions one of those anyway.

    Ensure MSDTC is running

     

    this is a guess. Admin Tools>Component Services>My Computer/properties>MSDTC(Tab)

    its there somewhere.Probably best to search rather than guess tho.

    Paul

     

    PS Ensure the remote computer is setup as well. People tend to forget that one.

View as RSS news feed in XML

Please contact Magenic for your .NET consulting and CSLA .NET mentoring needs.
Please consider making a donation to help support the ongoing development of CSLA .NET.

Make donation through PayPal - it's fast, free and secure!
Why donate?
Powered by Community Server, by Telligent Systems