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)

Error number: 1 The application could not be initialized. Error number: 2 A system error has occurred. The application will close

(0) ShareShare
ReportReport
Posted on by

Hi Experts

I have facing some error on my Retail POS installation
I have finish installation Async Server, Async Client, and Retail Channel Configuration Utility

And then I run the Retail POS that show

Error number: 1 The application could not be initialized.

Error number: 2 A system error has occurred. The application will close

But my problem is not connecting to server, when I ping the server with server's IP that's connect, but when I browse with DNS or IP on Internet Explorer the result is 403 - Forbidden: Access is denied.

I have imported the certificate too.

Anyone can help?

Thank you so much

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Pravasti AK Profile Picture
    2,985 on at
    RE: Error number: 1 The application could not be initialized. Error number: 2 A system error has occurred. The application will close

    hi john,

    please follow the below link,

    http://ax-retail.blogspot.fr/2014/03/ax-retail-2012-fp-pos-application-could.html

  • Suggested answer
    Hassan_rulz Profile Picture
    3,801 on at
    RE: Error number: 1 The application could not be initialized. Error number: 2 A system error has occurred. The application will close

    Hi John,

    You have to sync all jobs in your channel db before running POS.

    Regards,

    Hassan

  • Community Member Profile Picture
    on at
    RE: Error number: 1 The application could not be initialized. Error number: 2 A system error has occurred. The application will close

    Hi Mr. Hasan

    I have sync all jobs but it failed

    all jobs can't pull from server to my local channel db

  • Suggested answer
    Hassan_rulz Profile Picture
    3,801 on at
    RE: Error number: 1 The application could not be initialized. Error number: 2 A system error has occurred. The application will close

    Hi John,

    Can you please check event viewer and post error here ? why jobs are not being applied to channel db?

    First you have to solve this issue then your POS will run.

  • Community Member Profile Picture
    on at
    RE: Error number: 1 The application could not be initialized. Error number: 2 A system error has occurred. The application will close

    Unable to communicate with server for download. Please check username/password, server and database connections. Error Details: System.ServiceModel.Security.SecurityNegotiationException: Could not establish trust relationship for the SSL/TLS secure channel with authority 'mor.axserver.com:8100'. ---> System.Net.WebException: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel. ---> System.Security.Authentication.AuthenticationException: The remote certificate is invalid according to the validation procedure.

      at System.Net.Security.SslState.StartSendAuthResetSignal(ProtocolToken message, AsyncProtocolRequest asyncRequest, Exception exception)

      at System.Net.Security.SslState.StartSendBlob(Byte[] incoming, Int32 count, AsyncProtocolRequest asyncRequest)

      at System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest)

      at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest)

      at System.Net.Security.SslState.StartSendBlob(Byte[] incoming, Int32 count, AsyncProtocolRequest asyncRequest)

      at System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest)

      at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest)

      at System.Net.Security.SslState.StartSendBlob(Byte[] incoming, Int32 count, AsyncProtocolRequest asyncRequest)

      at System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest)

      at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest)

      at System.Net.Security.SslState.StartSendBlob(Byte[] incoming, Int32 count, AsyncProtocolRequest asyncRequest)

      at System.Net.Security.SslState.ForceAuthentication(Boolean receiveFirst, Byte[] buffer, AsyncProtocolRequest asyncRequest)

      at System.Net.Security.SslState.ProcessAuthentication(LazyAsyncResult lazyResult)

      at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)

      at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)

      at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)

      at System.Net.TlsStream.ProcessAuthentication(LazyAsyncResult result)

      at System.Net.TlsStream.Write(Byte[] buffer, Int32 offset, Int32 size)

      at System.Net.ConnectStream.WriteHeaders(Boolean async)

      --- End of inner exception stack trace ---

      at System.Net.HttpWebRequest.GetResponse()

      at System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)

      --- End of inner exception stack trace ---

    Server stack trace:

      at System.ServiceModel.Channels.HttpChannelUtilities.ProcessGetResponseWebException(WebException webException, HttpWebRequest request, HttpAbortReason abortReason)

      at System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)

      at System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout)

      at System.ServiceModel.Channels.SecurityChannelFactory`1.SecurityRequestChannel.Request(Message message, TimeSpan timeout)

      at System.ServiceModel.Security.SecuritySessionSecurityTokenProvider.DoOperation(SecuritySessionOperation operation, EndpointAddress target, Uri via, SecurityToken currentToken, TimeSpan timeout)

      at System.ServiceModel.Security.SecuritySessionSecurityTokenProvider.GetTokenCore(TimeSpan timeout)

      at System.IdentityModel.Selectors.SecurityTokenProvider.GetToken(TimeSpan timeout)

      at System.ServiceModel.Security.SecuritySessionClientSettings`1.ClientSecuritySessionChannel.OnOpen(TimeSpan timeout)

      at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)

      at System.ServiceModel.Channels.ReliableChannelBinder`1.ChannelSynchronizer.SyncWaiter.TryGetChannel()

      at System.ServiceModel.Channels.ReliableChannelBinder`1.ChannelSynchronizer.SyncWaiter.TryWait(TChannel& channel)

      at System.ServiceModel.Channels.ReliableChannelBinder`1.ChannelSynchronizer.TryGetChannel(Boolean canGetChannel, Boolean canCauseFault, TimeSpan timeout, MaskingMode maskingMode, TChannel& channel)

      at System.ServiceModel.Channels.ClientReliableChannelBinder`1.Request(Message message, TimeSpan timeout, MaskingMode maskingMode)

      at System.ServiceModel.Channels.RequestReliableRequestor.OnRequest(Message request, TimeSpan timeout, Boolean last)

      at System.ServiceModel.Channels.ReliableRequestor.Request(TimeSpan timeout)

      at System.ServiceModel.Channels.ClientReliableSession.Open(TimeSpan timeout)

      at System.ServiceModel.Channels.ReliableRequestSessionChannel.OnOpen(TimeSpan timeout)

      at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)

      at System.ServiceModel.Channels.ServiceChannel.OnOpen(TimeSpan timeout)

      at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)

      at System.ServiceModel.Channels.ServiceChannel.CallOnceManager.CallOnce(TimeSpan timeout, CallOnceManager cascade)

      at System.ServiceModel.Channels.ServiceChannel.EnsureOpened(TimeSpan timeout)

      at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)

      at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)

      at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

    Exception rethrown at [0]:

      at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)

      at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)

      at Microsoft.Dynamics.Retail.SynchClient.Core.DownloadServiceReference.IDownloadService.GetDownloadInterval(String dataStoreName)

      at Microsoft.Dynamics.Retail.SynchClient.Core.DownloadAgent.Execute()System.ServiceModel.Security.SecurityNegotiationException: Could not establish trust relationship for the SSL/TLS secure channel with authority 'mor.axserver.com:8100'. ---> System.Net.WebException: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel. ---> System.Security.Authentication.AuthenticationException: The remote certificate is invalid according to the validation procedure.

      at System.Net.Security.SslState.StartSendAuthResetSignal(ProtocolToken message, AsyncProtocolRequest asyncRequest, Exception exception)

      at System.Net.Security.SslState.StartSendBlob(Byte[] incoming, Int32 count, AsyncProtocolRequest asyncRequest)

      at System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest)

      at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest)

      at System.Net.Security.SslState.StartSendBlob(Byte[] incoming, Int32 count, AsyncProtocolRequest asyncRequest)

      at System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest)

      at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest)

      at System.Net.Security.SslState.StartSendBlob(Byte[] incoming, Int32 count, AsyncProtocolRequest asyncRequest)

      at System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest)

      at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest)

      at System.Net.Security.SslState.StartSendBlob(Byte[] incoming, Int32 count, AsyncProtocolRequest asyncRequest)

      at System.Net.Security.SslState.ForceAuthentication(Boolean receiveFirst, Byte[] buffer, AsyncProtocolRequest asyncRequest)

      at System.Net.Security.SslState.ProcessAuthentication(LazyAsyncResult lazyResult)

      at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)

      at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)

      at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)

      at System.Net.TlsStream.ProcessAuthentication(LazyAsyncResult result)

      at System.Net.TlsStream.Write(Byte[] buffer, Int32 offset, Int32 size)

      at System.Net.ConnectStream.WriteHeaders(Boolean async)

      --- End of inner exception stack trace ---

      at System.Net.HttpWebRequest.GetResponse()

      at System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)

      --- End of inner exception stack trace ---

    Server stack trace:

      at System.ServiceModel.Channels.HttpChannelUtilities.ProcessGetResponseWebException(WebException webException, HttpWebRequest request, HttpAbortReason abortReason)

      at System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)

      at System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout)

      at System.ServiceModel.Channels.SecurityChannelFactory`1.SecurityRequestChannel.Request(Message message, TimeSpan timeout)

      at System.ServiceModel.Security.SecuritySessionSecurityTokenProvider.DoOperation(SecuritySessionOperation operation, EndpointAddress target, Uri via, SecurityToken currentToken, TimeSpan timeout)

      at System.ServiceModel.Security.SecuritySessionSecurityTokenProvider.GetTokenCore(TimeSpan timeout)

      at System.IdentityModel.Selectors.SecurityTokenProvider.GetToken(TimeSpan timeout)

      at System.ServiceModel.Security.SecuritySessionClientSettings`1.ClientSecuritySessionChannel.OnOpen(TimeSpan timeout)

      at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)

      at System.ServiceModel.Channels.ReliableChannelBinder`1.ChannelSynchronizer.SyncWaiter.TryGetChannel()

      at System.ServiceModel.Channels.ReliableChannelBinder`1.ChannelSynchronizer.SyncWaiter.TryWait(TChannel& channel)

      at System.ServiceModel.Channels.ReliableChannelBinder`1.ChannelSynchronizer.TryGetChannel(Boolean canGetChannel, Boolean canCauseFault, TimeSpan timeout, MaskingMode maskingMode, TChannel& channel)

      at System.ServiceModel.Channels.ClientReliableChannelBinder`1.Request(Message message, TimeSpan timeout, MaskingMode maskingMode)

      at System.ServiceModel.Channels.RequestReliableRequestor.OnRequest(Message request, TimeSpan timeout, Boolean last)

      at System.ServiceModel.Channels.ReliableRequestor.Request(TimeSpan timeout)

      at System.ServiceModel.Channels.ClientReliableSession.Open(TimeSpan timeout)

      at System.ServiceModel.Channels.ReliableRequestSessionChannel.OnOpen(TimeSpan timeout)

      at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)

      at System.ServiceModel.Channels.ServiceChannel.OnOpen(TimeSpan timeout)

      at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)

      at System.ServiceModel.Channels.ServiceChannel.CallOnceManager.CallOnce(TimeSpan timeout, CallOnceManager cascade)

      at System.ServiceModel.Channels.ServiceChannel.EnsureOpened(TimeSpan timeout)

      at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)

      at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)

      at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

    Exception rethrown at [0]:

      at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)

      at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)

      at Microsoft.Dynamics.Retail.SynchClient.Core.DownloadServiceReference.IDownloadService.GetDownloadInterval(String dataStoreName)

      at Microsoft.Dynamics.Retail.SynchClient.Core.DownloadAgent.Execute()

  • Community Member Profile Picture
    on at
    RE: Error number: 1 The application could not be initialized. Error number: 2 A system error has occurred. The application will close

    like that Mr. Hasan

    please help

    Thank you so much

  • Suggested answer
    Hassan_rulz Profile Picture
    3,801 on at
    RE: Error number: 1 The application could not be initialized. Error number: 2 A system error has occurred. The application will close

    Have you imported certificates in pos machine?

    Kindly verify test connection in "Async client configuration utility".

  • Community Member Profile Picture
    on at
    RE: Error number: 1 The application could not be initialized. Error number: 2 A system error has occurred. The application will close

    Hii, Kavita,

    Could you please suggest me how to solve this error. i checked link you provided but not resolved my issue...

  • Muhammad Burhan Zahoor Profile Picture
    145 on at
    RE: Error number: 1 The application could not be initialized. Error number: 2 A system error has occurred. The application will close

    Check Retail configuration utility to change "Store-Id" and "Register-Id". It might be resolved.

  • Suggested answer
    A.Prasanna Profile Picture
    8,223 on at
    RE: Error number: 1 The application could not be initialized. Error number: 2 A system error has occurred. The application will close

    Just explain followings,

    The POS PC where Async Client installed under same domain or out side from your HQ domain ?

    have you used full qualified domain name of HQ as on Certificate  when you installing POS components  ?

    can you resolve Async Server by FQDN?

    Have you installed Certificate under Trusted Certification Authority ?

    Thanks & Regards,

    Amith Prasanna

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Tocauer Profile Picture

Martin Tocauer 4

#1
Community Member Profile Picture

Community Member 4

#3
Nayyar Siddiqi Profile Picture

Nayyar Siddiqi 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans