Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The remote server returned an error: (403) Forbidden - Web Deploy

I am getting an error "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 started on the remote computer. The remote server returned an error : (403) Forbidden.

  • Made sure Web Management Service is started and set to Automatic
  • Made sure that Web Deployment Agent Service is started and set to Automatic
  • Web Deploy 3.5 is installed
  • Enabled remote connections in Management Service With Windows Credentials or IIS Manager credentials
  • Enabled 8172 port using Windows Firewall with Advanced Security

But when using the connection with http://servername in Visual Studio, it is able to connect but using only servername in server its not able to connect giving the above error.

My question is why it works differently when using Visual Studio and when using MSDeploy Command Line I am getting an error like Could not complete the request to remote agent URL 'http://servername:8172/msdeploy.axd?site=MySite'. Error: The operation has timed out

The Error in Log File is

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

like image 948
Gopesh Sharma Avatar asked Nov 21 '22 19:11

Gopesh Sharma


1 Answers

The problem for me was that when webdeploy was installed, "typical" was selected instead of "complete". But I didn't modify the install, just uninstall it and then reinstalled it. Because modifying it led to another issue.

like image 53
RyanG Avatar answered Nov 24 '22 08:11

RyanG