windows server 2016 HTTP Error 500.19 – Internal Server 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:\www\web.config

Requested URL
http://localhost:80/

Physical Path

Logon Method
Not yet determined

Logon User
Not yet determined
Config Source:
-1:
0:
More Information:
This error occurs when there is a problem reading the configuration file for the Web server or Web application. In some cases, the event logs may contain more information about what caused this error.
View more information »
HTTP 错误 500.19 - Internal Server Error

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

详细错误信息:

模块
IIS Web Core

通知
BeginRequest

处理程序
尚未确定

错误代码
0x80070021

配置错误
不能在此路径中使用此配置节。如果在父级别上锁定了该节,便会出现这种情况。锁定是默认设置的(overrideModeDefault="Deny"),或者是通过包含 overrideMode="Deny" 或旧有的 allowOverride="false" 的位置标记明确设置的。

配置文件
\\?\C:\inetpub\wwwroot\demo_netcoreapp2.0\netcoreapp2.0\publish\web.config

请求的 URL
http://localhost:80/

物理路径
C:\inetpub\wwwroot\demo_netcoreapp2.0\netcoreapp2.0\publish

登录方法
尚未确定

登录用户
尚未确定
配置源:
4: <system.webServer>
5: <handlers>
6: <add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified" />

把iis添加删除功能中应用开发.net 3.5和4.5启用了。

 

解决办法:

原因为没有安装应用程序扩展isapi,大家根据需要添加相应的扩展

安装完扩展记得重启IIS,如果还提示错误,根据情况重新安装dotnet core主机应用程序(如:dotnet-hosting-2.2.5-win.exe,我是卸载了重新安装了就正常了。)

 

 

声明:本站内容来源于原创和互联网,尊重作者版权,转载请注明来源网址,欢迎收藏,谢谢!