aspnet5 vNext(rc1)iis 8-错误的网关502.3 [英] aspnet5 vNext (rc1) iis 8 - bad gateway 502.3

查看:115
本文介绍了aspnet5 vNext(rc1)iis 8-错误的网关502.3的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我意识到存在这样的帖子,我已经阅读/重新阅读并且仍然遇到问题.大多数都是旧的或没有直接关系的,所以我想我重新发布一个最新的例子.

I realize posts like this exist, I've read/re-read and am still having issues. Most are old or not directly related and so I thought I'd re-post w/a current example.

试图在Win Server 2012 R2上的IIS 8.5+中运行一个基本站点.此时,我被困在" 502.3-错误的网关"(错误代码80070002,模块httpPlatformHandler,通知executeRequestHandler,处理程序httpplatformhandler)

Trying to get a basic site running in IIS 8.5+ on win server 2012 R2. At this point I'm stuck at "502.3 - Bad Gateway" (error code 80070002, module httpPlatformHandler, notification executeRequestHandler, handler httpplatformhandler)

相关信息:

  • dnx 1.0.0-rc1-final clr(x64)
  • IIS-已安装/已验证的HttpPlatformHandler 1.2已安装(v1.2.1959)
  • IIS-设置无托管代码"池/站点
  • 如果直接从命令行运行"kestrel.cmd"(通过dnu publish生成),则可以在服务器本身上显示该站点,然后导航到该站点.
    • Project.json:
  • dnx 1.0.0-rc1-final clr (x64)
  • IIS - installed/verified HttpPlatformHandler 1.2 is installed (v1.2.1959)
  • IIS - setup a "No Managed Code" pool/site
  • On the server itself I can get the site to show up if i run the "kestrel.cmd" (generated via dnu publish) directly, from the command line and navigate to the site.
    • 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:
  • Web.config generated after dnu publish:

<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>

非常感谢您的帮助.

推荐答案

我遇到了同样的问题-IIS 8-错误的网关502.3.

I was getting the same issue - iis 8 - bad gateway 502.3.

我去打开或关闭Windows功能并启用了IIS.

I went to Turn Windows Features On or Off and enabled IIS.

我清洗并重建了解决方案,它的运行就像魅力一样.

I cleaned and rebuild the solution and it ran like a charm.

我希望它也会对您有所帮助.

I hope it helps you too.

这篇关于aspnet5 vNext(rc1)iis 8-错误的网关502.3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆