Solved

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

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

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

This tutorial will show you how to add an attribute to an XML (http://en.wikipedia.org/wiki/XML) stream returned from a Windows Communication Foundation (http://en.wikipedia.org/wiki/Windows_Communication_Foundation) (WCF) Web Service.  Some knowled…
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…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

773 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