If I use newly introduced InProcess hosting model in ASP.NET Core 2.2 as follows:
InProcess
ASP.NET Core 2.2
Try to upgrade .Net Core version. This issue seems to be fixed in 2.2.3 .