2016-04-01 67 views
1

我已經安裝了squishit版本0.9.8.2與Ajaxmin 4.96.4941。問題是,當我運行ASP.net網站,我得到錯誤Squishit不斷尋找AjaxMin版本4.48.4489.28432

[FileLoadException: Could not load file or assembly 'AjaxMin, Version=4.48.4489.28432, Culture=neutral, PublicKeyToken=21ef50ce11b5d80f' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)] 

SquishIt.Framework.Minifiers.JavaScript.MsMinifier.Minify(字符串的內容)在C:\ dev的\ urandom的\ SquishIt \ SquishIt.Framework \ Minifiers \的JavaScript \ MsMinifier.cs:31 SquishIt.Framework.Base.BundleBase 1.MinifyIfNeeded(String content, Boolean minify) in c:\dev\urandom\SquishIt\SquishIt.Framework\Base\BundleBase.Rendering.Internals.cs:340 System.Linq.WhereSelectArrayIterator 2.MoveNext()110 System.Linq.d__16 2.MoveNext() +348 System.Collections.Generic.List 1..ctor(IEnumerable的1 collection) +476 System.Linq.Enumerable.ToList(IEnumerable 1源)69 SquishIt.Framework。 JavaScript.JavaScriptBundle.AggregateContent(列表1 assets, StringBuilder sb, String outputFile) in c:\dev\urandom\SquishIt\SquishIt.Framework\JavaScript\JavaScriptBundle.cs:84 SquishIt.Framework.Base.BundleBase)1.在c:\ dev \ urandom \ SquishIt \ SquishIt.Framework \ Base \ BundleBas中的1.GetMinifiedContent(List 1 assets, String outputFile) in c:\dev\urandom\SquishIt\SquishIt.Framework\Base\BundleBase.Rendering.Internals.cs:333 SquishIt.Framework.Base.BundleBase 1.RenderRelease(String key,String renderTo,IRenderer renderer) e.Rendering.Internals.cs:290

回答

0

我認爲在某個時候有4.96的問題,但不記得具體是什麼。您是否嘗試添加綁定重定向?

我建議更新到4.97.4951.28483(或使用YUI minifier)。

對於後者,在某處的global.asax.cs(你做任何渲染包之前)

Bundle.ConfigureDefaults().UseYuiForJsMinification()