.net core 3.1无法在Plesk独立的主机上运行,​​出现错误:500-内部服务器错误& HTTP错误502.5-进程失败 [英] .net core 3.1 cannot host on Plesk self-contained, getting errors: 500 - Internal server error & HTTP Error 502.5 - Process Failure

查看:86
本文介绍了.net core 3.1无法在Plesk独立的主机上运行,​​出现错误:500-内部服务器错误& HTTP错误502.5-进程失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 Plesk Onyx 17.8.11 中使用了两种不同的主机服务,但仍然无法在主机上运行我的应用程序。

I have used two different host services with Plesk Onyx 17.8.11 but still I am not able to run my application on the hosts.


这是我到目前为止所做的事情:

. So here are the things I have done so far:


  • 我使用独立的winx64模式发布并更新了web.config到 hostingModel = InProcess ..,仍然出现500-内部错误。

  • 我试图打开通过Web的日志记录.config stdoutLogEnabled = true 并且在该目录中未创建任何文件,我不知道为什么!

  • 我更改了基于一些建议(作为一个肮脏的把戏),将modules = AspNetCoreModuleV2转换为modules = AspNetCoreModuleV2,然后出现HTTP错误502.5-进程失败。

  • 我尝试了两种Web部署方法和文件夹部署,然后通过FileZilla传输到服务器。

  • I published using self-contained winx64 mode and updated web.config to hostingModel="InProcess".. still, I was getting 500 - Internal error.
  • I tried to turn on logging through web.config stdoutLogEnabled="true" and no files were created in that directory and I couldn't figure out why!
  • I changed modules="AspNetCoreModuleV2" to modules="AspNetCoreModule" based on some recommendations (as a dirty trick) and then I got HTTP Error 502.5 - Process Failure.
  • I tried both methods of web deploy and folder deploy and then transferring to the server through FileZilla.

据我了解,无需安装Microsoft dotnet软件包我使用的是自包含方法。

As far as I understood there's no need to install the Microsoft dotnet bundle as I'm using the self-contained method.

谢谢

推荐答案

此帮助文档介绍了Plesk的ASP .NET Core支持。 https:// support。 plesk.com/hc/zh-CN/articles/115000442805-ASP-NET-Core-versions-in-Plesk 。如果希望在3.1中托管任何内容,则需要替代解决方案。

This help document explains Plesk's ASP .NET Core support. https://support.plesk.com/hc/en-us/articles/115000442805-ASP-NET-Core-versions-in-Plesk. If you expect to host anything in 3.1, you need an alternative solution.

不过,还有其他地方可以以优惠的价格托管ASP.NET Core 3.1应用程序。例如,AspHostPortal似乎有很多不错的交易,并且由Microsoft推荐。
https://asphostportal.com/Windows-Shared-Hosting-Plans。 aspx

There are other places to host ASP.NET Core 3.1 applications for a decent price, however. For example, AspHostPortal seems to have a lot of good deals and is recommended by Microsoft. https://asphostportal.com/Windows-Shared-Hosting-Plans.aspx

您也可以使用Azure,尽管如果想要SSL可能会变得昂贵。

You can also use Azure, although that can get expensive if you want SSL.

如果您仍在寻找替代方案解决方案,以下是一些有用的资源。

If you are still looking for alternative solutions, here are some resources that might be helpful.

类似的Reddit问题:> https://www.reddit.com/r/dotnet/comments/hbspf7/hosting_aspnet_31_on_godaddy/

A similar Reddit question: https://www.reddit.com/r/dotnet/comments/hbspf7/hosting_aspnet_31_on_godaddy/

具有多个选项的教程:
https://dottutorials.net/最佳快速廉价的Windows主机ASP.NET核心/

A tutorial with several options: https://dottutorials.net/best-fast-cheap-windows-hosting-asp-net-core/

这篇关于.net core 3.1无法在Plesk独立的主机上运行,​​出现错误:500-内部服务器错误& HTTP错误502.5-进程失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆