System.OperationCanceledException: AIF service group not activated in AX 2012

Hi AX Technical,

Today, in this post we are going to share a solution for below error:

Error:



System.OperationCanceledException: AIF service group not activated.  Service group: AccountsReceivableServices.  Error: There is already a listener on IP endpoint 0.0.0.0:8201. This could happen if there is another application already listening on this endpoint or if you have multiple service endpoints in your service host with the same IP endpoint but with incompatible binding configurations. ---> System.ServiceModel.AddressAlreadyInUseException: There is already a listener on IP endpoint 0.0.0.0:8201. This could happen if there is another application already listening on this endpoint or if you have multiple service endpoints in your service host with the same IP endpoint but with incompatible binding configurations. ---> System.Net.Sockets.SocketException: Only one usage of each socket address (protocol/network address/port) is normally permitted

   at System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress)

   at System.Net.Sockets.Socket.Bind(EndPoint localEP)

   at System.ServiceModel.Channels.SocketConnectionListener.Listen()

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

   at System.ServiceModel.Channels.SocketConnectionListener.Listen()

   at System.ServiceModel.Channels.ConnectionAcceptor.StartAccepting()

   at System.ServiceModel.Channels.ExclusiveTcpTransportManager.OnOpen()

   at System.ServiceModel.Channels.TransportManager.Open(TransportChannelListener channelListener)

   at System.ServiceModel.Channels.TransportManagerContainer.Open(SelectTransportManagersCallback selectTransportManagerCallback)

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

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

   at System.ServiceModel.Channels.TcpChannelListener`2.OnOpen(TimeSpan timeout)

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

   at System.ServiceModel.Dispatcher.ChannelDispatcher.OnOpen(TimeSpan timeout)

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

   at System.ServiceModel.ServiceHostBase.OnOpen(TimeSpan timeout)

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

   at Microsoft.Dynamics.Ax.Services.AifHelper.PublishServices(String serviceGroupName)

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

   at Microsoft.Dynamics.Ax.Services.AifHelper.PublishServices(String serviceGroupName)

   at Microsoft.Dynamics.Ax.Services.AifHelper.PublishAllServiceGroups(Dictionary`2 faultedServices)

Solution:

1) Stop AOS and navigate to C:\Program Files\Microsoft Dynamics AX\60\Server\AX2012R3\bin.
2) Rename the XppIL folder as XppIL_Old.
3) Start AOS and then do the full CIL.
4) You should not get any error this time.


5) Delete the XppIL_Old folder now.
6) In case you are still getting error in Full CIL. Please click here.

We hope this solution helped you to troubleshoot Full CIL issue in AX 2012. Please comment your valuable feedback for this article...

Author:
Chirag Gupta
Microsoft Dynamics D365/AX 2012
Senior Technical Consultant at IBM Bangalore

Date:
8-Apr-2020

Happy Learning !!

Comments

Post a Comment

Popular posts from this blog

[Solved] : Error: String or binary data would be truncated. Cannot execute a data definition language command on Vendor (VendLedgerReconciliationTmp)

AX 2012 - Command prompt compilation / AxBuild.exe for Parallel Compile on AOS of X++ to P-code / Parallel Compilation

AX 2012 - How to send SSRS report in email as an attachment using X++

AX 2012 - How to stop AOS when services got stuck at stopping status

AX 2012 - How to make a form field mandatory

Error: There was no endpoint listening at net.tcp://your_server_name:8201/Dynamics AX/Services…

Fetch vendor address using X++ in AX 2012

AX 2012 - How to print current date and time on SSRS Report

[Error] - Error in unit of amount in currency KES. Must be rounded to 0.01 | The unit of 37.563.5343100000000000 KES being posted to account 32710001-- is outside the current penny rounding threshold | Posting has been canceled

[Solved] : AX 2012 - No connection could be made because the target machine actively refused it 192.168.10.249:8201