title: ASP.NET Core website on Azure fails to start with a 502.5 error after upgrade from .NET Core 1.1.1 to .NET Core 1.1.2
body: <p>I have a .NET Core web application which I deploy as an Azure Web App.</p>
  
  <p>This has been working perfectly until last night when I applied the Visual Studio 2017 upgrade (v15.2).</p>
  
  <p>The .net core version was upgraded from 1.1.1 to 1.1.2.  When I deploy to Azure the website fails to start with a 502.5 error.</p>
  
  <p>After investigating I can see .NET Core 1.1.2 is not deployed to the Azure image.</p>
  
  <p>I cannot install the new framework to the web app instance (understandably permission is denied on the Program Files directory).  I cannot 'downgrade' through the nuget package manager as it reports the version is 'Blocked by the project'.  I cannot see a way to define the version of Microsoft.NETCore.App in the csproj file as it seems this is 'automagically' controlled by the root <code>&lt;Project Sdk="Microsoft.NET.Sdk.Web"&gt;</code> element.</p>
  
  <p>I have tried attempting a self contained deployment (shipping the framework with the web app) but can't get this working either.</p>
  
  <p>Short of waiting for the new version to be deployed to Azure (I can't find any information on their schedule for this) does anyone have any ideas on how to get the web app working again?</p>
  
  <p>Is there any way to force it to run under 1.1.1?</p>