【问题标题】:Unable to open ASP.NET Core website's Module in IIS无法在 IIS 中打开 ASP.NET Core 网站的模块
【发布时间】:2017-08-16 19:27:59
【问题描述】:

我按照this 教程在Windows 10 上的IIS-10 中部署了ASP.NET Core 1.1.1 应用程序。但是当我尝试在IIS 中打开Modules 时,出现以下错误[要清晰查看,您可以点击图片放大]:

注意

  1. 是开发机,已经安装如下图:
  2. 该应用的应用池如下:

还有 Web.config 文件

<?xml version="1.0" encoding="utf-8"?>
<configuration>

  <!--
    Configure your application settings in appsettings.json. Learn more at http://go.microsoft.com/fwlink/?LinkId=786380
  -->

  <system.webServer>
    <handlers>
      <add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified"/>
    </handlers>
    <aspNetCore processPath="%LAUNCHER_PATH%" arguments="%LAUNCHER_ARGS%" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" forwardWindowsAuthToken="false"/>
  </system.webServer>
</configuration>

更新:问题可能与this 帖子有关

【问题讨论】:

  • 你能把它改成&lt;aspNetCore processPath="dotnet" arguments=".\YOUR_WEB_APP_NAMESPACE.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" /&gt;吗?

标签: iis asp.net-core iis-10


【解决方案1】:

事实证明,ASP.NET Core Module 是与 SDK 分开安装的,我需要安装 ASP.NET Core Module 才能解决上述问题,如post 中所述。感谢 @natemcmaster 帮助我解决问题。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-12-17
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-12-18
    相关资源
    最近更新 更多