Aspnet5 vNext (rc1) iis 8 - bad gateway 502.3

I understand that such messages exist, I read / re-read and still have problems. Most of them are old or not directly related, and so I thought I would reinstall / the current example.

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

Relevant Information:

  • dnx 1.0.0-rc1-final clr (x64)
  • Installed / Verified IIS HttpPlatformHandler 1.2 (v1.2.1959)
  • IIS - pool / site setting "No managed code"
  • On the server itself, I can get the site if I ran "kestrel.cmd" (generated via dnu publish) directly, from the command line and moved 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" ] } } 
  • Web.config generated after publishing dnu:
 <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> 

Your help is greatly appreciated.

+5
source share
1 answer

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

I turned Windows features on or off and turned on IIS.

I cleaned and rebuilt the solution, and it ran like a charm.

Hope this helps you too.

0
source

Source: https://habr.com/ru/post/1237432/


All Articles