'ASP.NET Core 6 Minimal web API Deploy To IIS

I tried to deploy my web API of .NET 6 in IIS SERVER in windows machine. I have done all the necessary configurations:

  • Adding IIS_USERS Access to web.config
  • creating pool with no managed code
  • installing ASP.NET Core Module/Hosting Bundle
  • Install .NET 6 SDK

After doing all these steps, I get this:

No web page was found for the web address: http://localhost:5100/swagger/index.html.

When I compare it to ASP.NET core 3.1, I see that the minimal api doesn't generate a runtimes folder.

Anyone knows how to solve this problem?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source