question

JordonKraft-8864 avatar image
0 Votes"
JordonKraft-8864 asked SanjayGopal-6130 published

Azure Web App - VS2019 Publish - Fails randomly

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.


azure-webapps-content-deployment
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

brtrach-MSFT avatar image
1 Vote"
brtrach-MSFT answered SanjayGopal-6130 published

@JordonKraft-8864 We apologize for the error that you are receiving when performing your deployment.

Can you please try to set an app setting for your web app? The app setting and value are WEBSITE_WEBDEPLOY_USE_SCM = false

Please let us know if this setting resolves the error. We look forward to your reply.


· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I am not the OP, but I was having the same error, and the fix proposed here fixed the issue for me.

0 Votes 0 ·

I was having the same issue. Alternatively I also was having an issue popup about not enough disk space, which I assumed was temp space. Using this app setting resolved it and am able to publish. On a site note, this issue was happening with VS 2015.

0 Votes 0 ·
StanSyniavskyi-2144 avatar image
2 Votes"
StanSyniavskyi-2144 answered StanSyniavskyi-2144 published

For me, lack of free space in app service cause that issue. Deleting some old log files via kudu resolved the issue right away

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.