Windows Server 2016的.NET Core 2.1.3中的HTTP错误502.5 [英] HTTP Error 502.5 in .NET core 2.1.3 on window server 2016

查看:271
本文介绍了Windows Server 2016的.NET Core 2.1.3中的HTTP错误502.5的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我为新计算机运行的Windows Server 2016 OS安装.NET Core 2.1.3版.我托管在IIS 10中.但是出现错误502

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

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

这是我的web.config代码段

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>

推荐答案

确保满足以下条件:

  1. .net核心托管捆绑包安装在托管服务器上-
  2. 确保应用程序池标识"用户对已发布的文件夹具有读取权限. 有关详细信息,请检查: https ://docs.microsoft.com/zh-cn/aspnet/core/host-and-deploy/iis/?view = aspnetcore-2.0
  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

这篇关于Windows Server 2016的.NET Core 2.1.3中的HTTP错误502.5的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆