Web Deploy publishing fails with an error: ERROR_USER_UNAUTHORIZED

Created:

2017-05-01 20:13:46 UTC

Modified:

2017-08-08 13:14:42 UTC

2

Was this article helpful?


Have more questions?

Submit a request

Web Deploy publishing fails with an error: ERROR_USER_UNAUTHORIZED

Applicable to:

  • Plesk Onyx for Windows

Symptoms

While publishing .NET core application via Web Deploy in Visual Studio 2017 it fails with error:

Error Web deployment task failed. (The connection to the remote computer ("example.com") was established with the Web Administration Service, but authorization was not possible. Ensure that you are using the correct user name and password to connect to the website And that the credentials represent a user who is authorized to access the site. For more information, see: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_USER_UNAUTHORIZED.) Make sure the site name, username, and password are correct. If the issue is not resolved, please contact your local or server administrator. Error details: The connection to the remote computer ("example.com") was established with the Web Administration Service, but authorization was not possible. Ensure that you are using the correct user name and password, that the Web site to connect to, and that the credentials represent a user who is authorized to access the site. For more information, see: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_USER_UNAUTHORIZED. The remote server returned an error: (401) Unauthorized. WebApplication7 0

Cause

This is Plesk bug #PPPM-6177 which will be fixed in one of the next product updates.

Resolution 

As a workaround, replace IIS.php file with the patched one from the attachment in the following directory:

%plesk_dir%\admin\plib\PHostingManager

For Plesk Onyx 17.0

For Plesk Onyx 17.5

Note: Create a backup of the original file first.

Attachments:

Have more questions? Submit a request
Please sign in to leave a comment.