lundi 1 novembre 2021

Web API returns 404 from IIS

I am getting a 404 from a .net core 5.0 web app that I have deployed to a newly set up windows server. I have installed the dotnet-hosting-5.0.11-win runtime libraries on the server and installed IIS with the following settings:

IIS Settings

When I browse to it from IIS I get a 404. I gave up on the initial project and started clean with a stripped down version from the VS2019 templates. Still got the 404 :

404 Error

Here is the project from VS2019 itself just to give you a clearer idea of what I am trying to install and run from the Windows server:

VS2019 project

Here are the publish options for the project:

Publish Options

Created a new website in IIS for this app. Here are the settings for that:

IIS Website Settings

Here are the app pool settings for the app:

App pool settings

Here is the web.config file for the app:

Web.Config

Enabled directory browsing based on other posts I read:

Here is a snapshot of the logs file on the server:

Server Log Files

Any help appreciated!




Aucun commentaire:

Enregistrer un commentaire