HTTP 错误 500.19 - 内部服务器错误 web config .net core web api [英] HTTP Error 500.19 - Internal Server Error web config .net core web api

查看:39
本文介绍了HTTP 错误 500.19 - 内部服务器错误 web config .net core web api的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

详细错误信息:

模块:IIS 网络核心

Module: IIS Web Core

通知:开始请求

处理程序:尚未确定

错误代码:0x8007000d

Error Code: 0x8007000d

配置错误:

配置文件:

\?\C:\inetpub\wwwroot\webapi\web.config

\?\C:\inetpub\wwwroot\webapi\web.config

你能帮我吗?

推荐答案

我遇到了同样的错误,但不同的修复方法以防它对某人有所帮助.我确定我已经在服务器上安装了 .NET Core Runtime.原来它并不存在.它未安装的另一个迹象是,在 IIS 管理器中,在机器节点上,模块面板没有注册 AspNetCoreModule(并且在 \System32\inetsrv 中确实没有 aspnetcore.dll).安装 .NET Core Runtime 并重新启动 IIS 后,应用程序就可以运行了.

I had this same error, but different fix in case it helps someone. I thought sure that I had installed the .NET Core Runtime on the server. Turns out it wasn't actually there. Another sign that it's not installed is that in IIS Administrator, at the machine node, the Modules panel does not have the AspNetCoreModule registered (and indeed there was no aspnetcore.dll at \System32\inetsrv). Once I installed the .NET Core Runtime and restarted IIS, the application worked.

另一个提示:安装 .NET Core SDK 不会安装运行时组件,包括 IIS 托管.您必须专门安装运行时才能支持 IIS 上的应用.

Another tip: installing the .NET Core SDK does not install the runtime components, including for IIS hosting. You must install specifically the Runtime to support apps on IIS.

这篇关于HTTP 错误 500.19 - 内部服务器错误 web config .net core web api的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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