How to resolve the 502.5 error?
1. Step 1: Double click on solution file to open .csproj file
2. Step 2: Add below code in the .csproj file, inside PropertyGroup
<PropertyGroup> <TargetFramework>netcoreapp2.0</TargetFramework> <PublishWithAspNetCoreTargetManifest>false</PublishWithAspNetCoreTargetManifest> </PropertyGroup>
Save the file and publish the website again, the issue will be resolved.