iis Windows 2008上的ASP.NET 5 HTTP平台处理程序错误

rqqzpn5f  于 2022-11-12  发布在  Windows
关注(0)|答案(1)|浏览(123)

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

你知道吗?

更新几个小时后。我得到了这个

我在事件日志中发现错误

还有一个关于IISIntegration的相关讨论。现在还在寻找解决方案

qyzbxkaa

qyzbxkaa1#

更新您的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,运行它并检查发生了什么
你需要知道:
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显示器

相关问题