Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HTTP Error 502.5 - Process Failure when application is run from Visual Studio

I've seen this post, but it is not my case cause I run my project from Visual Studio. It is not a deployed application.

I've recently installed Visual Studio 2015 Professional Update 3 and I am running locally ASP.NET Core Web with AngularJS 2 application. What I see is error when I run application is:

HTTP Error 502.5 - Process Failure

Common causes of this issue:

The application process failed to start The application process

started but then stopped The application process started but failed to

listen on the configured port

I've already installed the follwing packages at my PC:

  1. DotNetCore.1.0.0-VS2015Tools.Preview 2
  2. DotNetCore.1.0.1-VS2015Tools.Preview2.0.3
  3. DotNetCore.1.0.4_1.1.1-WindowsHosting
  4. dotnet-dev-win-x64.1.0.1
  5. dotnet-win-x64.1.1.1

Does anybody know how can I resolve this error?

like image 813
StepUp Avatar asked Apr 21 '17 16:04

StepUp


1 Answers

That was my silly mistake. I should just not run my application immediately, but at first try to debug my application!

When I tried to debug my application, then I saw the following exception:

Can't load Microsoft.AspNetCore.Hosting 1.1.0.0

Then I just corrected dependencies project.json file and it started working very well.

Thanks a lot, guys, to all!

like image 69
StepUp Avatar answered Oct 21 '22 04:10

StepUp