We have a .NET 4.8 WCF application on Windows Server 2022

Anonymous
2024-07-08T16:30:13+00:00

We have a .NET 4.8 WCF application that we are having trouble getting to run on Windows Server 2022.  We have traced the problem to the "Net.Tcp Listener Adapter" service not being present. We have enabled all IIS Roles and all .NET Framework Features, but the service doesn't seem to be there.  What Role and/or Feature needs to be installed for this service to be present and running?

Windows for business | Windows Server | Networking | Network connectivity and file sharing

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question. To protect privacy, user profiles for migrated questions are anonymized.

0 comments No comments
{count} votes
Accepted answer
  1. Anonymous
    2024-07-09T02:43:15+00:00

    Hello Kevin,

    To get your .NET 4.8 WCF application running on Windows Server 2022, you need to ensure that the appropriate roles and features are installed for the "Net.Tcp Listener Adapter" service to be present. Here are the steps you can follow to enable the required roles and features:

    Steps to Install Required Roles and Features

    1. Open Server Manager:
      • Click on the Start button, type "Server Manager" and press Enter.
    2. Add Roles and Features:
      • In Server Manager, click on "Add roles and features".
    3. Installation Type:
      • Choose "Role-based or feature-based installation" and click "Next".
    4. Select Destination Server:
      • Choose the server you want to install the features on and click "Next".
    5. Select Server Roles:
      • Expand "Web Server (IIS)".
      • Expand "Web Server".
      • Expand "Application Development".
      • Ensure that "ASP.NET 4.8" and "WCF Services" are checked.
        • Expand "WCF Services" and ensure that "TCP Port Sharing" is checked.
      • Click "Next".
    6. Select Features:
      • Ensure that ".NET Framework 4.8 Features" is checked.
        • Expand ".NET Framework 4.8 Features" and ensure that "WCF Services" and "HTTP Activation" are checked.
      • Expand "Remote Server Administration Tools".
        • Expand "Role Administration Tools".
        • Expand "Web Server (IIS) Tools".
        • Ensure that "IIS Management Console" is checked.
      • Click "Next".
    7. Confirm Installation Selections:
      • Review your selections and click "Install".
    8. Install and Restart:
      • Wait for the installation to complete. If prompted, restart the server.

    Verifying the Net.Tcp Listener Adapter Service

    Once you have installed the necessary roles and features, verify that the "Net.Tcp Listener Adapter" service is present and running:

    1. Open Services:
      • Press Win + R, type services.msc, and press Enter.
    2. Locate the Net.Tcp Listener Adapter:
      • Scroll down and find the "Net.Tcp Listener Adapter" service.
      • Ensure that the service is set to start automatically and is running.

    Command-Line Alternative

    You can also install the necessary features using PowerShell:

    powershell

    Install-WindowsFeature -name AS-NET-Framework-Features,AS-NET-Framework,AS-WCF-Services,AS-TCP-Port-Sharing -IncludeAllSubFeature -IncludeManagementTools

    This command installs the required .NET Framework features, including WCF Services and TCP Port Sharing.

    Summary


    To get the "Net.Tcp Listener Adapter" service running on Windows Server 2022 for your .NET 4.8 WCF application, you need to:

    • Enable IIS roles and features related to ASP.NET and WCF services.
    • Ensure the TCP Port Sharing feature is installed and enabled.

    After following the steps above, your WCF application should be able to utilize the Net.Tcp Listener Adapter service successfully. If you encounter any further issues, please let me know for additional support.

    Best regards

    Rosy

    0 comments No comments

0 additional answers

Sort by: Most helpful