Why won't HttpPlatformHandler create log files?

I can no longer create log files with ASP.NET RC1 and the HttpPlatformHandler.

This is the warning in the event log:

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.

Relevant Software versions:

  • Microsoft Http Platform Handler 1.2
  • Windows Server 2012 R12
  • ASP.NET 5 RC1 application.
  • I've tried various values for the stdoutLogFile argument. I'm using the (poor) documenation from http://www.iis.net/learn/extensions/httpplatformhandler/httpplatformhandler-configuration-reference

    I've tried:

  • ?c:tempwtlogs
  • c:tempwtlogs
  • no value (to try to log it into the "logs" directory that sites beside wwwroot and approot)
  • web.config:

    <configuration>
      <system.webServer>
        <handlers>
          <add name="httpplatformhandler" path="*" verb="*" modules="httpPlatformHandler" resourceType="Unspecified" />
        </handlers>
        <httpPlatform processPath="..approotprod.cmd" arguments="" stdoutLogEnabled="true" stdoutLogFile="?c:tempwtlogs" startupTimeLimit="3600" forwardWindowsAuthToken="false"></httpPlatform>
      </system.webServer>
    </configuration>
    

    I have the permissions set: 在这里输入图像描述

    And the app pool is:

    在这里输入图像描述


    This config is creating a log file in the 'c:temp' folder. You have to create first the 'c:temp' folder.

     <aspNetCore processPath="dotnet" arguments=".Api.dll" stdoutLogEnabled="true" stdoutLogFile="c:temp" forwardWindowsAuthToken="false" />
    

    您应该使用文件名作为stdoutLogFile值,尝试使用c:tempwtlogsstdout.log

    链接地址: http://www.djcxy.com/p/30474.html

    上一篇: Android在应用程序结算测试购买崩溃Play商店

    下一篇: 为什么HttpPlatformHandler不能创建日志文件?