How do I configure a .net core API to work in IIS?

First of all, you need to install ASP.NET Core Module in web server.
Here is the download link.

Then install either SDK or Runtime in web server.

Trouble Shooting

If it still doesn’t work, open a command prompt. Navigate to the web application folder and type dotnet YOUR_APP.dll. You should see something like this –

C:\APIs> dotnet YOUR_APP.dll
Hosting environment: Production
Content root path: C:\APIs
Now listening on: http://localhost:5000
Application started: Press Ctrl+C to shut down.

It means your application can run in the web server without IIS. Then you need to trouble shoot in IIS or some other things.

Leave a Comment