【发布时间】: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 核心模块? go.microsoft.com/fwlink/?LinkId=817246
标签: asp.net iis asp.net-core application-pool http-error