I have a simple .NET 7 REST API service that only contains the default WeatherForecastController. This controller is automatically generated when creating a new project. That's it. I intentionally kept it simple without any databases or other stuff. I compiled it using the "self-contained, linux x-64" options and successfully ran it on my local Linux distribution (Ubuntu).
However, when attempting to run the app on a shared hosting plan (such as Bluehost or Ionos), I encountered an error message: "Failed to create CoreCLR, HRESULT: 0x8007000E." Although both hosts have free memory available, it seems to be a memory issue.
For instance, I purchased a plan with ample RAM(20giga) and SSD(500giga) on Ionos, but the problem persists. I also have granted read, write, and execute permissions to all files.
Any idea?