title: Conversion from .NET framework 4.6 to 4.8 causing runtime error
body: <p>I have converted my web api framework target from 4.6.2 --&gt; 4.8, this is the error I get after I change target framework and reinstall nuget packages:-</p>
  <p>The type initializer for '<strong>System.Web.Http.GlobalConfiguration</strong>' threw an exception.. error ASPRUNTIME.</p>
  <p>My web config have information of old library and new as below:-</p>
  <pre><code>&lt;dependentAssembly&gt;
  &lt;assemblyIdentity name=&quot;System.Net.Http&quot; publicKeyToken=&quot;b03f5f7f11d50a3a&quot; culture=&quot;neutral&quot; /&gt;
  &lt;bindingRedirect oldVersion=&quot;0.0.0.0-4.2.0.0&quot; newVersion=&quot;4.2.0.0&quot; /&gt;
  &lt;/dependentAssembly&gt;
  </code></pre>
  <p>Can anyone suggest what is problem here. Thanks for help.</p>