Aspnetcore: HTTP Error 502.5 - Process Failure

Created on 14 Sep 2018  路  4Comments  路  Source: dotnet/aspnetcore

Hi,

I Installed the latest Blazor Language Services extension from the Visual Studio Marketplace in VS2017 15.8.4 and created a new project.
image

When i run the Blazor application (Ctrl+F5) without modifications i get the error:

image

image

The eventlogger shows:
image

area-blazor

Most helpful comment

Yes, this is known issue with the global.json file included with the Blazor templates. It pins the SDK version to 2.1.3xx. If you don't that version installed on your machine (ex you have a newer version), then you get this error. This will be fixed shortly when we release 0.6.0, but for now you can workaround the issue by remove the global.json file from the project or by installing SDK version 2.1.302. Sorry about the inconvenience!

All 4 comments

Yes, this is known issue with the global.json file included with the Blazor templates. It pins the SDK version to 2.1.3xx. If you don't that version installed on your machine (ex you have a newer version), then you get this error. This will be fixed shortly when we release 0.6.0, but for now you can workaround the issue by remove the global.json file from the project or by installing SDK version 2.1.302. Sorry about the inconvenience!

About my VS info:
image

@danroth27 - sorry to bring this up too, but I'm following along with you on Ignite 2018 https://www.youtube.com/watch?v=tAa6fQQ5Ro4 and getting the same error.

Removing the global.json file as you suggest kills the project.

Putting the locally installed hightest SDK version in the global.json works.

@RudyMeijer
I've got dotnet 2.1.3 (not 2.1.300) installed, and am getting the same error, but it turns out I've got '2.1.500-preview-009297' of the dotnet SDK.

To find the highest version of the dot net SDK run this script in the Powershell ISE:

  $runtimes = [Collections.Generic.List[string]];
  $runtimes = (ls "$env:programfiles/dotnet/shared/Microsoft.NETCore.App").Name
  $runtime = $runtimes[$runtimes.Length-1]
  $runtime
  cd $env:programfiles/dotnet/shared/Microsoft.NETCore.App
  cd $runtime
  dotnet --version

copy and paste the last string into your global.json file:

{
  "sdk": {
    "version": "<<highest sdk version>>"
  }
}

Quick note for anyone still struggling with this, I followed all of the advice. Added a correctly configured global.json (because one no longer comes in the blazor templates) which still didn't work.
Out of desperation I uninstalled .NET Core v3.0 (preview) that I had installed in order to checkout some new WPF stuff, removed global.json, and suddenly it just worked

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mkArtakMSFT picture mkArtakMSFT  路  89Comments

glennc picture glennc  路  117Comments

Rast1234 picture Rast1234  路  104Comments

radenkozec picture radenkozec  路  114Comments

reduckted picture reduckted  路  91Comments