.net core Web Deploy Error: (401) Unauthorized with Visual Studio 2017

When using Vistual Studio 2017 to deploy an ASP.net Core web application you may encounter the following error;

“Connected to the remote computer ("mydomainname.com") 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.”

This has been identified as a bug in Visual Studio 2017 and is fixed in a future release announced May 2017.


Alternative publishing methods such as FTP or uploading a zipped copy via the control panel file manager are recommended until the fix is released.
  • 5 Users Found This Useful
Was this answer helpful?

Related Articles

FileZilla - Unable to retrieve the directory listings

If you get an error for 'unable to retrieve the directory listings' in FileZilla, we would...