I installed .NET Core version 2.1.3 for my new computer running Windows Server 2016. I hosted it in IIS 10. But it gave me Error 502:
HTTP Error 502.5 - Process Failure
Common causes of this issue: The application process failed to start The application process started but then stopped The application process started but failed to listen on the configured port
This is my snippet for web.config
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.webServer>
<handlers>
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified" />
</handlers>
<aspNetCore processPath="dotnet" arguments=".\WebApplication1.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" />
</system.webServer>
</configuration>