Error after Enabling Http Compression & Minification.

Topics: Controls
May 28, 2013 at 7:15 PM
Hi

I can't access my admin section anymore after enabling those 2 options.
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
Date: 5/28/2013 10:58:10 AM
Url : admin/default.cshtml
Raw Url : /admin/default.cshtml
Message : Exception of type 'System.Web.HttpUnhandledException' was thrown.
Source : System.Web.WebPages
StackTrace :    at System.Web.WebPages.WebPageHttpHandler.HandleError(Exception e)
   at System.Web.WebPages.WebPageHttpHandler.ProcessRequestInternal(HttpContextBase httpContext)
   at System.Web.WebPages.WebPageHttpHandler.ProcessRequestInternal(HttpContext context)
   at System.Web.WebPages.WebPageHttpHandler.ProcessRequest(HttpContext context)
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
TargetSite : Boolean HandleError(System.Exception)
Message : Could not load file or assembly 'WebGrease, Version=1.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
Source : System.Web.Optimization
StackTrace :    at System.Web.Optimization.CssMinify.Process(BundleContext context, BundleResponse response)
   at System.Web.Optimization.Bundle.ApplyTransforms(BundleContext context, String bundleContent, IEnumerable`1 bundleFiles)
   at System.Web.Optimization.Bundle.GenerateBundleResponse(BundleContext context)
   at System.Web.Optimization.Bundle.GetBundleResponse(BundleContext context)
   at System.Web.Optimization.Bundle.GetBundleUrl(BundleContext context, Boolean includeContentHash)
   at System.Web.Optimization.BundleCollection.ResolveBundleUrl(String bundleVirtualPath, Boolean includeContentHash)
   at System.Web.Optimization.BundleCollection.ResolveBundleUrl(String bundleVirtualPath)
   at ASP._Page_admin__Layout_cshtml.Execute() in wwwroot\admin\_Layout.cshtml:line 13
   at System.Web.WebPages.WebPageBase.ExecutePageHierarchy()
   at System.Web.WebPages.WebPage.ExecutePageHierarchy(IEnumerable`1 executors)
   at System.Web.WebPages.WebPage.ExecutePageHierarchy()
   at System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage)
   at System.Web.WebPages.WebPageBase.<>c__DisplayClass7.<RenderPageCore>b__6(TextWriter writer)
   at System.Web.WebPages.HelperResult.WriteTo(TextWriter writer)
   at System.Web.WebPages.WebPageBase.Write(HelperResult result)
   at System.Web.WebPages.WebPageBase.RenderSurrounding(String partialViewName, Action`1 body)
   at System.Web.WebPages.WebPageBase.PopContext()
   at System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage)
   at System.Web.WebPages.WebPageHttpHandler.ProcessRequestInternal(HttpContextBase httpContext)
TargetSite : Void Process(System.Web.Optimization.BundleContext, System.Web.Optimization.BundleResponse)
Message : Could not load file or assembly 'WebGrease, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
Source : 
StackTrace : 
TargetSite : 

May 28, 2013 at 8:37 PM
could this be a bug? I located WebGrease.dll from nuget and throw it into my bin and now I can get back in. Was it not packed in the latest version or is this a problem with mys setup?
Coordinator
May 28, 2013 at 9:08 PM
If you using very latest code from source control that updated DLL to v1.3, it needs an update in post-build event to copy DLL from new location. I have it corrected locally but haven't checked in yet.