Could not load file or assembly 'WebGrease' or one of its dependencies

前端 未结 9 1545
醉梦人生
醉梦人生 2020-12-14 00:04

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         


        
9条回答
  •  天涯浪人
    2020-12-14 00:19

    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:

    
      
      
    
    

提交回复
热议问题