简体   繁体   English

使用我的 .net 核心 webapi 在 plesk(托管)上出现错误 500,但在测试(本地主机)中运行良好,请帮助我

[英]error 500 on plesk(hosting) with my .net core webapi but work good in test (localhost) help me pleaaase

I have written an ASP.NET Core Web API, and published it on my plesk (hosting) web server, but it is not working - it is working in my test environment (localhost).我写了一个 ASP.NET Core Web API,并在我的 plesk(托管)web 服务器上发布了它,但它工作 - 它在我的测试环境(localhost)中工作。

Important to know that my plesk (hosting) server use the version 4.8 of the .NET Framework and my API uses .NET Core 6;重要的是要知道我的 plesk(托管)服务器使用 .NET 框架的 4.8 版,而我的 API 使用 .NET Core 6; is that the reason it doesn't work?这是它不起作用的原因吗? (I use the version 4.8 cause my web server host a website in webforms). (我使用 4.8 版,因为我的 web 服务器在 webforms 中托管了一个网站)。

Here's the url to access the api on the web that throws an error 500 (any call return that)这是 url 访问 web 上的 api 抛出错误 500(任何调用返回)

https://apinhl.nhldynastypool.com/NHLAHLStatsAndSalaryInfo 

In the screenshot below, I will post the file tree that I have in plesk (hosting) maybe it has something to do.在下面的屏幕截图中,我将发布我在 plesk(托管)中的文件树,也许它与此有关。

1个

2个

I have tried many thing but nothing seems to work I really need your help I do not have a clue what to do now it is the first time I try to deploy a web api and sorry for my bad English my main language is French:)我尝试了很多但似乎没有任何效果我真的需要你的帮助我不知道现在该怎么做这是我第一次尝试部署 web api 抱歉我的英语不好我的主要语言是法语:)

No cause i have to go to .net core 2.1 to work on .net framework 4.8 and all my code broke lol so i guess i have no other chpice to rewrote it in .net 4.8 framework in a webapp project没有原因我必须 go 到 .net 核心 2.1 才能在 .net 框架 4.8 上工作,我所有的代码都坏了,哈哈,所以我想我没有其他芯片可以在 webapp 项目的 .net 4.8 框架中重写它

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 ASP.NET Core托管-500个内部服务器错误 - ASP.NET Core hosting - 500 internal server error .NET CORE API 和 IIS (localhost) 内部服务器错误 500 - .NET CORE APIs and IIS (localhost) Internal server error 500 我的 ASP.NET Core WebAPI 项目中的 API 路由不起作用,返回 404 错误 - The API routing in my ASP.NET Core WebAPI project does not work, returns a 404 error 在 plesk cpanel 中托管 asp.net core 2.1 的问题? - problem with hosting asp.net core 2.1 in plesk cpanel? 为什么使用 React 前端将 Okta 身份验证/授权添加到 ASP.Net Core WebAPI 会引发 500 错误? - Why does adding Okta Authentication/Authorization to ASP.Net Core WebAPI with React frontend throw a 500 error? 在 IIS 中托管 ASP.Net Core MVC 应用程序时出现 HTTP 500 错误 - Get HTTP 500 error hosting ASP.Net Core MVC app in IIS ASP.NET Core RESTfull API托管-500内部服务器错误 - ASP.NET Core RESTfull API hosting - 500 internal server error ASP.NET 内核 2.2 Web API ZC31C335EF37283C451B18BA0DD317DE1。 托管服务提供商说 500 - 内部服务器错误 - ASP.NET Core 2.2 Web API Angular. Hosting provider says 500 - Internal server error localhost 当前无法处理此请求。 HTTP 错误 500 - 对于 asp.Net Core - localhost is currently unable to handle this request. HTTP ERROR 500 - For asp.Net Core asp .net core api 发布在 iis 原因(本地主机当前无法处理此请求。Z293C9ZEA246FF9985866F) - asp .net core api published on iis cause (localhost is currently unable to handle this request. HTTP ERROR 500)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM