Friday, April 24, 2015

Retail Transaction Service Error for NET.TCP

There can be situations when the real time service for a store suddenly stops working if it uses the net.tcp protocol to communicate with back office AX. You will be provided with a connection unsuccessful exception from the server due to time out. And a generic error during an operation For Eg:- Recall Sales order operation from the POS as "An error occurred while refreshing the list". A closer look at the event POS will provide insights into the net.tcp error log like below.

Microsoft.Dynamics.Retail.Pos.SalesOrder.WinFormsTouch.frmGetSalesOrder, Text: Sales orders: LSRetailPosis.PosisException ---> System.ServiceModel.EndpointNotFoundException: Could not connect to net.tcp://server.ttprod.local:8190/RealTimeService/Service.svc/Common. The connection attempt lasted for a time span of 00:00:01.0312456. TCP error code 10061: No connection could be made because the target machine actively refused it  ---> System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it
   at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
   at System.Net.Sockets.Socket.Connect(EndPoint remoteEP)
   at System.ServiceModel.Channels.SocketConnectionInitiator.Connect(Uri uri, TimeSpan timeout)

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

The server had actively refused the connection for net.tcp connection as the listener port was not started for the service. The listener Port for the network adapter can be activated on the server from the Services > NET.TCP Listener Adapter and starting the service.

No comments:

Post a Comment