admin管理员组文章数量:1430711
I'm trying to deploy website made using ASP.NET Core 8.0. I created a fresh ASP.NET Core Web Api project via VS, published and then uploaded it to / and I'm getting this error:
HTTP Error 500.31 - Failed to load ASP.NET Core runtime Common solutions to this issue: The specified version of Microsoft.NetCore.App or Microsoft.AspNetCore.App was not found. Troubleshooting steps: Check the system event log for error messages Enable logging the application process' stdout messages Attach a debugger to the application process and inspect
What's the problem? I'm following YouTube tutorials and they also not helping.
I'm trying to deploy website made using ASP.NET Core 8.0. I created a fresh ASP.NET Core Web Api project via VS, published and then uploaded it to https://freeasphosting/ and I'm getting this error:
HTTP Error 500.31 - Failed to load ASP.NET Core runtime Common solutions to this issue: The specified version of Microsoft.NetCore.App or Microsoft.AspNetCore.App was not found. Troubleshooting steps: Check the system event log for error messages Enable logging the application process' stdout messages Attach a debugger to the application process and inspect
What's the problem? I'm following YouTube tutorials and they also not helping.
Share Improve this question edited Nov 19, 2024 at 20:58 marc_s 757k184 gold badges1.4k silver badges1.5k bronze badges asked Nov 19, 2024 at 12:57 stara chwesiuka stara chwesiuka 113 bronze badges 4- The error suggests the hoster or at least the settings you used on the hosted site don't support .NET 8. You'll have to check their docs or contact support to find out how to create a site with .NET 8. That's not a setting you can control from code or your project – Panagiotis Kanavos Commented Nov 19, 2024 at 13:02
- It's quite possible the hoster hasn't bothered upgrading. The huge number of irrelevant ads suggests that hoster doesn't really bother. Hosters make money by selling hosting plans, not by serving ads. You should think very, very hard if you really want to deal with them. You can deploy to Azure or AWS using a free tier instead – Panagiotis Kanavos Commented Nov 19, 2024 at 13:06
- 1 Any reason to assume they support .Net 8.0? The website landing page says "Our ASP.NET Hosting service includes Free ASP.NET Core Hosting with MS SQL database support, .NET 7, .NET 6.0, .NET Core 3.1, .NET Framework 4.8". – Daniel Manta Commented Nov 19, 2024 at 13:13
- Do they support 8? Please confirm with them first. From error message, it seems that 8 hasn't been setup on the server. If they don't offer it, you may take a look at Asphostportal, I'm using these guys, pretty cheap. – TheGunners Commented Nov 20, 2024 at 4:35
1 Answer
Reset to default 0The specified version of Microsoft.NetCore.App or Microsoft.AspNetCore.App was not found.
The error is clear, the hosting server doesn't install in the .NET 8 runtime and Hosting Bundle.
From freeasphosting website, we can see at present they are not supported hosting .NET 8 application.
So, you can contact the freeasphosting, and suggest them to add .NET 8 supported or you can host the application on another server, such as Azure App Service.
Besides, you can also consider downgrade the application to .NET 7 (refer to this article: Migrate from ASP.NET Core in .NET 7 to .NET 8), then host on freeasphosting.
本文标签: cASPNET Core 80 web app deployment via httpsfreeasphostingnetStack Overflow
版权声明:本文标题:c# - ASP.NET Core 8.0 web app deployment via https:freeasphosting.net - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745560931a2663469.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论