A return code of 500 indicates a problem starting the application.
In the publish / project folder, try starting without IIS by typing:
dotnet yourapp.dll
It works? Not. You have problems in your project, and the result should lead to your problem.
If it works correctly: look at the βmodulesβ in IIS Manager, is there the following entry?

And one more possibility: your AppPoolIdentity-User has the corresponding access right to the publication folder.
And you "published"?
Kirsten
source share