Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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:\temp\wtlogs\
  • c:\temp\wtlogs\
  • 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="..\approot\prod.cmd" arguments="" stdoutLogEnabled="true" stdoutLogFile="\\?c:\temp\wtlogs\" startupTimeLimit="3600" forwardWindowsAuthToken="false"></httpPlatform>
  </system.webServer>
</configuration>

I have the permissions set: enter image description here

And the app pool is:

enter image description here

like image 633
Chris Weber Avatar asked Nov 24 '15 18:11

Chris Weber


Video Answer


1 Answers

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" />
like image 112
Yoruba Avatar answered Oct 04 '22 07:10

Yoruba