I have built a simple api in dotnet core 2.1, using the following example: ("https://www.codingame.com/playgrounds/35462/creating-web-api-in-asp-net-core-2-0/part-1---web-api
I am in the process of trying to build and host this api on my local machine. I have published it, created a new website in IIS, with an application pool, coppied the files over, etc. When I try to run it locally on my chrome, I get "This page isn’t working 192.168.1.110 is currently unable to handle this request.
HTTP ERROR 500"
I tried following this guide: "https://www.c-sharpcorner.com/article/publish-asp-net-core-2-0-application-on-iis/
" but to no help.
When I run this example in visual studio, it works fine. Am I missing something in the publishing steps or config file that is causing this to happen?
As a side note, I have also installed the .net core hosting package, etc.