Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/30.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 为什么赢了';HttpPlatformHandler是否创建日志文件?_C#_Asp.net_Iis_Asp.net Core - Fatal编程技术网

C# 为什么赢了';HttpPlatformHandler是否创建日志文件?

C# 为什么赢了';HttpPlatformHandler是否创建日志文件?,c#,asp.net,iis,asp.net-core,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 corr

我无法再使用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.
相关软件版本:

  • Microsoft Http平台处理程序1.2
  • Windows Server 2012 R12
  • ASP.NET 5 RC1应用程序
我尝试了stdoutLogFile参数的各种值。我正在使用来自的(糟糕的)文档

我试过:

  • \?c:\temp\wtlogs\
  • c:\temp\wtlog\
  • 无值(尝试将其登录到wwwroot和Approt旁边的“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>

应用程序池是:


您应该使用文件名作为
stdoutLogFile
值,尝试使用
c:\temp\wtlogs\stdout.log
此配置正在“c:\temp”文件夹中创建日志文件。 您必须首先创建“c:\temp”文件夹



您可以尝试以下几点吗:(1)指定实际的文件名,例如
stdout.log
。(2) 使用默认路径,即
。\logs\stdout.log
(这样会将日志记录到与
wwwroot
approt
文件夹平行的文件夹中)。(3) 你能试着给所有用户写权限吗?poke,我试过全名,我给了“用户”完全权限。有效的方法是使用默认路径(..\logs\stdout.log)。您应该添加它作为答案。我有同样的问题,但当您尝试使用文件名时,在“什么是事件日志消息”中已经解决了?与我原来的问题相同。我唯一能做的事情就是使用..\logs\stdout.log.Wait 2147024843是“找不到网络路径”,它不应该在本地路径上抛出此错误。拒绝访问的电话是2147024891。您的web应用程序目录是否位于网络位置?创建“日志”文件夹后,我们必须创建所有的文件夹树!iis将使文件不是文件夹