gpt4 book ai didi

asp.net - 从 Visual Studio 2015 发布

转载 作者:行者123 更新时间:2023-12-02 06:28:47 25 4
gpt4 key购买 nike

我正在尝试从 Visual Studio 2015 将 ASP.NET 5 MVC6 应用程序发布到 godaddy 服务器。我已从服务器导入发布配置文件,并且能够验证连接。但是,当我发布我的应用程序时,出现以下错误:

ERROR_USER_UNAUTHORIZED

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

凭据有效,我可以从 VS2015 发布 VS2013 示例项目,但无法使用相同的凭据从 VS2015 发布 VS2015 示例项目以及我的应用程序。

该用户是服务器上的管理员。

最佳答案

您需要检查的第一件事是 GoDaddy 的服务器是否支持 4.5.1。一旦确认这一点?我们可以开始工作了!

Helios(IIS 和 ASP.NET 5 之间的填充程序)至少需要 4.5.1 才能运行,因此这就是它的重要性。

唯一缺少的是运行 dnu 发布 并确保您有一个包含此部分的 web.config:

<system.webServer>
<modules runAllManagedModulesForAllRequests="true" />
</system.webServer>

如果不起作用,我会联系 GoDaddy 寻求支持。如果它们不支持最新版本的框架,您可能必须恢复到 MVC 5 或切换到 如果您确实想启用 .

关于asp.net - 从 Visual Studio 2015 发布,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33665930/

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