HTTP Error 502.5 in .NET core 2.1.3 on window server 2016

前端 未结 3 1928
独厮守ぢ
独厮守ぢ 2021-01-23 02:27

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         


        
相关标签:
3条回答
  • 2021-01-23 03:02

    Ensure the following:

    1. .NET Core Hosting Bundle installed on the hosting server - download from here
    2. Application Pool .NET CLR version set to "No Managed Code"
    3. Ensure that the Application Pool Identity user has read permissions on the published folder. For details check: https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/iis/?view=aspnetcore-2.0
    0 讨论(0)
  • 2021-01-23 03:14

    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.

    0 讨论(0)
  • 2021-01-23 03:27

    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

    0 讨论(0)
提交回复
热议问题