Could not load file or assembly 'WebGrease, Version=22.214.171.124624, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies
I know it's kind of late for the OP but I ran into the same problem while trying out the Bootstrap 3 for MVC 4 NuGet package, in my case it had something to do with the Microsoft.AspNet.Web.Optimization package, and managed to find a simple solution.
Try executing the following commands in the package manager console:
Install-Package Microsoft.AspNet.Web.Optimization Update-Package WebGrease Uninstall-Package Microsoft.AspNet.Web.Optimization Uninstall-Package WebGrease Install-Package Microsoft.AspNet.Web.Optimization Update-Package WebGrease
The first two lines had no effect for me since those packages were already installed and updated by the Bootstrap 3 for MVC 4 package, but I ran them anyway and then it all compiled and ran great.
I have an MVC4 Web api project. while running the service project i am getting an error
Could not load file or assembly 'WebGrease, Version=126.96.36.199624, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
i have added the WebGrease.dll file and still its coming error
and tried with changing web.config
<bindingRedirect oldVersion="0.0.0.0-188.8.131.5234" newVersion="184.108.40.20634" />
please advice what i am missing.
Could not load file or assembly 'WebGrease, Version=220.127.116.11624 - Or any other version
Why you redirect
Newtonsoft.Json version binding to version 18.104.22.168. There is no such version in your packages. Remove that redirection or add appropriate version of