Host ASP.NET Core 3.0 apps inside IIS

Corrado Cavalli
Corrado Cavalli
Published in
1 min readOct 23, 2019

When Kestrel works but IIS doesn’t

As I am moving more into the web development space i find myself struggling with issues that seasoned web developers can probably solve in seconds.

My problem was sneaky: A Web API project was running fine when using Kestrel server but it was failing when hosted inside IIS Express, and the most tricky part was that it was handling the first API invocation properly and others failing with a 404 response.
Restarting Visual Studio was making the first request working again and this confused me even more 😲

Long story short: As described here i was missing the installation of the .NET Core Hosting Bundle once installed the issue was gone.

--

--

Corrado Cavalli
Corrado Cavalli

Senior Sofware Engineer at Microsoft, former Xamarin/Microsoft MVP mad about technology. MTB & Ski mountaineering addicted.