question

KenBrannigan-9450 avatar image
0 Votes"
KenBrannigan-9450 asked KenBrannigan-9450 commented

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

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-webapps
· 1
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.

Just checking in to see if the below answers helped. If this answers your query, do click “Accept Answer” and Up-Vote for the same. And, if you have any further query do let us know.

0 Votes 0 ·

1 Answer

SnehaAgrawal-MSFT avatar image
0 Votes"
SnehaAgrawal-MSFT answered KenBrannigan-9450 commented

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://docs.microsoft.com/en-us/visualstudio/deployment/quickstart-deploy-to-linux?view=vs-2019

Let us know if issue remains.



demo12.png (61.4 KiB)
demo121.png (66.6 KiB)
· 1
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.

Thank you this solved the problem. I noticed the XML it generated had a "IsLinux" element set to true. Not sure why the publish profile downloaded from Azure would not have this!

0 Votes 0 ·