[英]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(托管)中的文件树,也许它与此有关。
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.