7

I am trying to deploy my Bot to azure. I have created it in azure and i downloaded the source code. But now im trying to deploy it again i'm getting the error on the title. I got all the credentials correct because i wrote it down before. This is the error.

Severity Code Description Project File Line Suppression State Error Web deployment task failed. (Connected to the remote computer ("dotnetfpbot.scm.azurewebsites.net") using the Web Management Service, but could not authorize. Make sure that you are using the correct user name and password, that the site you are connecting to exists, and that the credentials represent a user who has permissions to access the site. Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_USER_UNAUTHORIZED.) Make sure the site name, user name, and password are correct. If the issue is not resolved, please contact your local or server administrator. Error details: Connected to the remote computer ("dotnetfpbot.scm.azurewebsites.net") using the Web Management Service, but could not authorize. Make sure that you are using the correct user name and password, that the site you are connecting to exists, and that the credentials represent a user who has permissions to access the site. Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_USER_UNAUTHORIZED. The remote server returned an error: (401) Unauthorized. AzureBot 0

If ever my username or password is wrong is there a way to change them?

user10860402
  • 912
  • 1
  • 10
  • 34
  • Are you using the deployment username and password from the deployment profile or your Azure account username and password? – juunas Jan 10 '19 at 09:25
  • I'm using the microsoft appID and password when i first created the bot in azure portal sir. – user10860402 Jan 11 '19 at 01:40
  • 1
    Alright, well you need to use the publish/deployment profile credentials. Normally Visual Studio should do that for you.. – juunas Jan 11 '19 at 05:23
  • 2
    It's okay now. I went to azure and clicked "get publish profile" and theres a password there. I used that password and it logged in successfuly. Now i can publish the bot but how can i publish it back to it's slot in azure portal? – user10860402 Jan 11 '19 at 07:11
  • I first created it in azure and downloaded the source code but now i can't deploy it back even after successfuly publishing it in visual studio. – user10860402 Jan 11 '19 at 07:13
  • Use the publish profile you downloaded, and import it into the Visual Studio project. It will ensure that when you publish it publishes to the existing web application. – Eric Dahlvang Jan 17 '19 at 16:48

3 Answers3

4

please delete the publish profiles and rebuilt them by going through the wizard again.

Talha
  • 18,898
  • 8
  • 49
  • 66
3

Yes. Sign in to your Azure account and hit 'get publish profile' at the top of the dashboard after you click into your project and you can send it to Notepad. Much stuff there. It all repeats; It is userPWD="the long password is here"

1

This happened to me today, Even if I get the publishing profile from Azure App Service.

All I did was update my Visual Studio to the latest which is as of this moment is 17.6.0 from 17.5.X

Crismogram
  • 906
  • 15
  • 27