Solved

WCF The transaction under which this method call was executing was asynchronously aborted

Posted on 2013-11-05
1
2,164 Views
Last Modified: 2013-11-20
We have a WCF service with the following Contract:

[OperationBehavior(TransactionScopeRequired = true)]
        public Collection<string> PostJE(string glProvider, Collection<JournalEntry> journalCollection)
        {
            Collection<string> ReturnCodes = null;

            try
            {
                ReturnCodes = LedgerService.PostJournalEntries(journalCollection, glProvider);
            }
            catch (FaultException<GLExceptionDetail>)
            {
                throw;
            }
            catch (Exception ex2)
            {
                ExceptionPolicy.HandleException(ex2, "HCX Exception Policy");
                throw;
            }

            return ReturnCodes;
        }


The method in turn calls another 3rd party Service.

We are getting an error when calling the  PostJE method from our Web application such as:

The transaction under which this method call was executing was asynchronously aborted

A few questions:
1) How to get rid of the error we are getting.
2) Do we really need Transaction Scope on the WCF method since we are in turn calling another 3rd party Service.
3) For the Transaction Scope to work as intended, do we need DTS?

Thanks,
0
Comment
Question by:as2007
1 Comment
 
LVL 25

Accepted Solution

by:
apeter earned 500 total points
Comment Utility
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

In previous Articles, we have discussed how we can upload a file using .asmx web service and isolated storage space. Here, in continuation to the topic, I am going to discuss how we can use WCF for the same purpose. Steps: 1.Create the silverli…
While working on Silverlight and WCF application, I faced one issue where fault exception occurred at WCF operation contract is not getting propagated to Silverlight client. So after searching net I came to know that it was behavior by default for s…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now