The issue was with the port number, by changing the port number I am able to run the application
HTTP Error 502.5 - ANCM Out-Of-Process Startup Failure
Getting error while running .net core web api , running api on IIS Express
using .net core 3.1.10 in solution
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 :
2 additional answers
Sort by: Most helpful
-
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
-
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