ASP.NET 5 on windows 2008 HttpPlatformHandler 错误
ASP.NET 5 on windows 2008 HttpPlatformHandler error
我可以连接到 IIS 默认网站,但无法从我的自定义 site.It 上的 ASP.NET 5(rc1) 应用程序获得响应windows2008server.ThereIIS日志中没有连接日志
有什么想法吗?
更新
几个小时后。我懂了
我在事件日志中发现错误
以及 IISIntegration 上的相关讨论。现在还在寻找解决方案
更新您的 2008 服务器(我不记得来源 link)
发现问题的方法:
在您的发布文件夹 wwwroot 中有一个 web.config。将 stdoutLogEnabled
更改为 true,您可以登录 stdoutLogFile="..\logs\stdout.log".
<configuration>
<system.webServer>
<handlers>
<add name="httpplatformhandler" path="*" verb="*" modules="httpPlatformHandler" resourceType="Unspecified" />
</handlers>
<httpPlatform processPath="..\approot\web.cmd" arguments="" stdoutLogEnabled="true" stdoutLogFile="..\logs\stdout.log" startupTimeLimit="3600" ></httpPlatform>
</system.webServer>
</configuration>
在 approot 文件夹中有一个 web.cmd 运行 它并检查发生了什么
你需要知道:
In beta8 and rc1 ASP.NET Core Applications hosted in IIS employed a native IIS module, HttpPlatformHandler v1.2, to forward requests to the ASP.NET Core Kestrel Server.
https://github.com/aspnet/IISIntegration/issues/79
我可以连接到 IIS 默认网站,但无法从我的自定义 site.It 上的 ASP.NET 5(rc1) 应用程序获得响应windows2008server.ThereIIS日志中没有连接日志
有什么想法吗?
更新
几个小时后。我懂了
我在事件日志中发现错误
以及 IISIntegration 上的相关讨论。现在还在寻找解决方案
更新您的 2008 服务器(我不记得来源 link)
发现问题的方法:
在您的发布文件夹 wwwroot 中有一个 web.config。将 stdoutLogEnabled
更改为 true,您可以登录 stdoutLogFile="..\logs\stdout.log".
<configuration>
<system.webServer>
<handlers>
<add name="httpplatformhandler" path="*" verb="*" modules="httpPlatformHandler" resourceType="Unspecified" />
</handlers>
<httpPlatform processPath="..\approot\web.cmd" arguments="" stdoutLogEnabled="true" stdoutLogFile="..\logs\stdout.log" startupTimeLimit="3600" ></httpPlatform>
</system.webServer>
</configuration>
在 approot 文件夹中有一个 web.cmd 运行 它并检查发生了什么
你需要知道:
In beta8 and rc1 ASP.NET Core Applications hosted in IIS employed a native IIS module, HttpPlatformHandler v1.2, to forward requests to the ASP.NET Core Kestrel Server. https://github.com/aspnet/IISIntegration/issues/79