IIS服务器和ASP.Net Core-500.19,httpplatformhandler标记上的错误代码0x8007000d [英] IIS Server & ASP.Net Core - 500.19 with error code 0x8007000d on httpplatformhandler tag

查看:460
本文介绍了IIS服务器和ASP.Net Core-500.19,httpplatformhandler标记上的错误代码0x8007000d的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试使用IIS Server v7.5启动ASP.Net Core应用程序时,出现以下错误...我已将网站(Visual Studio中的文件系统"选项)成功发布到特定目录.它可以从approot/web.cmd文件正常启动.但是,当我尝试将其连接到IIS服务器并将其指向wwwroot文件夹时,出现以下错误:

HTTP错误500.19-内部服务器错误

无法访问请求的页面,因为该页面的相关配置数据无效.

  • 详细的错误信息
  • 模块化IIS Web核心
  • 通知未知
  • 处理程序尚未确定
  • 错误代码0x8007000d
  • 配置错误
  • 配置文件\?\ D:\ WebDevelopment \ UAT \ creativeNamePROD \ wwwroot \ web.config
  • 请求的URL http://10.2.177.226:59/
  • 物理路径
  • 登录方式尚未确定
  • 尚未确定登录用户
  • 失败的请求跟踪日志目录

下面是两个不同的web.config文件,我尝试了两个都不起作用.当我尝试进入IIS中的配置编辑器"时,我也收到一个不清楚的错误.任何帮助将不胜感激!!!

<configuration>
<system.web>
  <httpRuntime maxQueryStringLength="64768" maxUrlLength="65536" />
</system.web>
<system.webServer>
<security>
  <requestFiltering>
    <requestLimits maxQueryString="64768" />
  </requestFiltering>
</security>
<handlers>
  <add name="httpplatformhandler" path="*" verb="*" modules="httpPlatformHandler" resourceType="Unspecified" />
</handlers>
<httpPlatform processPath="..\approot\web.cmd" arguments="" stdoutLogEnabled="false" stdoutLogFile="..\logs\stdout.log" startupTimeLimit="3600"></httpPlatform>
</system.webServer>
</configuration>

Web.config#2-遇到相同的错误

<configuration>
  <system.webServer>
    <handlers>
      <add name="httpplatformhandler" path="*" verb="*" modules="httpPlatformHandler" resourceType="Unspecified" />
    </handlers>
    <httpPlatform processPath="..\approot\web.cmd" arguments="" stdoutLogEnabled="false" stdoutLogFile="..\logs\stdout.log" startupTimeLimit="3600"></httpPlatform>
  </system.webServer>
</configuration>

解决方案

我遇到此错误.我通过安装.NET Core Windows Server 主机捆绑包 (相对于运行时捆绑包)来解决此错误,如此链接下载该捆绑包可安装程序./p>

安装该模块后,我的应用开始投放(即没有500错误).

我看到@Jørgen已经在OP上发表了此评论,因此他获得了赞誉.

编辑,请确认您通过@MDave

的注释安装了主机捆绑包运行时捆绑包.

您是否安装了.NET Core Windows Server Hosting捆绑软件? IIS需要使用它作为.net核心库的反向代理.您将在本文中找到链接:docs.microsoft.com/zh-cn/aspnet/core/publishing/iis在将其安装到我的开发机上之前,我遇到了同样的问题. –约尔根·特维特3月28日下午6:31

I am getting the following error when I try to launch my ASP.Net Core App using IIS Server v7.5 ... I published the website (File System option in Visual Studio) to a specific directory successfully. It launches fine from approot/web.cmd file. But when I try to hook it up to IIS Server and point it to the wwwroot folder, I get the following error:

HTTP Error 500.19 - Internal Server Error

The requested page cannot be accessed because the related configuration data for the page is invalid.

  • Detailed Error Information
  • Module IIS Web Core
  • Notification Unknown
  • Handler Not yet determined
  • Error Code 0x8007000d
  • Config Error
  • Config File \?\D:\WebDevelopment\UAT\creativeNamePROD\wwwroot\web.config
  • Requested URL http://10.2.177.226:59/
  • Physical Path
  • Logon Method Not yet determined
  • Logon User Not yet determined
  • Failed Request Tracing Log Directory

Below are two different web.config files I tried any neither one worked. When I try to get into Configuration Editor within IIS, I get an unclear error as well. Any help would be greatly appreciated!!!

<configuration>
<system.web>
  <httpRuntime maxQueryStringLength="64768" maxUrlLength="65536" />
</system.web>
<system.webServer>
<security>
  <requestFiltering>
    <requestLimits maxQueryString="64768" />
  </requestFiltering>
</security>
<handlers>
  <add name="httpplatformhandler" path="*" verb="*" modules="httpPlatformHandler" resourceType="Unspecified" />
</handlers>
<httpPlatform processPath="..\approot\web.cmd" arguments="" stdoutLogEnabled="false" stdoutLogFile="..\logs\stdout.log" startupTimeLimit="3600"></httpPlatform>
</system.webServer>
</configuration>

Web.config #2 -gets the same error

<configuration>
  <system.webServer>
    <handlers>
      <add name="httpplatformhandler" path="*" verb="*" modules="httpPlatformHandler" resourceType="Unspecified" />
    </handlers>
    <httpPlatform processPath="..\approot\web.cmd" arguments="" stdoutLogEnabled="false" stdoutLogFile="..\logs\stdout.log" startupTimeLimit="3600"></httpPlatform>
  </system.webServer>
</configuration>

解决方案

I was getting this error. I fixed this error by installing the .NET Core Windows Server Hosting bundle (vs the Runtime Bundle), as described in instructions like this one.

Install the .NET Core Hosting Bundle

Install the .NET Core Hosting Bundle on the hosting system. The bundle installs the .NET Core Runtime, .NET Core Library, and the ASP.NET Core Module. The module creates the reverse proxy between IIS and the Kestrel server. If the system doesn't have an Internet connection, obtain and install the Microsoft Visual C++ 2015 Redistributable before installing the .NET Core Hosting Bundle.

As @Patrick says you can download the bundle installables from this link.

After installing that Module, my app served (i.e. no 500 error).

I see @Jørgen made this comment on OP already, so he gets credit.

EDIT Please confirm you install the Hosting bundle vs the Runtime Bundle per comment by @MDave

Did you install the .NET Core Windows Server Hosting bundle? This is needed for IIS to work as a reverse proxy for the .net core libraries. You'll find the link in this article: docs.microsoft.com/en-us/aspnet/core/publishing/iis I had the same problem before installing this on my dev machine. – Jørgen Tvedt Mar 28 at 6:31

这篇关于IIS服务器和ASP.Net Core-500.19,httpplatformhandler标记上的错误代码0x8007000d的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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