Unable to web deploy to Linux App Service from Visual Studio 2019

Ken Brannigan 21 Reputation points
2021-05-18T23:55:12.467+00:00

For about 2 weeks now I am unable to web deploy from Visual Studio 2019 16.9.6. I have an ASP.NET Core 3.1 MVC application that I am trying to web deploy to a Linux App Service on Azure. When I try to either publish or even just validate the connection I get the following errors:

Publish has encountered an error.
Build failed. Check the Output window for more details.

A diagnostic log has been written to the following location:
"C:\Users\ken\AppData\Local\Temp\tmpF3BF.tmp"

An error occurred when the request was processed on the remote computer.
The server experienced an issue processing the request. Contact the server administrator for more information.

Prior to two weeks ago I had no issues. The following is a list of items I have tried:

  • Stopped and started the app service
  • Stopped the app service and tried deploying while it was stopped
  • Reset the publish profile and re-imported it into Visual Studio

If I edit the publish profile and click "Validate Connection" it fails and gives the same error message as above:

An error occurred when the request was processed on the remote computer.
The server experienced an issue processing the request. Contact the server administrator for more information.

I am able to publish locally and use an FTPS client to connect to the app service and manually deploy the files.

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,407 questions
{count} votes

Accepted answer
  1. SnehaAgrawal-MSFT 20,856 Reputation points
    2021-05-20T12:23:42.317+00:00

    Thanks for asking question! You may want to go through below steps for deploying Linux App service from Visual Studio 2019.
    Also, make sure you build the project using the Build > Build Solution menu command before following the deployment steps.

    1. In Solution Explorer, right-click the project and choose Publish. 98206-demo12.png
    2. If you have previously configured any publishing profiles, the Publish window appears. Select New.
    3. In the Publish window, select Azure.
    4. Select Azure App Service (Linux) and Next.
    5. Sign in with you Azure account, if necessary. Select Create a new Azure App Service...
    6. In the Create Azure App Service (Linux) dialog, the App Name, Resource Group, and App Service Plan entry fields are populated. You can keep these names or change them. When ready, select Create.
    7. In the Publish dialog, the newly created instance has been automatically selected. When ready, click Finish.
    8. Select Publish. 98189-demo121.png

    Visual Studio deploys the app to your Azure App Service, and the web app loads in your browser. The project properties Publish pane shows the site URL and other details.

    Reference: https://learn.microsoft.com/en-us/visualstudio/deployment/quickstart-deploy-to-linux?view=vs-2019

    Let us know if issue remains.


0 additional answers

Sort by: Most helpful