I' v decided to upgrade a project from .net5 to .net6. After upgrade when I publish and then deploy through CI/CD server (a GitLab runner) that contains .net6 runtime, the production server that installed windows server 2019 datacenter couldn't run the project and aborts at startup with "Failed to create CoreCLR, HRESULT: 0x80004005".
I read these issues https://github.com/dotnet/runtime/issues/3168 , https://github.com/dotnet/runtime/issues/70758 but I couldn't find useful guide. Also I opened a new issue.
But when I publish on my pc that contains .net6 runtime too, then copy to the same machine(windows server), application runs without any error. In next step I want to reinstall .NET runtime on ci/cd server maybe this could fix problem and I can publish through CI/CD server too.