I was getting below error when I moved System.Web.Optimization to the new version.System.IO.FileLoadException: Could not load file or assembly 'WebGrease, Version=220.127.116.11624, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) Solution
The solution of this problem was very simple, just change the version of the WebGrease assembly to below. Notice the newVersion attribute and old version attribute of bindingRedirect tag.
I just replaced the current version with "18.104.22.16834".
<assemblyIdentity name="WebGrease" publicKeyToken="31bf3856ad364e35" />
<bindingRedirect oldVersion="0.0.0.0-22.214.171.12434" newVersion="126.96.36.19934" />