I have a web project written in .NET 5. When I upload the project to my own server, I get the following error. I tried different solutions for the error but none of them worked. I enabled stdout logging in the Web Config file, but although there are stdout files, there is no text in it.But im also
I can connect to the server and run the project with the dotnet command. but I can't run it on the site.
In the screenshots below; you can find the error, NET versions installed on my server, my publish settings and webconfig file.
My Server: Windows Server 2019 x64 IIS Versiyon : 10 Project Target Framework : net5.0
My Webconfig file
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<location path="." inheritInChildApplications="false">
<system.webServer>
<handlers>
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified" />
</handlers>
<aspNetCore processPath="dotnet" arguments=".\ApplicationName.dll" stdoutLogEnabled="true" stdoutLogFile=".\logs\stdout" />
</system.webServer>
</location>
<system.webServer>
<httpErrors errorMode="Detailed" />
<asp scriptErrorSentToBrowser="true"/>
</system.webServer>
<system.web>
<customErrors mode="off"/>
<compilation debug="true"/>
</system.web>
</configuration>
Dotnet Runtimes List:
Project Publish Settings



