Recently, the company has been using .net core projects, but it has always been a single release, so it has not paid attention to this problem. However, if it is always a single release, it will waste resources. Therefore, it wants to release two .net core on the same service. project.
1. If the service itself is a .net core project, you don’t need to consider other things. You only need to set <AspNetCoreHostingModel>OutOfProcess</AspNetCoreHostingModel> in the corresponding .csproj file to change the self-hosting of .net core to external hosting.
2. If the service itself is a .net freamwork project, it should be set in the published configuration options
Then set <AspNetCoreHostingModel>OutOfProcess</AspNetCoreHostingModel> in the corresponding .csproj file to change the self-hosting of .net core to external hosting.
My service belongs to the second type. Because I have never had any contact with it before, I never know the cause. I have been receiving the error 500.35 - acm multiple in-process applications in same process. It has been solved now. I will record it here. , hoping to help those in need. Learn together and make progress together.