为什么HttpPlatformHandler不会创建日志文件?

Chr*_*ber 9 c# asp.net iis asp.net-core

我无法再使用ASP.NET RC1和HttpPlatformHandler创建日志文件.

这是事件日志中的警告:

The description for Event ID 1004 from source HttpPlatformHandler cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.

If the event originated on another computer, the display information had to be saved with the event.

The following information was included with the event: 

Warning: Could not create stdoutLogFile , ErrorCode = -2147024843.
Run Code Online (Sandbox Code Playgroud)

相关软件版本:

  • Microsoft Http Platform Handler 1.2
  • Windows Server 2012 R12
  • ASP.NET 5 RC1应用程序.

我已经为stdoutLogFile参数尝试了各种值.我正在使用http://www.iis.net/learn/extensions/httpplatformhandler/httpplatformhandler-configuration-reference中的(差)文档.

我试过了:

  • ?\ C:\ TEMP\wtlogs\
  • C:\ TEMP\wtlogs \
  • 没有价值(尝试将其登录到wwwroot和approot旁边的网站的"logs"目录中)

web.config中:

<configuration>
  <system.webServer>
    <handlers>
      <add name="httpplatformhandler" path="*" verb="*" modules="httpPlatformHandler" resourceType="Unspecified" />
    </handlers>
    <httpPlatform processPath="..\approot\prod.cmd" arguments="" stdoutLogEnabled="true" stdoutLogFile="\\?c:\temp\wtlogs\" startupTimeLimit="3600" forwardWindowsAuthToken="false"></httpPlatform>
  </system.webServer>
</configuration>
Run Code Online (Sandbox Code Playgroud)

我有权限设置: 在此输入图像描述

应用程序池是:

在此输入图像描述

Pav*_*ets 0

您应该使用文件名作为stdoutLogFile值,尝试使用c:\temp\wtlogs\stdout.log