HTTP Error 502.5 - ANCM Out-Of-Process Startup Failure

Avinash Pradip Kadu 96 Reputation points
2021-01-22T09:17:20.697+00:00

Getting error while running .net core web api , running api on IIS Express

59390-image.png

using .net core 3.1.10 in solution
59533-image.png

event viewer log :

Application '/LM/W3SVC/2/ROOT' with physical root 'C:\Users\310740\Source\Repos\forwards\PreDelivery\Api\' failed to start process with commandline 'c:\program files (x86)\microsoft visual studio\2019\professional\common7\ide\extensions\microsoft\web tools\projectsystem\VSIISExeLauncher.exe -argFile "C:\Users\310740\AppData\Local\Temp\tmpF08D.tmp"' with multiple retries. Failed to bind to port '47870'. First 30KB characters of captured stdout and stderr logs from multiple retries:
Process Id: 22700.
File Version: 13.1.20087.4. Description: IIS ASP.NET Core Module V2 Request Handler. Commit: 654cf06615981b190737101d3a1df39e57e20341

log file error :
59563-image.png

59573-image.png

.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,166 questions
0 comments No comments
{count} votes

Accepted answer
  1. Avinash Pradip Kadu 96 Reputation points
    2021-02-01T05:14:20.41+00:00

    The issue was with the port number, by changing the port number I am able to run the application

    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Ken Tucker 5,851 Reputation points
    2021-01-22T10:54:02.323+00:00

    In your solutions directory then is a hidden .vs folder delete it. Visual Studio will have to be closed for you to be able to do so. Once you open the solution back up in visual studio you will have to set any breakpoints again or start up projects. Try running it again


  2. Jerry Cai-MSFT 991 Reputation points
    2021-01-27T07:40:38.36+00:00

    Hi,AvinashPradipKadu

    'Unable to start the process' often caused by changing the project's name. You can try to delete the 'bin' and 'obj' folder in your project and then rebuild the

    application.

    Best Regards,
    Jerry Cai

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.