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=22.214.171.124624, 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 "126.96.36.19934".
<assemblyIdentity name="WebGrease" publicKeyToken="31bf3856ad364e35" />
<bindingRedirect oldVersion="0.0.0.0-188.8.131.5234" newVersion="184.108.40.20634" />