Я понимаю, что подобные сообщения существуют, я читал/перечитывал, и у меня все еще есть проблемы. Большинство из них старые или не имеют прямого отношения, поэтому я решил повторно опубликовать текущий пример.
Попытка запустить базовый сайт в IIS 8.5+ на win server 2012 R2. На данный момент я застрял на "502.3 - Bad Gateway" (код ошибки 80070002, модуль httpPlatformHandler, уведомление executeRequestHandler, обработчик httpplatformhandler)
Соответствующая информация:
- dnx 1.0.0-rc1-final clr (x64)
- IIS - установлен/проверен HttpPlatformHandler 1.2 установлен (v1.2.1959)
- IIS — настройка пула/сайта «без управляемого кода»
- 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"
]
}
}
- Web.config, сгенерированный после публикации 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>
Ваша помощь очень ценится.
wwwroot
иapproot
.Physical Path
в IIS должен указывать на каталогwwwroot
, который содержитweb.config
. В этом случаеprocessPath
вhttpPlatform
должно быть..\approot\kestrel.cmd
. - person qbik   schedule 07.12.2015