asp.net - HTTP 500.19 - 内部服务器错误。没有任何配置错误
问题描述
我正在尝试在 iis 上托管一个 asp.net mvc web 应用程序,但出现此错误
现在的问题是它在 Config Error: 部分没有任何错误。我已授予 IIS_IUSERS 文件夹的权限,但仍然没有成功。我几乎有我在互联网上遇到的所有解决方案,但没有什么能解决我的问题。我的配置文件是这个
<configuration>
<system.webServer>
<handlers>
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified" />
</handlers>
<aspNetCore processPath="dotnet" arguments=".\CECDashboard.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" forwardWindowsAuthToken="false">
<environmentVariables />
</aspNetCore>
</system.webServer>
</configuration>
我还尝试将 DefaultAppPool .NET CLR 从 v4.0.30319 更改为 v2.0.50727,但仍然没有成功。
我也尝试过直通身份验证和特定用户,但结果相同(不成功)
请给我一些建议。我将非常感激。
解决方案
It seems that this is not an Asp.Net Core
application, just Asp.net framework MVC
application.
Asp.Net application requires certain windows feature to run it. please enable the Asp.Net
feature in the windows features.
If the web application is indeed a DotNet Core MVC
application, please consider installing Asp.net Core Hosting Bundle, which includes the DotNet Core Runtime
and IIS
support.
https://dotnet.microsoft.com/download/dotnet-core/current/runtime
Feel free to let me know if the problem still exists.
推荐阅读
- json - 将多个以换行符分隔的 JSON 文件的文件夹连接到单个文件中
- java - 如何从字符串(月份和年份)获取下个月和上个月
- google-sheets - 从查询结果谷歌表中替换#N/A
- html - 如何使用 v-if 删除新行
- python - 如何让代码更短更高效?
- python - 表之间的条件/过滤器 - 熊猫方式
- telerik-mvc - 用于 Asp.Net MVC 的 Telerik UI 无法在可排序中编辑输入项
- powershell - 当数据集很大时,为什么 SSIS(通过 Powershell)删除“.csv”和后续的“.zip”文件,而不是只删除“.csv”?
- google-apps-script - 无法将线条更改为条形 - 图表 - Google 脚本
- ruby-on-rails - Ruby on rails GRPC 无法连接到所有地址