Job description
I have a simple c# .Net 8.0 application (single cs file like in attachment, no MVC)
I have a Virtual Machine with a freshly installed Win server (2019 or 2022) and an IIS role installed.
I need instructions how to force IIS to run my application (on the default page) - just publishing to the folder and copying the files to c:\inetpub\wwwroot ends with an http error 500
The application without IIS (launched from an exe file or from dotnet <name>.dll ) works, but IIS does not want it.
Simplified source code (only single, test endpoint) - in the attachment