Instructions for implementing a simple .Net 8 application on IIS

Empleador
no avatar
MM
Descripción

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

Publicado
el 2024-11-26

Ofertas enviadas (3)

Presupuesto
Negociable
Derechos de autor
-
Válido por
30 días

Trabajos recientes desde categoría