http - Web 应用程序 IIS 错误 HTTP 500.19
问题描述
我想在 IIS 上托管我的 Web 应用程序。但我总是得到一个错误。HTTP 500.19 - 内部服务器错误代码:0x8007000d 它说配置文件不好(在我的情况下是 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=".\ServerApplication.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" />
</system.webServer>
</configuration>
<!--ProjectGuid: b5218e98-989b-4275-96f0-53c91a5f235a-->
解决方案
这是一个 ASP.NET Core 应用程序,因此在安装 .NET Core Windows Server Hosting 后一切正常
推荐阅读
- python - 在 Anaconda 环境中运行的 Windows 服务?
- c - 检查两个系统之间的 (USB) 连接中的位错误(对于游戏)
- google-apps-script - Google Script - 设置 VAxis 最小值和最大值的问题
- python - Print.format() 函数在 Python 中不起作用
- perl - 如何在 Perl 中读取页面时摆脱 HTTP 302 状态代码?
- express - EXPRESS (dml) 和 PASCAL
- javascript - 让资源管理器中的声明?
- ubuntu - Can apt-get autoremove remove system files?
- c - 线程中的动态分配和释放
- ios - MTKView - 一次绘制两个视图