4
votes

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?

2
Are you using the deployment username and password from the deployment profile or your Azure account username and password?juunas
I'm using the microsoft appID and password when i first created the bot in azure portal sir.user10860402
Alright, well you need to use the publish/deployment profile credentials. Normally Visual Studio should do that for you..juunas
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
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

2 Answers

1
votes

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

0
votes

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"