gpt4 book ai didi

angularjs - 将 Web 应用程序部署到 azure 时出现授权错误

转载 作者:行者123 更新时间:2023-12-03 05:52:53 33 4
gpt4 key购买 nike

部署我的 Web 应用程序会导致此错误:

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

该应用程序在本地使用时可以正常工作。构建 Angular 包时发生错误:

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

我怎么可能没有被授权?

最佳答案

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

enter image description here

enter image description here

关于angularjs - 将 Web 应用程序部署到 azure 时出现授权错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45716934/

33 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com