首页 > 解决方案 > 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,但仍然没有成功。

我也尝试过直通身份验证和特定用户,但结果相同(不成功)

请给我一些建议。我将非常感激。

标签: asp.netiisweb-confighostingserver-error

解决方案


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.Netfeature in the windows features.
enter image description here
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.


推荐阅读