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)

Real Time Service can't connect

(0) ShareShare
ReportReport
Posted on by 470
I am trying to confgure AX 2012 R2, Real time service (not the web service) and followed the below steps:
                1. Firewall is completely off.
                2. RTS conguration:
                                Server:AX12-Test
                                Port:1239
                                Protocol:net.tcp
                                Passphrase: i have tried all possbile passphrases.
                                language: en-us
                                Realtime service  version:  AX 2012 R2
                3. Service is listening on the 1239 port number.
                4. As soon as i click inventory lookup atp pos error appears:  error number: 13010 could not connect to the transaction service,
                5. then i looked into the eventlog which showed the following error:
                LSRetailPosis.TransactionServices.InvokeMethod: System.ServiceModel.ProtocolException: You have tried to create a channel to a service that does not support .Net Framing.  ---> System.IO.InvalidDataException: Expected record type 'PreambleAck', found '46'.
 
6. Below is the transaction service configuration file setting:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <appSettings>
    <add key="Port" value="1239" />
    <add key="UseAX" value="1" />
    <!--AOSINSTANCE@AOSSERVER:AOSPORT-->
    <add key="ObjectServer" value="MicrosoftDynamicsAX@AX12-Test:2712" />
    <!-- When both IPV4 and IPV6 are available, set to true to use IPV6. Default value is false. -->
    <add key="PreferIPV6" value="false" />
    <add key="RetailTransactionServiceAX61" value="RetailTransactionServiceAX61" />
    <add key="ClientSettingsProvider.ServiceUri" value="" />
  </appSettings>
  <startup useLegacyV2RuntimeActivationPolicy="true">
    <supportedRuntime version="v4.0" />
  </startup>
  <system.diagnostics>
    <sources>
      <!-- this registers the listener with traces from a specific source -->
      <source name="TransactionServiceTracer" switchValue="Error">
        <listeners>
          <add name="xmlListener" type="TransactionServicesLib.EnvironmentVariableXmlTraceListener, TransactionServicesLib, Version=6.2.0.0, Culture=neutral, processorArchitecture=MSIL" initializeData="%AppData%\RetailTransactionService.svclog" traceOutputOptions="ProcessId, ThreadId, Timestamp" />
          <remove name="Default" />
        </listeners>
      </source>
    </sources>
  </system.diagnostics>
</configuration>

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Community Member Profile Picture
    on at

    I also have the same problem :(

  • asif.sanaullah Profile Picture
    470 on at

    Thanks hopefully we will be able to resolve this issue.

  • Community Member Profile Picture
    on at

    If the POS is an AX 2012 R2 POS the web service will need to be configured

  • tyhj Profile Picture
    625 on at

    How to configure the web service ? I am using net.tcp 809

    My web service has two protocols, https and net.tcp

    4174.Capture1.PNG

    My rts is like this 

    4174.Capture1.PNG

    8132.Capture2.PNG

    I found the below blog post but can't understand what need to be fix.

    https://blogs.msdn.microsoft.com/axsupport/2012/12/30/ax-for-retail-2012-r2-troubleshooting-the-real-time-service/ 

    Problem:  Call to the Real-time Service results in an error similar to the following (POS error log): LSRetailPosis.TransactionServices.EstablishConnection: System.ServiceModel.ProtocolException: You have tried to create a channel to a service that does not support .Net Framing. It is possible that you are encountering an HTTP endpoint. —> System.IO.InvalidDataException: Expected record type ‘PreambleAck’, found ’72’.

    Solution:  This usually happens when you are mixing protocols and ports incorrectly in the Real-time Service profile.  For instance, I can force this error if I choose “net.tcp” but use port 9080 (which is the http port).  We recommend that you use “net.tcp” with port 808 for the communication between POS and the Real-time Service.

  • Suggested answer
    Shafeeque P. Profile Picture
    6,533 Moderator on at

    You have two options to resolve the issue. Try second one only if the first doesn't work.

    1. From my experience, the root cause of the issue was that the net.tcp port you had configured is being used by another application.

    • Try changing the port number in binding of the RTS service in IIS  and restart the IIS by typing iisreset command in cmd.
    • Update the same port number Real Time Service profile and push the registers job.

    2. Updating web.config file

    • Go to C:/Inetpub/DynamicsAxRetail/CommerceDataExchangeRealtimeService folder (Usually located in the C: drive in the server where the IIS application is hosted). 
    • Open the web.config using notepad.
    • Set httpGetEnabled from false to true and save the web config file

    IIS.png

    • Once the changes are done, restart IIS (open command prompt run as an administrator, type the command: iisreset)

    • Restart RTS service in the server

    Screenshot Courtesy: Wamik Azam

    If this post helps you, Please mark the post as verified  answer.

  • Community Member Profile Picture
    on at

    Hi 

    I faced the same issue and the problem was with the port number used by RTS service.

    Below are the steps:

    • Stop Real time service
    • Update the net.tcp port number from 808 to 811
    • reset IIS (iisreset command in command prompt)
    • Update the port number in AX --> Real time service profile
    • push N-1090 & N-1110 job
    • start Real time service
    • re-start Retail POS

    Then the RTS started functioning.

    Regards / Joseph Joy

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