【发布时间】:2019-06-11 19:53:45
【问题描述】:
1- 在 Visual Studio 2019 和 .net core 2.2 上,创建了一个默认 Web 应用程序,并且没有更改我的项目中的任何内容,只需发布它即可。
2- 从this link 安装相同版本的运行时并将发布文件夹放在 IIS(Windows 10 X64 企业版)的端口 5000 上。
3- 在 IIS 上将 CLR 版本更改为“无托管代码”并浏览网站,但我收到以下错误消息:
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 \\? \C:\WebApplication1\WebApplication1\bin\Release\netcoreapp2.2\publish\web.config
Requested URL http://localhost:5000/
Physical Path
Logon Method Not yet determined
Logon User Not yet determined
在this link上查找此错误代码“错误代码0x8007000d”后,我不知道是什么问题。 我应该设置一个配置还是什么?
编辑: 此应用程序在 Visual Studio 上运行良好
【问题讨论】:
标签: c# .net asp.net-mvc .net-core