Solved

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

Posted on 2013-11-05
1
2,335 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 500 total points
ID: 39627015
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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…
Here I am going to explain creating proxies at runtime for WCF Service. So basically we use to generate proxies using Add Service Reference and then giving the Url of the WCF service then generate proxy files at client side. Ok, what if something ge…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

717 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