title: .NET Core 2.1.5 HTTP Error 502.5 - Process Failure on Deploy
body: <p>deploying from VS version on the app service is: 2.1.403 </p>
  
  <p>and version on my local is: 2.1.403 </p>
  
  <p>here is a copy of the relevent section of the .csproj</p>
  
  <pre><code>&lt;Project Sdk="Microsoft.NET.Sdk.Web"&gt;
  
    &lt;PropertyGroup&gt;
      &lt;TargetFramework&gt;netcoreapp2.1&lt;/TargetFramework&gt;
      &lt;TypeScriptCompileBlocked&gt;true&lt;/TypeScriptCompileBlocked&gt;
      &lt;TypeScriptToolsVersion&gt;Latest&lt;/TypeScriptToolsVersion&gt;
      &lt;IsPackable&gt;false&lt;/IsPackable&gt;
      &lt;UserSecretsId&gt;952fa24f-1cbc-4017-8cdc-4b99e3671be7&lt;/UserSecretsId&gt;
      &lt;RunPostBuildEvent&gt;OnBuildSuccess&lt;/RunPostBuildEvent&gt;
      &lt;RuntimeIdentifiers&gt;win10-x64;&lt;/RuntimeIdentifiers&gt;
    &lt;/PropertyGroup&gt;
  
    &lt;ItemGroup&gt;
      &lt;Compile Remove="NewFolder\**" /&gt;
      &lt;Content Remove="NewFolder\**" /&gt;
      &lt;EmbeddedResource Remove="NewFolder\**" /&gt;
      &lt;None Remove="NewFolder\**" /&gt;
    &lt;/ItemGroup&gt;
  
    &lt;ItemGroup&gt;
      &lt;PackageReference Include="Bogus" Version="24.3.0" /&gt;
      &lt;PackageReference Include="MediatR" Version="5.1.0" /&gt;
      &lt;PackageReference Include="MediatR.Extensions.Microsoft.DependencyInjection" Version="5.1.0" /&gt;
      &lt;PackageReference Include="Microsoft.AspNetCore" Version="2.1.4" /&gt;
      &lt;PackageReference Include="Microsoft.AspNetCore.All"/&gt;
      &lt;PackageReference Include="Microsoft.AspNetCore.App"/&gt;
      &lt;PackageReference Include="Microsoft.EntityFrameworkCore" Version="2.1.4" /&gt;
      &lt;PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="2.1.4"&gt;
        &lt;PrivateAssets&gt;all&lt;/PrivateAssets&gt;
        &lt;IncludeAssets&gt;runtime; build; native; contentfiles; analyzers&lt;/IncludeAssets&gt;
      &lt;/PackageReference&gt;
      &lt;PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="2.1.5" /&gt;
    &lt;/ItemGroup&gt;
  </code></pre>
  
  <p>I've tried:</p>
  
  <ol>
  <li>using a self-contained deployment</li>
  <li>specifying the version of the packages to 2.1.5 (though i've read this is not necessary)</li>
  </ol>
  
  <p>my runtime.config in the build artifacts looks good:</p>
  
  <pre><code>    {
    "runtimeOptions": {
      "tfm": "netcoreapp2.1",
      "framework": {
        "name": "Microsoft.AspNetCore.All",
        "version": "2.1.5"
      },
      "configProperties": {
        "System.GC.Server": true
      }
    }
  }
  </code></pre>
  
  <p>so what am I missing here?</p>