Search code examples
asp.netiisasp.net-core-2.0iis-10

I get a Not found error when I deploy ASP.NET CORE 2.0 WebApi to IIS under Default Website


enter image description hereenter image description hereScrrenshot of my IIS

It works well with the label "2" outside of default website but it does run inside the default website


Solution

  • Try the following...

    Install the hosting bundle again, and then publish from Visual Studio again.

    If that doesn’t fix it, go to the publish output folder and run dotnet run <YourWebDll>.DLL