The remote server responded with an error: (403) Forbidden - deployment on the Internet

I get the error message β€œCould not connect to the remote computer using the specified process (Web Management Service) because the server did not respond. Make sure that the process (Web Management Service) is running on the remote computer. Remote server answered the error: (403) Forbidden.

  • Verify that the web management service is running and automatic
  • Verify that the Web Deployment Agent service is started and Automatic is installed
  • Installed Web Deploy 3.5
  • Allowed Remote Connections in Management Service With Windows Credentials or IIS Manager credentials
  • Port 8172 is enabled using Windows Firewall with Advanced Security

But when using the connection with http: // servername in Visual Studio, it can connect, but using only servername on the server, it cannot be connected, giving the above error.

My question is why it works differently when using Visual Studio and when using the MSDeploy command line. I get an error message, for example: Failed to query the remote agent URL ' http: // servername: 8172 / msdeploy.axd? Site = MySite ". Error: operation timed out

Error in log file

sc-status: 403, sc-substatus: 503, sc-win32-status: 5, time: 1265

+6
source share
1 answer

from the memory it seems that you did everything right, but 403 means that you did not get permission. you only said servername, so I assume that you are trying without a username and password (anonymously), but I'm not sure if this will work.

I personally have a local administrator on the server to which I am deploying, and I use this username and password when publishing from visual studio.

The following is an example image of a connection page when creating a publication profile. check the connection if there is a green checkmark next to it, as well as a warning symbol and a link to the problem, if not.

enter image description here

0
source

Source: https://habr.com/ru/post/986500/


All Articles