5

このような投稿が存在することに気付きました。読んだ/再読しましたが、まだ問題があります。ほとんどは古いか、直接関係がないため、現在の例で再投稿すると思いました。

win server 2012 R2 の IIS 8.5 以降で実行されている基本的なサイトを取得しようとしています。この時点で、「502.3 - Bad Gateway」 (エラー コード 80070002、モジュール httpPlatformHandler、通知 executeRequestHandler、ハンドラー httpplatformhandler) でスタックしています。

関連情報:

  • dnx 1.0.0-rc1-final clr (x64)
  • IIS - インストール済み/検証済み HttpPlatformHandler 1.2 がインストールされている (v1.2.1959)
  • IIS - 「マネージ コードなし」のプール/サイトをセットアップする
  • コマンドラインから「kestrel.cmd」(dnu publish経由で生成)を直接実行し、サイトに移動すると、サーバー自体でサイトを表示できます。
    • Project.json:
{
  "version": "1.0.0-*",
  "dependencies": {
    "Microsoft.AspNet.Server.Kestrel": "1.0.0-rc1-final",
    "Microsoft.AspNet.IISPlatformHandler": "1.0.0-rc1-final",
    "Microsoft.AspNet.StaticFiles": "1.0.0-rc1-final"
  },
  "commands": {
    "kestrel": "Microsoft.AspNet.Server.Kestrel"
  },
  "frameworks": {
    "dnx451": {}
  },
  "publishExclude": [
    "node_modules",
    "bower_components",
    "**.xproj",
    "**.user",
    "**.vspscc"
  ],
  "exclude": [
    "www",
    "node_modules",
    "bower_components"
  ],
  "scripts": {
    "prepublish": [
      "npm install",
      "bower install"
    ]
  }
}
  • dnu パブリッシュ後に生成された Web.config:
<configuration>
  <system.webServer>
    <handlers>
      <add name="httpplatformhandler" path="*" verb="*" modules="httpPlatformHandler" resourceType="Unspecified" />
    </handlers>
    <httpPlatform processPath="approot\kestrel.cmd" arguments="" stdoutLogEnabled="true" stdoutLogFile="logs\stdout.log" forwardWindowsAuthToken="false" startupTimeLimit="3600"></httpPlatform>
  </system.webServer>
</configuration>

あなたの助けに感謝します。

4

1 に答える 1