I Install .NET core version 2.1.3 for my new computer run window server 2016 OS. I hosted in IIS 10. But it have Error 502
HTTP Error 502.5 - Process Failure
Co
Alternatively, For anyone who still struggling with .net core on IIS while running nuget package Microsoft.Aspnetcore.all 2.1.3, i will recommend to update the version to 'Latest Stable 2.1.301' as Microsoft has released the fix
Other version with IIS issue is Microsoft.Aspnetcore.all 2.0.8 either upgrade to 'Latest Stable 2.1.301' or downgrade to 2.0.7.
No code or .csproj needed for changing needed.
Ensure the following:
The is a situation that if you use:
Env: Windows Server OS, .NET Core Hosting Bundle(including runtime), IIS, Asp.Net.Core
You could add a element as follows into {YourProject}.csproj file:
<PropertyGroup>
<PublishWithAspNetCoreTargetManifest>false</PublishWithAspNetCoreTargetManifest>
</PropertyGroup>
Ref: https://github.com/dotnet/coreclr/issues/13542