Instructions for implementing a simple .Net 8 application on IIS

Employer
no avatar
MM
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

Published
on 2024-11-26
Category

Offers sent (3)

Budget
Negotiable
Copyright
-
Expires in
30 days

Recent jobs from category