title: FileLoadException: Could not load file or assembly System.Runtime, Version=4.2.0.0
body: <p>I have an asp.net core 2.0 application that runs on full .net framework 4.6.1. It works fine locally but when I deploy it to Azure I receive the following error:</p>
  
  <blockquote>
    <p>FileLoadException: Could not load file or assembly 'System.Runtime,
    Version=4.2.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or
    one of its dependencies. The located assembly's manifest definition
    does not match the assembly reference. (Exception from HRESULT:
    0x80131040)</p>
  </blockquote>
  
  <p>In Debug/Release folder I have System.Runtime 4.1.2.0 but somehow it works.</p>
  
  <p>In "classic" .NET framework I used to add assembly redirect to app.config but here I don't have web.config. Any idea how to fix that?</p>