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)

Error message when activating inbound port in Aif: "There is already a listener on IP endpoint"

(0) ShareShare
ReportReport
Posted on by

Hello,

we have to installations of AX2012. In the first every tier is installed on it's own machine. In this installation all inbound ports are activated. In the second installation all three tiers are installed on the same machine. In this installation the inbound ports are all deactivated. When I try to activate them I get an infolog with success messages except one errormessage:

System.OperationCanceledException: AIF service group not activated. Service group: [...]. Error: There is already a listener on IP endpoint 0.0.0.0:8201. 

Although the last message says "The port '[...]' was deployed successfully." the port is not activated.


In both installations the Ax32serv.exe is the listener to port 8201.

What can I do to get the inbound ports activated?

Regards
Patrick

*This post is locked for comments

I have the same question (0)
  • Sebastian Aurand Profile Picture
    1,650 on at

    Hello Patrick,

    I have exactly the same problem. If you come to a solution in the meantime, please let me know. Of course, same to me.

    Thanks in advance

    Sebastian.

  • 640579632b5c4e6780a624c4771b6f93 Profile Picture
    4,730 on at

    see what is connect to port 8201

    cmd.exe - netstat -a or netstat -o

  • 640579632b5c4e6780a624c4771b6f93 Profile Picture
    4,730 on at

    Also you can use TCPView to find out which process it holding 8201

    technet.microsoft.com/.../bb897437

  • Sebastian Aurand Profile Picture
    1,650 on at

    Hello again,

    thanks first of all for your response.

    I've checked it with TCPView. There following processes are listening:

    - Port 8101 = System; Protocol = TCP; Local Address = the local server

    - Port 8101 = System; Protocol = TCPV6; Local Address = the local server (with domain Address)

    - Port 8102 = AX32Serv.exe; Protocol = TCP; Local Address = the local server

    - Port 8102 = AX32Serv.exe; Protocol = TCPV6; Local Address = the local server (with domain Address)

    If I stop the aos, all processes are killed. I'm just a bit confused, bedause in another virtual image (AX-2012-BETA) exactly the same processes are listed and the inbound ports are activated successfully.

    Any ideas?

    Thanks in advance for any help.

    Sebastian

  • Community Member Profile Picture
    on at

    Hello,

    also thanks for your response.

    In fact I've the same as Sebastian:

    TCP 0.0.0.0:8201 0.0.0.0:0 LISTENING 3044
    TCP [::]:8201 [::]:0 LISTENING 3044

    Process 3044 is Ax32serv.exe

    And here we have also another application were the inbound ports are all activated and port 8201 is listed identically with netstat, i.e. Ax32serv.exe is listener for port 8201.

    The only difference is that the application were it doesn't work is installed completely on one machine, the application were the inbound ports are activated is installed on one machine per tier.

    Hope that helps...

    Regards
    Patrick

  • 640579632b5c4e6780a624c4771b6f93 Profile Picture
    4,730 on at

    Try generating full IL then try again

  • Sebastian Aurand Profile Picture
    1,650 on at

    Hello together,

    I did figure out, which must have been the error in my case. I installed a basic version of AX 2012 (DB, AOS, Client) and afterwards imported data via export/import from another 2012 version.

    Unfortunatly also some system tables (including tables AIF) where deleted and reimported from the other system. So the configuration was wrong. I couldn't find out which was the wrong setting in detail.

    As I rolled back the virtual image to the point before importing the data, the installation (prerequesite check) runs without problems.

    Maybe this will help

    Best regards

    Sebastian.

    @Huzaifa Gain: did you mean compilling / generating the CIL?

  • 640579632b5c4e6780a624c4771b6f93 Profile Picture
    4,730 on at

    I meant full IL

    You can confirm your theory by keeping both database and ax configuration setting try connecting to both db turn by turn

  • Verified answer
    Community Member Profile Picture
    on at

    Hello alltogether,

    regenerating CIL didnn't help, in contrary, in the course of generating the CIL AX tries to activate all inbound ports which resulted again in the error. But the hint of Sebastian did the trick. I had also imported company accounts with the export/import utility (from the Contoso-db) and I had imported all tables. Now I have overwritten all Aif*-tables with an export from a system where the inbound ports are working and now they are also working in the system were they didn't work before.

    Thanks Huzaifa and Sebastian for your help!

    Regards

    Patrick

  • Suggested answer
    Chaitan Profile Picture
    50 on at

    TCP port 8201 is basically occupied by something else and will block all the AIF services. AIF services start showing a red circle and would not come back.

    The easy solution to fix and get all the AIF services running would be assigning a new port.

    Steps for this are :

    Edit the Ax32Serv Config file located on the AOS Server under

    "C:\Program Files\Microsoft Dynamics AX\60\Server\MicrosoftDynamicsAX\bin\Ax32Serv.exe.config"

    Find  8201 and replace with either 8202 or 8301, Basically It replaces the ServicePort and net.tcp URL's in the file and doesn't require to restart the AOS.

    Go back to AIF Inbounds and click activate. That should show the Infolog with successful deployment.

    But remember to change the AXC connection files through AX Configuration Utility, since the WSDL has to be refreshed as it generates a fresh WSDL settings, If at all you are using the AXC connection files from a remote system to connect to AX Instance.

    Regards,

    Chaitan

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
Priya_K Profile Picture

Priya_K 4

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#3
Sukrut Parab Profile Picture

Sukrut Parab 2 Moderator

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans