0

我可以连接到 IIS 默认网站,但无法从我的自定义网站获得响应。它是Windows 2008服务器上的ASP.NET 5(rc1)应用程序。IIS 日志中没有连接日志。

在此处输入图像描述

任何想法?

几个小时后更新。我懂了 在此处输入图像描述

我在事件日志中发现错误

在此处输入图像描述

以及有关IISIntegration的相关讨论。现在还在寻找解决方案

4

1 回答 1

0

更新您的 2008 服务器(我不记得源链接)

查找问题的方法: 在您的发布文件夹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 运行它并检查会发生什么

你需要知道:

在 IIS 中托管的 beta8 和 rc1 ASP.NET Core 应用程序使用本机 IIS 模块 HttpPlatformHandler v1.2 将请求转发到 ASP.NET Core Kestrel 服务器。 https://github.com/aspnet/IISIntegration/issues/79

于 2016-05-10T01:55:32.647 回答