How can I resolve http error 502.5 - process failure?

0

I have an error

http error 502.5 - process failure

So I go on event viewer to see more informations about the error, it returns me this :

Application 'MACHINE/WEBROOT/APPHOST/ProjectName' with physical root 'C:\FullPath\' failed to start process with commandline 'dotnet .\ProjectName.dll', ErrorCode = '0x80004005 : 1.

So like I see on a post I try to have detail of this error so I do this :

"C:\Program Files\dotnet\dotnet.exe" "C:\FullPath\ProjectName.dll"

But when I do that I have finally no details on the error and it create a local server.

I try to reset IIS but it doesn't work too.

iis
.net-core
asked on Stack Overflow Jul 26, 2019 by user10863293 • edited Jul 26, 2019 by user10863293

1 Answer

0

As far as I know, the erro code: 0x80004005 means a file missing or can't be accessed.

I suggest you could check your application pool identiy firstly to make sure you have the enough permission to access the C:\FullPath firstly.

Details about how to check the permission, you could refer to this article.

Besides, I suggest you could try to specify the path to the dotnet.exe in web.config by using below settings.

<configuration>
  <system.webServer>
    <handlers>
      <add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified" />
    </handlers>
    <aspNetCore processPath="C:\Program Files\dotnet\dotnet.exe" arguments=".\your-project.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout"/>
  </system.webServer>
</configuration>
answered on Stack Overflow Jul 29, 2019 by Brando Zhang

User contributions licensed under CC BY-SA 3.0