Hello Matthew,
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:
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:
- Remove
DotNetCliToolReference:
2. For
TargetFramework .NET Framework projects - in
.csproj file:
- Change all references for version
2.1.0-preview1-final to version 2.1.0
- Remove
DotNetCliToolReference:
3. For both
TargetFrameworks - in
Startup.cs file:
- Add the following usings:
- Add CompatibilityVersion line:
- Remove app.UseBrowserLink() line:
So editing these two files to target ASP.NET Core 2.1 official references will fix the issue and templates will run as expected.
Regards,
Dimitar
Progress Telerik