troubleshooting Question

Self Hosting a dotnet core 2.1 api as a application instead of using IIS.

Avatar of LIBRALEX
LIBRALEXFlag for South Africa asked on
.NET Programming.NET MVCMicrosoft Visual Studio
6 Comments1 Solution164 ViewsLast Modified:
I have built a simple api in dotnet core 2.1, using the following example:  ("")

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 is currently unable to handle this request.

I tried following this guide: "" 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.
Chinmay Patel
Chief Technology Ninja
Join our community to see this answer!
Unlock 1 Answer and 6 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 6 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros