Visual Studio: Web Server Unable to Listen on Port
Hello,
I am encountering an issue with Visual Studio running on a Microsoft Windows Server 2022 Datacenter Evaluation, hosted as a Hyper-V virtual machine. When starting my ASP.NET Core application, I get an error indicating that the web server cannot listen on the specified port.
Here’s what I’ve already checked:
- Firewall rules (both inbound and outbound) are correctly configured for the port.
- The port appears to be free, as verified using
netstat
. - Visual Studio is running with administrative privileges.
- The issue persists whether using the default port settings or custom ports specified in the
launchSettings.json
.
Additionally:
- The SQL Server database is accessible via the Server Explorer in Visual Studio.
- It is also reachable through SQL Server Management Studio (SSMS).
Does anyone have suggestions on what could be causing this issue or how I might resolve it? Thanks in advance for your help!Hello,
I am encountering an issue with Visual Studio running on a Microsoft Windows Server 2022 Datacenter Evaluation, hosted as a Hyper-V virtual machine. When starting my ASP.NET Core application, I get an error indicating that the web server cannot listen on the specified port.
Here’s what I’ve already checked:
- Firewall rules (both inbound and outbound) are correctly configured for the port.
- The port appears to be free, as verified using
netstat
. - Visual Studio is running with administrative privileges.
- The issue persists whether using the default port settings or custom ports specified in the
launchSettings.json
.
Additionally:
- The SQL Server database is accessible via the Server Explorer in Visual Studio.
- It is also reachable through SQL Server Management Studio (SSMS).
Does anyone have suggestions on what could be causing this issue or how I might resolve it? Thanks in advance for your help!
Thank you.