ASP.NET Core 2.1 was officially released on May 30, 2018, while Telerik UI for ASP.NET Core R2 2018 was released earlier - on May 16, 2018. Our R2 2018 templates are targeting 'Microsoft.AspNetCore.All', version '2.1.0-preview1-final', which was available at the time we prepared this release.
Currently all Telerik UI for ASP.NET Core templates configured for ASP.NET Core 2.1 will face "HTTP Error 502.5 - Process Failure" error, when run on a machine with the official ASP.NET Core 2.1 release version. In order to extract more meaningful description of the issue, we should change the stdoutLogEnabled key in project's web.config to true and create a logs folder at project's root level:
Then when we run the application again, a log file will be generated in logs folder, telling us what is the actual issue. In this case the error log reads:
It was not possible to find any compatible framework version
The specified framework 'Microsoft.AspNetCore.All', version '2.1.0-preview1-final' was not found.
- Check application dependencies and target a framework version installed at:
C:\Program Files\dotnet\
- Installing .NET Core prerequisites might help resolve this problem:
2.1.0 at [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Following the article Migrate from ASP.NET Core 2.0 to 2.1 we have fixed the issue by changing template projects configurations to match the setup required by the official ASP.NET Core 2.1 version. The fixed templates will be available in R2 2018 SP1 release in a couple of weeks. While part of the steps were already implemented as part of migrating from 2.0 to 2.1 preview, there are still some changes needed between 2.1 preview and 2.1 official.
Workaround: In order to fix this template and the rest of the templates, here are the changes required:
1. For TargetFramework ASP.NET Core projects - in .csproj file:
- Replace the Microsoft.AspNetCore.All reference with Microsoft.AspNetCore.App: