We are in middle of upgrading our pre-production environment from 4.0 to 4.8 .net framework. After upgrade we are seeing following error as soon as you open the site,
Although this error can be fixed if we modify web.config file manually from,
<dependentAssembly>
<assemblyIdentity name="System.Net.Http" publicKeyToken="b03f5f7f11d50a3a" culture="neutral"/>
<bindingRedirect oldVersion="0.0.0.0-2.2.29.0" newVersion="2.2.29.0"/>
</dependentAssembly>
To,
<dependentAssembly>
<assemblyIdentity name="System.Net.Http" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-2.2.29.0" newVersion="4.0.0.0" />
</dependentAssembly>
What I am curious to know if we can avoid web.config updates and yet upgrade to 4.8 because this is going to be a nightmare for production upgrade for more than 1000 sites.
Please advise!