【问题标题】:IIS HTTP Error 500: The requested Page cannot be accessed because related configuration data is invalid [duplicate]IIS HTTP错误500:无法访问请求的页面,因为相关配置数据无效[重复]
【发布时间】:2017-04-02 17:35:52
【问题描述】:

我已经在我的本地机器(Windows 10)上成功发布了一个 IIS(版本 10)上的 ASP.NET Core 网站并浏览了它。

但是,当我在另一台 PC 上的 IIS 上部署它(使用相同的版本)时,它会给出 HTTP 错误 500.19

我使用相同的Web.config 并且IIS_IUSRS 对虚拟目录和配置文件都有权限。我还将应用程序池“IIS AppPool/MyPool”的权限添加到虚拟目录。这是 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=".\IdentityServer.dll" stdoutLogEnabled="true" stdoutLogFile=".\logs\stdout" forwardWindowsAuthToken="false" />
  </system.webServer>
</configuration>

什么问题?

【问题讨论】:

标签: asp.net iis asp.net-core application-pool http-error


【解决方案1】:

它缺少 NET Core Windows Server Hosting 捆绑包,我从 web.config “AspNetCoreModule”中意识到了这一点。

你可以找到链接here

【讨论】:

  • 谢谢!!我花了好几个小时才找到最终奏效的解决方案。
  • 这到底是什么......官方文档中的任何地方都没有提到......
  • 谢谢。至少过了这个阶段的错误。
【解决方案2】:

您能否尝试授予 IIS 应用程序池用户访问网站目录的权限,有时如果文件为只读文件或 IIS 应用程序池用户权限不存在,则可能会弹出此错误。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-10-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多