Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2013-11-05
1
Medium Priority
?
2,490 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 25

Accepted Solution

by:
apeter earned 2000 total points
ID: 39627015
0

Featured Post

Enroll in October's Free Course of the Month

Do you work with and analyze data? Enroll in October's Course of the Month for 7+ hours of SQL training, allowing you to quickly and efficiently store or retrieve data. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…

618 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