Jidheesh Rajan Jidheesh Rajan - 1 month ago 37
C# Question

Could not load file or assembly 'WebGrease, Version=1.5.1.25624, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies

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=1.5.1.25624, 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-1.3.0.0"/>"


and

<bindingRedirect oldVersion="0.0.0.0-1.5.2.14234" newVersion="1.5.2.14234" />


please advice what i am missing.

Answer

Have you tried through NuGet ?

Install-Package WebGrease -Version 1.5.1

or

Install-Package WebGrease -Version 1.5.2
Comments