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
- Open Server Manager:
- Click on the Start button, type "Server Manager" and press Enter.
- Add Roles and Features:
- In Server Manager, click on "Add roles and features".
- Installation Type:
- Choose "Role-based or feature-based installation" and click "Next".
- Select Destination Server:
- Choose the server you want to install the features on and click "Next".
- 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".
- 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".
- Ensure that ".NET Framework 4.8 Features" is checked.
- Confirm Installation Selections:
- Review your selections and click "Install".
- 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:
- Open Services:
- Press
Win + R
, typeservices.msc
, and press Enter.
- Press
- 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