When I run my MVC4 Web application it gives the following error:
Could not load file or assembly \'WebGrease\' or one of its dependencies. The located assemb
My situation was this: worked fine on my dev machine but got this same "webgrease missing" error on the host platform.
My solution:
1. Removed all .dll's from the \bin directory
2. Removed all of the references from web.config.
3. As I refreshed the home page and got a "some-next.dll was missing" error, I copied that some-next.dll to the bin directory AND added the reference to web.config for each "fresh" dll
Note: Look at the WebGrease.dll properties | details tab - make sure the product version matched the
. In my case, it was this: