I just downloaded and installed both the Core 2.2 SDK and the Core 2.2 Runtime. I also updated my version of Visual Studio 17 to the latest version.
To test 2.2, I created a simple ASP.NET Core website and, without changing anything, when I run the application I get the 502.5 error. The same thing happened on a similar setup on my notebook.
I would think that out-of-the box, this should work so I'm thinking something else is going on here. If I create a Core 2.1 application it is fine.
Any suggestions? The given link on the error page seems to cover this generically.