未能加载文件或程序集“WebGrease, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35”或它的某一个依赖项。找到的程序集清单定义与程序集引用不匹配。 (异常来自 HRESULT:0x80131040)

解决:

把这段加到web.config文件的assemblyBinding节点下

< configuration >
     < runtime >
         < assemblyBinding  xmlns ="urn:schemas-microsoft-com:asm.v1" >          
             < dependentAssembly >
                 < assemblyIdentity  name ="WebGrease"  publicKeyToken ="31bf3856ad364e35"  culture ="neutral"   />
                 < bindingRedirect  oldVersion ="0.0.0.0-1.3.0.0"  newVersion ="1.3.0.0"   />
             </ dependentAssembly >
         </ assemblyBinding >
     </ runtime >
</ configuration >

你可能感兴趣的:(version)