2017-08-16 148 views
0

部署我的web应用程序会导致此错误:在本地使用时授权错误,同时部署Web应用程序到Azure

Web deployment task failed. (Connected to the remote computer ("websitenamehere.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.) 
    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 ("websitenamehere.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  0 

的应用程序正常工作。

0% compiling 10% building modules 0/1 modules 1 active ...b\unikyte\src\Unikyte.SPA\src\main.ts 
10% building modules 1/1 modules 0 active1 0% building modules 1/2 modules 1 active ...kyte\src\Unikyte.SPA\src\polyfills.ts 10% building modules 2/2 modules 0 active 10% building modules 2/3 modules 1 active ...nikyte\src\Unikyte.SPA\src\styles.css 

我怎样才能不被授权:建筑角度束时 发生的错误?

回答

1

要避免此错误,您可以从Azure portal下载发布配置文件(其中包括正确的用户名和密码),然后在您的Visual Studio中导入此xxx.PublishSettings文件以进行Web部署。

enter image description here

enter image description here

+0

实际工作,无论什么原因,发布配置文件我是无效的。 – Hristo

相关问题