@Rod At Work
I'm getting errors in VS 2022 when I try to deploy to the server, telling me that the server is actively denying access
Can you post the complete error message?
The last thing I've come across which might be the problem is port 8172, the default port used by Visual Studio when deploying to a web server, may not be opened
Try to use the following command to see if there is port 8172 information:
netstat -aon | findstr :8172
If not, your port 8172 is not open, you can try the following steps:
- Open IIS and in the center pane, under Management, double-click
Management Service
.
- In the center pane, select
Enable remote connections
.
- In the Actions pane, click
Start
to start the Web Management Service.
- If you're prompted to save your settings, click Yes.
By default, the IIS Web Management Service listens on TCP port 8172. If Windows Firewall is enabled on your web server, you'll need to create a new inbound rule to allow TCP traffic on port 8172 (all outbound traffic is permitted by default in Windows Firewall). For more information on configuring rules in Windows Firewall, see Configuring Firewall Rules.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.