Illep
Illep

Reputation: 16851

Unable to create publish profile - Azure

I created a ASP.Net Web Application (MVC) to publish it onto a Azure VM. However, I am getting the following error.

enter image description here

In the folder structure given, there isn't a file called PublishProfiles\AppService.pubxml created. Can someone help me solve this ?

Upvotes: 8

Views: 6751

Answers (5)

Jim P
Jim P

Reputation: 95

I was getting the same issue.

If you're able to access the target App Service in the portal there's an option to download the publish profile from there:
Azure Web Service

You can then import that into Visual Studio on the Publish wizard: enter image description here

Upvotes: 0

Deepak paramesh
Deepak paramesh

Reputation: 864

Both the your Azure service Authentication and Visual studio profile should be same.

Once I loggedin with the same account. This issue got resolved.

enter image description here

enter image description here

Upvotes: 0

Kevin Brydon
Kevin Brydon

Reputation: 13112

I was having the same issue on Visual Studio 2022 when trying to publish a function. I installed the "Azure development" workload and updated to version 17.1.1 and the problem went away.

Steps that I took...

Download the Visual Studio installer from Microsoft https://visualstudio.microsoft.com/downloads/ or search for it on your computer

If there is an update available then click "Update"

enter image description here

When updated, click "Modify" to show what components are installed.

enter image description here

Ensure that "Azure development" workload is checked then click "Modify" in the bottom right corner.

enter image description here

Upvotes: 2

Gustavo
Gustavo

Reputation: 11

Check if there's any important component missing from your Visual Studio Installer, in my case I needed to have the Azure Webjob component to be able to create a publish profile.

This is an error message that gives you no insight of what is going on.

Upvotes: 1

luiarhs
luiarhs

Reputation: 63

Try to login with the same account on Visual Studio and publish profile that works for me.

Screeshot

Upvotes: 4

Related Questions