web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

How to configure WCF Service Timeout for Dynamic AX 2012

(0) ShareShare
ReportReport
Posted on by

Hi there,

I have developed WCF services on Dynamic AX 2012 R3 to get data of Dynamic Ax database.

I call these services in C#.Net application.

The problem is that whenever i select to much data from Dynamic AX server, it got timeout error

 

System.ServiceModel.CommunicationException: The socket connection has been aborted. This can be caused by an error in processing the message, exceeding the receive timeout on the remote host, or the underlying network resource problem. Local socket timeout was '01: 09: 59.8281398'. ---> System.IO.IOException: The read operation failed. See internal exception. ---> System.ServiceModel.CommunicationException: The socket connection has been aborted. This can be caused by an error in processing the message, exceeding the receive timeout on the remote host, or the underlying network resource problem. Local socket timeout was '01: 09: 59.8281398'. ---> System.Net.Sockets.SocketException: The existing connection was forcibly disconnected to the remote host.

I set timeout configuration on client is '01:10:00'. The error comes after about 10 minutes running .NET app .

So, is it necessary to set timeout configuration on server. And we can i setting this value.

I am new to Dynamic AX, please help.

Thanks you all.

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Vilmos Kintera Profile Picture
    46,149 on at

    SQL server may have a 10 minute timeout for queries, so first check what is the timeout setting on SQL.

    Also you could increase WCF timeout from the default 10-mintes by changing the AX32serv.exe.config for your AOS instance (while it is stopped), as explained here: technet.microsoft.com/.../jj969577.aspx

  • Vilmos Kintera Profile Picture
    46,149 on at

    If you have been able to resolve your issue, please mark the helpful answers as Verified on the right hand side of the topic, to close the thread and help others.

  • Verified answer
    Martin Dráb Profile Picture
    237,959 Most Valuable Professional on at

    There are several timeouts in WCF, so make sure you change the right one, and that you may have to change several ones.

    Nevertheless just increasing the limit isn't a solution - you'll just run into exactly the same problem with a larger message. The scalable solution is getting the data in several smaller pieces.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans