I am using Visual Studio 2015 Community edition on my local machine. This issue occurs when I Build>Publish with the credentials I get pulled off of my Windows Server 2012 R2 which runs Parallel Plesk 12.5. I exported the web deploy settings from Plesk. So all the credentials entered should be correct.
When I click the publish button I get the following error in this image:
How do I correct this error? I feel like there has to be something misconfigured on my server to be causing this issue.
Update:In the publish menu I have been able to validate the connection where the green checkmark pops up now. In IIS, I added my user to the site I was having trouble with. I still get the same error in the image tho when I actually click publish. Any other ideas? I am guessing i need to change a thing or two in IIS to fully correct the problem.
Update 2: This update is in reference to the post left by @Jan Remunda below. I have gone through the checklist. Here are my results:
*I went in to the Roles and Features Wizard and confirmed that Management Service is installed.
*I followed the link and installed the entire package of feature for Web Deploy.
*In IIS Manager, I went to my site, gamepaduniverse.com, and added the user. Restarted computer.
2
Answers
for right behavior of this feature you have to do few steps
if you want to use NTLM authentication instead of basic you must add some config to registers and restart management service
reg add
HKLMSoftwareMicrosoftWebManagementServer /v WindowsAuthenticationEnabled /t
REG_DWORD /d 1
IIS Management service installation
![IIS Management service installation](data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%200%200'%3E%3C/svg%3E)
Web Deploy installation
![Web deploy installation](data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%200%200'%3E%3C/svg%3E)
I have been able to published several times before, however one day I encountered this error when using Web Deploy to an Azure Website using an imported publish profile.
On the prompt it’s saying I was connected but not authorized (#ERROR_USER_UNAUTHORIZED) I had the correct username and password (from my publish profile) as confirmed when I clicked on “Validate Connection”
What worked for me was put in the password string and publish/preview it directly instead of click on validate connection. Hope this helps