webgrease

WebGrease error on Styles.Render call in _Layout.cshtml in Mvc4

橙三吉。 提交于 2020-01-13 09:08:19
问题 I'm trying to add bundling to my Mvc4 web project. The steps I took: Added a reference to my project to System.Web.Optimization Added @Styles.Render("~/Content/css") within <head> of my _Layout.cshtml Added BundleConfig.RegisterBundles(BundleTable.Bundles); to Global.asax.cs Added BundleConfig.cs to my App_Start folder with bundles.Add(new StyleBundle("~/Content/css").Include("~/Content/site.css")); within RegisterBundles(...) method Added a simple site.css within my Content folder. The error

WebGrease error on Styles.Render call in _Layout.cshtml in Mvc4

 ̄綄美尐妖づ 提交于 2020-01-13 09:08:05
问题 I'm trying to add bundling to my Mvc4 web project. The steps I took: Added a reference to my project to System.Web.Optimization Added @Styles.Render("~/Content/css") within <head> of my _Layout.cshtml Added BundleConfig.RegisterBundles(BundleTable.Bundles); to Global.asax.cs Added BundleConfig.cs to my App_Start folder with bundles.Add(new StyleBundle("~/Content/css").Include("~/Content/site.css")); within RegisterBundles(...) method Added a simple site.css within my Content folder. The error

Upgrading WebGrease to version 1.3.0 causes error only on production server

旧街凉风 提交于 2019-12-30 06:54:44
问题 First off, answers to this question,do NOT solve my error: Upgrading WebGrease to version 1.3.0 gets me error I have the following bindingredirect on my production server: <dependentAssembly> <assemblyIdentity name="WebGrease" publicKeyToken="31bf3856ad364e35" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-1.3.0.0" newVersion="1.3.0.0" /> </dependentAssembly> I have the following DLL's on my production server that are required for the Microsoft ASP.NET Web Optimization Framework:

Why Scripts.Render invoke JsMinify.Process?

风流意气都作罢 提交于 2019-12-07 08:59:06
问题 I profiled my ASP.NET MVC application and I saw strange a function calls. You can see it on image Always when mvc render layout we invoke system.web.optimization.scripts.render which invoke JsMinify.Process and Minifier.MinifyJavaScript , but I thought what minification should be one time on the start app. Am I right? Maybe must I set some settings for optimization it? Conditions: localhost release BundleTable.EnableOptimizations = true; 回答1: Great Question! Intuitively, you are right,

Why Scripts.Render invoke JsMinify.Process?

青春壹個敷衍的年華 提交于 2019-12-05 13:00:42
I profiled my ASP.NET MVC application and I saw strange a function calls. You can see it on image Always when mvc render layout we invoke system.web.optimization.scripts.render which invoke JsMinify.Process and Minifier.MinifyJavaScript , but I thought what minification should be one time on the start app. Am I right? Maybe must I set some settings for optimization it? Conditions: localhost release BundleTable.EnableOptimizations = true; Great Question! Intuitively, you are right, minification of assets should be performed on application Startup . You assume that assets are delivered

WebGrease error on Styles.Render call in _Layout.cshtml in Mvc4

半腔热情 提交于 2019-12-05 05:03:29
I'm trying to add bundling to my Mvc4 web project. The steps I took: Added a reference to my project to System.Web.Optimization Added @Styles.Render("~/Content/css") within <head> of my _Layout.cshtml Added BundleConfig.RegisterBundles(BundleTable.Bundles); to Global.asax.cs Added BundleConfig.cs to my App_Start folder with bundles.Add(new StyleBundle("~/Content/css").Include("~/Content/site.css")); within RegisterBundles(...) method Added a simple site.css within my Content folder. The error that I get on the line from step #2 above is Could not load file or assembly 'WebGrease, Version=1.0.0

Could not load file or assembly 'WebGrease, Version=1.5.1.25624, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies

被刻印的时光 ゝ 提交于 2019-12-03 04:27:18
问题 I have an MVC4 Web API project. While running the service project I am getting an error 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. I have added the WebGrease.dll file and still its coming error And tried with changing web.config <bindingRedirect oldVersion="0.0.0.0-1.3.0.0"/>" And <bindingRedirect oldVersion="0.0.0.0-1.5.2.14234" newVersion="1.5.2

Could not load file or assembly 'WebGrease, Version=1.5.1.25624, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies

折月煮酒 提交于 2019-12-02 17:50:01
I have an MVC4 Web api project. while running the service project i am getting an error 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. i have added the WebGrease.dll file and still its coming error and tried with changing web.config <bindingRedirect oldVersion="0.0.0.0-1.3.0.0"/>" and <bindingRedirect oldVersion="0.0.0.0-1.5.2.14234" newVersion="1.5.2.14234" /> please advice what i am missing. Have you tried through NuGet ? Install-Package WebGrease

Upgrading WebGrease to version 1.3.0 causes error only on production server

大憨熊 提交于 2019-11-30 21:53:16
First off, answers to this question,do NOT solve my error: Upgrading WebGrease to version 1.3.0 gets me error I have the following bindingredirect on my production server: <dependentAssembly> <assemblyIdentity name="WebGrease" publicKeyToken="31bf3856ad364e35" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-1.3.0.0" newVersion="1.3.0.0" /> </dependentAssembly> I have the following DLL's on my production server that are required for the Microsoft ASP.NET Web Optimization Framework: System.Web.Optimization.dll 1.0.0.0 (this is NOT pre-release version) Antlr3.Runtime.dll 3.3.1.7705

Upgrading WebGrease to version 1.3.0 gets me error

不想你离开。 提交于 2019-11-28 16:40:50
问题 While upgrading WebGrease to version 1.3.0 gets me error: Could not load file or assembly 'WebGrease, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) Source Error: Line 6: <title>@ViewBag.Title</title> Line 7: @Styles.Render("~/Content/bundles/bootstrap") How to resolve this error. 回答1: Here is the answer that has worked for me,