I've built many apps using .NET Core 5 and never had any problem publishing them on any hosting company.
This last project I've started with .NET Core 6 and now it seems it's impossible to make it run.
I've had similar problems before, but we could solve them just by changing the hosting model from "inprocess" to "outofprocess" or the modules from "AspNetCoreModuleV2" to "AspNetCoreModule" in the web.config, but now none of these changes seem to make a difference.
If I publish the web.config with AspNetCoreModuleV2 and InProcess I get
HTTP Error 500.38 - Failed to locate ASP.NET Core app
If I just change the hosting model to OutOfProcess I get
HTTP ERROR 503
And if I remove the V2 from the AspNetCoreModule and leave the hosting method as InProcess or OutOfProcess I get
HTTP Error 502.5 - Process Failure
According to my hosting company the server is compatible to .NET Core 6 and I don't have direct access to IIS. Is there anything I could try to solve this or to at the least discover what the problem is?
Thanks in advance.
Edit: grammar