无法加载文件或程序集“WebGrease,版本= 1.5.1.25624,文化=中性公钥= 31bf3856ad364e35”或它的一个依赖 [英] Could not load file or assembly 'WebGrease, Version=1.5.1.25624, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies
本文介绍了无法加载文件或程序集“WebGrease,版本= 1.5.1.25624,文化=中性公钥= 31bf3856ad364e35”或它的一个依赖的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个MVC4的Web API项目。而运行该服务项目我得到一个错误
I have an MVC4 Web api project. while running the service project i am getting an error
无法加载文件或程序集WebGrease,版本= 1.5.1.25624,文化=中性公钥= 31bf3856ad364e35或它的一个依赖。该系统找不到指定的文件。
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.
我添加了WebGrease.dll文件,并仍然是其未来的误差
i have added the WebGrease.dll file and still its coming error
和不断变化的web.config尝试
and tried with changing web.config
<bindingRedirect oldVersion="0.0.0.0-1.3.0.0"/>"
和
<bindingRedirect oldVersion="0.0.0.0-1.5.2.14234" newVersion="1.5.2.14234" />
请意见,我错过了什么。
please advice what i am missing.
推荐答案
你有没有通过的NuGet试过吗?
Have you tried through NuGet ?
Install-Package WebGrease -Version 1.5.1
或
Install-Package WebGrease -Version 1.5.2
这篇关于无法加载文件或程序集“WebGrease,版本= 1.5.1.25624,文化=中性公钥= 31bf3856ad364e35”或它的一个依赖的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文