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:
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:
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