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

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

AX terminates connection to BizTalk Server 2013

(0) ShareShare
ReportReport
Posted on by 700

Hi all,

we get an error while transferring a 10 MB files from BizTalk Server 2013 to AX 2009 via WebService. I have tried so far two solutions to configure AIF Interface accordingly: 1) to adjust the Parameters maxBufferSize and maxReceivedMessageSize in AX 2009 in the configuration file of AIF
2) To create Registry values for Dynamics AX Business Connector (AX BizTalk Adapter) and Dynamics AX AOS Service with the relevant values for REG_SZ.
But that won't fix the Problem unfortunately.

The error message that we get is the following:

 System

Provider

Name ASP.NET 2.0.50727.0

EventID 1334

Qualifiers 49152

Level 2

Task 0

Keywords 0x80000000000000

EventRecordID 141568

Channel Application

EventData

An unhandled exception occurred and the process was terminated. Application ID: /LM/W3SVC/1/ROOT/MicrosoftDynamicsAXAif50 Process ID: 4168 Exception: System.Runtime.InteropServices.SEHException Message: External component has thrown an exception. StackTrace: at AxCore_CallStatic(Char* , Char* , tagVARIANT* , Int32 , tagVARIANT* ) at Microsoft.Dynamics.BusinessConnectorNet.Axapta.CallStaticClassMethod(String className, String methodName, Object[] paramList) at Microsoft.Dynamics.IntegrationFramework.Service.WcfAxAdapter.SubmitMessageToAx() at Microsoft.Dynamics.IntegrationFramework.Service.WcfAxAdapter.ProcessService() at Microsoft.Dynamics.IntegrationFramework.Service.CustomerService.create(CustomerServiceCreateRequest createRequest) at SyncInvokecreate(Object , Object[] , Object[] ) at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs) at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc) at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc) at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage4(MessageRpc& rpc) at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage3(MessageRpc& rpc) at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage2(MessageRpc& rpc) at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage1(MessageRpc& rpc) at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet) at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.Dispatch(MessageRpc& rpc, Boolean isOperationContextSet) at System.ServiceModel.Dispatcher.ChannelHandler.DispatchAndReleasePump(RequestContext request, Boolean cleanThread, OperationContext currentOperationContext) at System.ServiceModel.Dispatcher.ChannelHandler.HandleRequest(RequestContext request, OperationContext currentOperationContext) at System.ServiceModel.Dispatcher.ChannelHandler.AsyncMessagePump(IAsyncResult result) at System.ServiceModel.Dispatcher.ChannelHandler.OnAsyncReceiveComplete(IAsyncResult result) at System.ServiceModel.Diagnostics.Utility.AsyncThunk.UnhandledExceptionFrame(IAsyncResult result) at System.ServiceModel.AsyncResult.Complete(Boolean completedSynchronously) at System.ServiceModel.Channels.InputQueue`1.AsyncQueueReader.Set(Item item) at System.ServiceModel.Channels.InputQueue`1.EnqueueAndDispatch(Item item, Boolean canDispatchOnThisThread) at System.ServiceModel.Channels.InputQueue`1.EnqueueAndDispatch(T item, ItemDequeuedCallback dequeuedCallback, Boolean canDispatchOnThisThread) at System.ServiceModel.Channels.InputQueueChannel`1.EnqueueAndDispatch(TDisposable item, ItemDequeuedCallback dequeuedCallback, Boolean canDispatchOnThisThread) at System.ServiceModel.Channels.SingletonChannelAcceptor`3.Enqueue(QueueItemType item, ItemDequeuedCallback dequeuedCallback, Boolean canDispatchOnThisThread) at System.ServiceModel.Channels.HttpChannelListener.HttpContextReceived(HttpRequestContext context, ItemDequeuedCallback callback) at System.ServiceModel.Activation.HostedHttpTransportManager.HttpContextReceived(HostedHttpRequestAsyncResult result) at System.ServiceModel.Activation.HostedHttpRequestAsyncResult.HandleRequest() at System.ServiceModel.Activation.HostedHttpRequestAsyncResult.BeginRequest() at System.ServiceModel.Activation.HostedHttpRequestAsyncResult.OnBeginRequest(Object state) at System.ServiceModel.Channels.IOThreadScheduler.CriticalHelper.WorkItem.Invoke2() at System.ServiceModel.Channels.IOThreadScheduler.CriticalHelper.WorkItem.Invoke() at System.ServiceModel.Channels.IOThreadScheduler.CriticalHelper.ProcessCallbacks() at System.ServiceModel.Channels.IOThreadScheduler.CriticalHelper.CompletionCallback(Object state) at System.ServiceModel.Channels.IOThreadScheduler.CriticalHelper.ScheduledOverlapped.IOCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* nativeOverlapped) at System.ServiceModel.Diagnostics.Utility.IOCompletionThunk.UnhandledExceptionFrame(UInt32 error, UInt32 bytesRead, NativeOverlapped* nativeOverlapped) at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP)

*This post is locked for comments

I have the same question (0)
  • OrangeRocks Profile Picture
    700 on at
    RE: AX terminates connection to BizTalk Server 2013

    Hi all,

    I would like to limit the problem and want to Start with AX and see how AX itself handles the files.

    My transfer Schema is the following:

    BizTalkServer 2013 -> AX Web Services on IIS -> .NET Business Connector -> AX 2009 BizTalk adapter -> AX 2009 AOS

    I would try to send the XML files from AX AOS to AX AOS itself to be sure that the problem is not the AOS Server itself but e.g. the connection between AOS and IIS.

    Can someone kindly give me an advise where I have to start with that? Something like first steps would by very much appreciated!

    Thank you all

  • Douglas Noel Profile Picture
    3,905 on at
    RE: AX terminates connection to BizTalk Server 2013

    Hi,

    some hint for ax maxbuffersize entry 

    please check if the IIS application of your AIF is really using the default ax business configration from HKLM on the machine . Maybe you have a dedicated ax configuration setup here. web.config appSetting

    BUSINESS_CONNECTOR_CONFIGURATION 

    In that case the values are drawn from the specified configuration(file) and you have to setup the values within the axc file.

     

    regards

    Douglas

  • nunomaia Profile Picture
    23 Moderator on at
    RE: AX terminates connection to BizTalk Server 2013

    If you tried to increase the size of maxbuffersize registry in all locations :

    - AX Client,  

    - .Net Business Connector

    - AOS

    I would try to increase the RPC message length since some communications are performanced in RPC and is a system wide setting.

  • OrangeRocks Profile Picture
    700 on at
    RE: AX terminates connection to BizTalk Server 2013

    Why does it refer to Windows Server? I think I should change only features in AX AIF Interface, or am I wrong?

  • nunomaia Profile Picture
    23 Moderator on at
    RE: AX terminates connection to BizTalk Server 2013

    This KB is for 4.0, but I think it also applies to ax 2009

    blogs.msdn.com/.../document-hanlding-rpc-limit.aspx  

  • OrangeRocks Profile Picture
    700 on at
    RE: AX terminates connection to BizTalk Server 2013

    hi Nuno, thanks,

    doesn't this feature apply to Windows Server?

    technet.microsoft.com/.../cc782468%28v=ws.10%29.aspx

    I guess I have to make changes to AIF or AX features, right?

  • nunomaia Profile Picture
    23 Moderator on at
    RE: AX terminates connection to BizTalk Server 2013

    Did you tried to increase MaxRpcSize ?

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…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 2 Most Valuable Professional

#1
Guy Terry Profile Picture

Guy Terry 2 Moderator

#1
Rahul Shah Profile Picture

Rahul Shah 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans