Questions tagged [system.web.optimization]

The System.Web.Optimization namespace includes classes that support Content Delivery Networks (CDN) and the process of optimizing JavaScript and cascading style sheet (CSS) files in a website to reduce file size and improve page performance. The classes in this namespace enable developers to carry out bundling and minification tasks to optimize their JavaScript and CSS files.

81 questions
4
votes
5 answers

Could not load file or assembly 'System.Web.Optimization, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'

I keep getting this error although I already installed the nuget packet for Microsoft.AspNet.Web.Optimization... Could not load file or assembly 'System.Web.Optimization, Version=1.0.0.0, Culture=neutral,…
LOTUSMS
  • 10,317
  • 15
  • 71
  • 140
4
votes
3 answers

ASP.NET MVC 4 Bundles giving 404 error

I want to add Bundles into an existing ASP.NET MVC 4 (.NET 4.5) website that uses: Umbraco 6.1.5 Microsoft ASP.NET Web Optimization Framework 1.1.3 (https://www.nuget.org/packages/microsoft.aspnet.web.optimization/) I attempted to follow these…
4
votes
1 answer

Compression of bundles created by asp.net bundling using 'System.Web.Optimization'?

I have created bundles in my asp.net web solution by using the new bundling and minification package by MS. Everything is properly bundled and minified (used global.asax way) but when I deploy on IIS the bundle is not getting compressed (gzip) , I…
4
votes
3 answers

MVC4 bundling javascript or css files from a different domain?

In MVC4's Web.Optimization bundling / minimization, is it possible to register a bundle on one site (our static cookieless domain) and then use that bundle on another site (our webapp domain)? eg static.myapp.com has a BundleConfig.cs with public…
4
votes
1 answer

ASP.NET Web Optimization - Minification without bundling

Is it possible to use ASP.NET Web Optimization for minification without bundling? Lets say I have a page Example.cshtml and corresponding javaScript file for that page Example.js. I would like to be able to do something like…
Vukoje
  • 500
  • 4
  • 9
3
votes
1 answer

Why dont js files get minified if I include them in BundleConfig?

I am working on a website (.NET framework 4.8) with jquery front end. I made a BundleConfig (System.Web.Optimization), where I included all js files in bundles and set BundleTable.EnableOptimizations = true;, but only some of the bundles are…
3
votes
1 answer

ERROR Could not load type 'dotless.Core.configuration.WebConfigConfigurationLoader' from assembly 'dotless.Core, Version=1.5.3.0

I am working with asp.net MVC application(.net framework 4.6.1), I want to use the bundle for .less files so I register the bundles in BundleConfig file as follows public static void RegisterBundles(BundleCollection bundles) { //other bundles…
Neeraj Kumar Gupta
  • 2,157
  • 7
  • 30
  • 58
3
votes
0 answers

CssRewriteUrlTransform missing in System.Web.Optimization

I'm trying to use CssRewriteUrlTransform but am having a problem referencing it. I updated to the latest Microsoft.AspNet.Web.Optimization using package manager: update-Package Microsoft.AspNet.Web.Optimization -reinstall And can now see…
Chris Nevill
  • 5,922
  • 11
  • 44
  • 79
3
votes
1 answer

Could not load file or assembly 'System.Web.Optimization' or one of its dependencies

I am having an issue with my Asp.net MVC 5 project in visual studio 2013. My DLL for System.Web.Optimization is version 1.1.40211.0 but under the references for the project it says the version is 1.1.0.0 I am not sure how to go about checking what…
Mike Schmidt
  • 355
  • 1
  • 3
  • 13
3
votes
2 answers

How to make bundles unminify and list individual files when using a cookieless static content server?

I have two VS projects, one for the main website and one for a "static content" website where all the css, js, images, and other static content will be stored and accessed via a cookieless domain. So I have a BundleConfig.cs in my static site that…
3
votes
3 answers

MVC4 Bundling: where the URL for bundle is held

When the bundle is registered in MVC4, what is responsible for "intercepting" incoming http requests for /bundles/someBundle?v=1hDzBpmYJm4Iu-OjRN1YqS1WeNThVl0kStLJGP8WCr41? also since hash for each bundle is calculated only once (at a first…
3
votes
1 answer

MVC4 bundling of DevExpress controls?

Is it possible to use MVC4's bundling and minimization on DevExpress' web controls? They have css declared like so: <% Html.DevExpress().RenderStyleSheets(Page, new StyleSheet { ExtensionSuite = ExtensionSuite.NavigationAndLayout }, …
3
votes
2 answers

Bundling querysting token is not being generated

I'm trying the new Web.Optimizations bundling and minimizer and have followed the examples but it is not generating the token portion of the query string: bundles.Add(new ScriptBundle("~/Scripts/test") .Include( …
JK.
  • 21,477
  • 35
  • 135
  • 214
3
votes
1 answer

ASP.Net MVC Bundles - Is "MapPathMethod" a valid property of BundleTable?

I have found numerous references to "BundleTable.MapPathMethod" in the System.Web.Optimization namespace. For instance: unit testing mvc bundles hidden options of asp net bundling and minification However, I cannot seem to find documentation for…
William Edmondson
  • 3,619
  • 3
  • 32
  • 41
3
votes
1 answer

Is there any way to read System.Web.Optimization contents from code-behind?

Is there any way to read System.Web.Optimization contents from code-behind? I tried poking around the dll, but I couldn't find a way to read the bundle contents (as far as I can tell, it was meant to work via a handler, which handles the calls to…