Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 93081
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T23:17:18+00:00 2026-05-10T23:17:18+00:00

I am trying to set up a simple transaction for my Linq-to-Sql actions against

  • 0

I am trying to set up a simple transaction for my Linq-to-Sql actions against my Sql 2000 database. Using TransactionScope it looks like this:

using (TransactionScope transaction = new TransactionScope()) {     try         {         Store.DBDataContext dc = new Store.DBDataContext();         Store.Product product = GetProduct('foo');         dc.InsertOnSubmit(product);         dc.SubmitChanges();         transaction.Complete();     }     catch (Exception ex)     {                         throw ex;     } } 

However, i keep getting the following error:

The partner transaction manager has disabled its support for remote/network transactions. (Exception from HRESULT: 0x8004D025)

But, if I set up the transaction using a traditional transaction, it works fine. So this works fine:

Store.DBDataContext dc = new Store.DBDataContext(); try {     dc.Connection.Open();     dc.Transaction = dc.Connection.BeginTransaction();     Store.Product product = GetProduct('foo');     dc.InsertOnSubmit(product);     dc.SubmitChanges();      dc.Transaction.Commit(); } catch (Exception ex) {     dc.Transaction.Rollback();     throw ex; } finally {     dc.Connection.Close();           dc.Transaction = null; } 

I’m wondering if the TransactionScope is doing something different under the covers than my second implementation. If not, what am I losing by not using TransactionScope? Also, any guidance on what is causing the error would be good too. I’ve confirmed that MSDTC is running in both sql server and on my client machine.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T23:17:19+00:00Added an answer on May 10, 2026 at 11:17 pm

    Take a look here:

    Fast transactions with System.Transactions and Microsoft SQL Server 2000 http://blogs.msdn.com/florinlazar/archive/2005/09/29/475546.aspx

    And here:
    http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=230390&SiteID=1

    First verify the ‘Distribute Transaction Coordinator’ Service is running on both database server computer and client computers
    1. Go to ‘Administrative Tools > Services’
    2. Turn on the ‘Distribute Transaction Coordinator’ Service if it is not running

    If it is running and client application is not on the same computer as the database server, on the computer running database server
    1. Go to ‘Administrative Tools > Component Services’
    2. On the left navigation tree, go to ‘Component Services > Computers > My Computer’ (you may need to double click and wait as some nodes need time to expand)
    3. Right click on ‘My Computer’, select ‘Properties’
    4. Select ‘MSDTC’ tab
    5. Click ‘Security Configuration’
    6. Make sure you check ‘Network DTC Access’, ‘Allow Remote Client’, ‘Allow Inbound/Outbound’, ‘Enable TIP’ (Some option may not be necessary, have a try to get your configuration)
    7. The service will restart
    8. BUT YOU MAY NEED TO REBOOT YOUR SERVER IF IT STILL DOESN’T WORK (This is the thing drove me crazy before)

    On your client computer use the same above procedure to open the ‘Security Configuration’ setting, make sure you check ‘Network DTC Access’, ‘Allow Inbound/Outbound’ option, restart service and computer if necessary.

    On you SQL server service manager, click ‘Service’ dropdown, select ‘Distribute Transaction Coordinator’, it should be also running on your server computer.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to set up a simple SQLite database in Android, handling the schema
I'm using Spring 3, and trying to set up a simple web-app using annotations
Using LINQ-to-SQL, I would like to automatically create child records when inserting the parent
I'm trying to set up a simple association in NHibernate (this is the first
I am trying to set up a simple css transition where there is a
I'm trying to set up a simple server side RSA encryption of a small
I'm trying to set together a simple TextBox with some watermark text in the
I'm trying to set up the simple syndication example from the Django docs, in
I'm trying to set up a simple Roles model for my site. Users can
Here's my problem: I'm trying to set up a simple mobile contact form with

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.