Visual Studio Web Deploy asks for password in Release mode, but not Debug

We have a web project created to deploy the same project on several azure websites. When deployed to these sites, debug mode deployment works as expected. However, when you try to deploy the same project to a website in release mode, we will always be asked to enter a password.

We tried to delete the .pubxml and .pubxml.user files, but the problem persists. Why would he deploy OK in debug mode, but request a password in release mode?

Note. Most of these projects are deployed in virtual directories marked as applications on these websites. Other projects are deployed very well in release and debug mode, it seems that this is only one project with which we are having problems.

+5
source share
2 answers

I don’t know why this happens with only one of the virtual directory applications on the site, but going to the azure portal and clicking “Reset your publishing profile credentials” seems to fix it.

+6
source

This happened on VS 2017 when I tried to update the setting in the profile. The next time I tried to publish, the password was cracked, and this started to prompt me.

I realized that deleting a profile from the Public User Interface in VS did not work, because all it does is remove .Pubxml from the project without removing it from the HD and Source controls. In addition, if you do not delete the file manually, import a parameter that will leave you hanging; literally.

Again, the solution is to delete the file manually (both from HD and from the control source). Then importing it worked like a charm.

+6
source

Source: https://habr.com/ru/post/1211925/


All Articles