Odd Problem - Preview but not publish

Jordon Kraft 1 Reputation point
2020-11-17T19:03:11.04+00:00

I have been publishing to 4 different sites for nearly 6 months successfully on app services in AZURE.

Today I went to do a normal deploy and followed my normal steps.

  1. Clean Project, delete extra folders.
  2. Publish from right clicking the project name in solution explorer.
  3. Choose my deployment from the drop down, click "Preview Changes"
  4. Review files that will be updated/added/deleted
  5. Click Publish.

Then I get an error:

Could not connect to the remote computer ("http://www.redacted.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.

If I had a connection problem or the service wasn't running, wouldn't the "Preview Changes" fail also? I had always assumed that they used the same services.

Also I tried adding "WEBSITE_WEBDEPLOY_USE_SCM" = false to config and re-deploy and still nothing. Also tried refreshing the publish profile and using the new one and still same thing.

I published on Friday, It's now Monday. No idea what happened over the weekend. If there is anyone out there with some insight that would be great.

P.S. I did get an FTP option, but there seems to be no preview option, and I like to validate the files first before sending an update. Gives me a little piece of mind seeing the list.

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,874 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Ryan Hill 25,666 Reputation points Microsoft Employee
    2020-11-19T03:51:10.44+00:00

    Hi @Jordon Kraft ,

    Try restarting the kudu management instance for your app service. You can find the step-by-step instructions over on https://github.com/projectkudu/kudu/wiki/Full-stopping-a-Web-App. If that doesn't please let me know so I can work more closely with you.

    Regards,
    Ryan

    0 comments No comments