I have a few deployments of the same code (dev, test, production, etc..), its a asp.net 3.1 website.
Currently I just deploy to each app service through Visual Studio 2019 Publish window. I will want to setup azure pipelines at some point but right now it isn't a priority.
The app runs fine, the problem I have is that randomly I will get this error during publish:
Severity Code Description Project File Line Suppression State
Error Web deployment task failed. (Could not connect to the remote computer ("<myapp>.scm.azurewebsites.net") 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. Learn more at: https://go.microsoft.com/fwlink/?LinkId=221672#ERROR_COULD_NOT_CONNECT_TO_REMOTESVC.)
Could not connect to the remote computer ("<myapp>.scm.azurewebsites.net") 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. Learn more at: https://go.microsoft.com/fwlink/?LinkId=221672#ERROR_COULD_NOT_CONNECT_TO_REMOTESVC.
The remote server returned an error: (400) Bad Request. RiseFSM 0
It could be after 3 deploys, could be after 20, could even happen the same day as a successful publish. The only way I have fixed it is by deleting the app service and re-deploying and configuring for the environment.
Here are the links I have reviewed that didn't help.
search
web-deploy-error-codes - I don't know how to "ensure msdepsvc or wmsvc service is started on the remote server" since its a app service.
I am stuck and would really like some help fixing this issue.