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

  • Home
  • SEARCH
  • 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 8780825
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T20:09:08+00:00 2026-06-13T20:09:08+00:00

I have code like: using (TransactionScope scope = TransactionScopeFactory.CreateTransactionScope()) { *// some methodes calls

  • 0

I have code like:

    using (TransactionScope scope = TransactionScopeFactory.CreateTransactionScope())
      {

        *// some methodes calls for which scope is needed*
        ...
        ...
        *//than WCF method code for which I don't want transaction to be involved, but if it throws  an exception I don't wish scope to be completed*
        WcfServiceInstance.SomeMethod();
        scope.Complete();
      }

My question is, can I call the WCF service method inside of the Transaction scope without any problems ? (I don’t know how the service method is implemented) Also, I want to be shure that Transaction will not be involved in wcf service method calling.

  • 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. Editorial Team
    Editorial Team
    2026-06-13T20:09:10+00:00Added an answer on June 13, 2026 at 8:09 pm

    To propagate a transaction from your client application ot the service you need to explicity opt-in to transaction flows on the serer and client. If your client is using a transaction aware binding (NetTcp, NetNamedPipe, WSHttp, WSDualHttp, & WSFederation) then you should see a boolean property TransactionFlow. Setting this to false will prevent any transactions from flowing from your cient to the server.

    You get some additional control on the operation level with the TransactionFlow attribute, but this is a server side attribute, so if you don’t have access to the service code this likely isn’t an option.

    Please let me know if the TransactionFlow attribute doesn’t solve your problem. Understand that setting this to false on the client will prevent any & all transactions from being passed from client to service for that particular endpoint binding.

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

Sidebar

Related Questions

I have a code like this: try { using (TransactionScope scope = new TransactionScope())
Let's say I have some code (using CherryPy) that looks like this: import cherrypy
I'm using LLBLGen and I have some code like so: if (onlyRecentMessages) { messageBucket.PredicateExpression.Add(MessageFields.DateEffective
I have some code looking like this: using System.Threading; public sealed class MyClass :
In many places in our application we have code like this: using(RAPI rapi =
I am using nhibernate and i have code like this in the mapping area:
I'm using boost::asio, and I have code like this: void CServer::Start(int port) { tcp::acceptor
Using dotnet 2.0. I currently have code like this : DataView dv = new
I am using JQM 1.1.0 and Cordova 1.5.0. I have code like this <!DOCTYPE
I have a code that looks like this: using (DC dc = new DC())

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.