Nie mogę już tworzyć plików dziennika przy użyciu programów ASP.NET RC1 i HttpPlatformHandler.Dlaczego HttpPlatformHandler nie tworzy plików dziennika?
To jest ostrzeżenie w dzienniku zdarzeń:
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.
odpowiednie wersje oprogramowania:
- Microsoft Platform Handler HTTP 1.2
- Windows Server 2012 R12
- ASP.NET 5 RC1 podanie.
Próbowałem różnych wartości dla argumentu stdoutLogFile. Używam (słaba) Documenation z http://www.iis.net/learn/extensions/httpplatformhandler/httpplatformhandler-configuration-reference
Próbowałem:
- \ c: \ temp \ wtlogs \
- c: \ temp \ wtlogs \
- bez wartości (próba zalogowania go do katalogu "dzienniki", że miejsca obok wwwroot i 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 basen aplikacja jest:
Czy możesz spróbować jeszcze kilku rzeczy: (1) Podaj rzeczywistą * nazwę pliku *, np. 'stdout.log'. (2) Użyj domyślnej ścieżki, która jest ".. \ logs \ stdout.log" (i jako taka loguje się do folderu równoległego do folderów 'wwwroot' i' approot'). (3) Czy możesz spróbować nadać uprawnienia do zapisu wszystkim użytkownikom? – poke
poke, próbowałem pełnej nazwy, dałem pełne uprawnienia do "Użytkownicy". To, co zadziałało, używa domyślnej ścieżki (.. \ logs \ stdout.log). Powinieneś dodać to jako odpowiedź. –
Mam ten sam problem, ale już rozwiązany na [IISIntegration # 45] (https://github.com/aspnet/IISIntegration/issues/45) – zhengchun