When deploying an ASP.NET Core application to IIS, you may find IIS returning HTTP Error 502.5 instead of your web page.
I recently hit this problem after manually modifying the
web.config file. Fortunately, the problem is easy to fix.
In this post, we see what needs to be in
web.config for ASP.NET Core, explain why the error occurs, and show how to …