WebGrease is a suite of tools for optimizing javascript, css files and images.
Questions tagged [webgrease]
35 questions
2
votes
1 answer
WebGrease Bundling Ignore Globals
I was tasked with start using ASP.NET Bundling instead of RequestReduce.
It seemed as an easy task at first, but then i ran into problems, when minifieng CSS files:
(3017,287): run-time error CSS1054: JavaScript error in expression property:…

Kiksen
- 1,559
- 1
- 18
- 41
2
votes
4 answers
Asp.net Bundle not render files .min
I've read and done the steps in this, this and this post!
Still can not use the Asp.net Bundles!
In Global.asax.cs
BundleConfig.RegisterBundles(BundleTable.Bundles, Server);
and ...
public static void RegisterBundles(BundleCollection bundles,…

ridermansb
- 10,779
- 24
- 115
- 226
2
votes
2 answers
Issue with Bundling and Minification
I am trying to use the asp.net bundling and minification feature. The issue is when i am including the jquery ui custom script in the bundle than the script is not rendering in my layout page. The code is:
bundles.Add(new…

user1740381
- 2,121
- 8
- 37
- 61
1
vote
1 answer
How to interact with elements of the tab opened with GM_openInTab
I am opening a new tab using GM_openInTab inside my tampermonkey script, but I am not able to interact with the elements of this new tab using my code.
I simply want to click a button in the newly opened tab as soon as it opens and close it…

Anushka Gupta
- 11
- 2
1
vote
1 answer
CodeSettings Exists in both AjaxMin and WebGrease
Currently have an issue where my project is using both WebGrease and AjaxMin. Im trying to change the settings of AjaxMin using the CodeSettings class which exists in both AjaxMin and WebGrease. For whatever reason I can't tell it to use the AjaxMin…

Shawnzey
- 196
- 1
- 14
1
vote
0 answers
Usage of Webgrease for commercial hosting services
Usage of web grease library which is licensed under MS.NET Library license
I have created a basic MVC application which has the Optimization library and its dependency WebGrease library. While I am trying to get this hosted on my company's server I…

Sri99
- 11
- 2
1
vote
1 answer
Could not load file or assembly 'WebGrease, Version=1.5.1.25624, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies.
I have an MVC5 Web api project. I am getting following error after deployment,
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…

Tejas
- 11
- 1
- 3
1
vote
3 answers
Microsoft.Ajax.Utilities.JScriptException from System.Web.Optimization
we are having issues deploying the latest System.Web.Optimization 1.0 library from NUGET. In our production instances on Azure, the logs fill up with Microsoft.Ajax.Utilities.JScriptException errors, CPU spikes to 100% and everything grinds to a…

viperguynaz
- 12,044
- 4
- 30
- 41
0
votes
0 answers
Is there a way to find why the Visual Studio 2019 won't minify a js file?
I keep getting this error
scripts.render system.nullreferenceexception 'object reference not set to an instance of an object.'
I've ran my code through a number of different online minifiers to see what the issue could be and my code minifies…

Chris
- 2,953
- 10
- 48
- 118
0
votes
1 answer
How to autofill a text field in a pop up using greasemonkey?
So basically I have a text field, with the following Elements.
// The element locators for the text box are as follows:
type="text" name="custom_version_ui" value="" id="custom_version_ui" placeholder="" class="custom form-control…

Rekha R
- 131
- 1
- 1
- 12
0
votes
0 answers
How WebGrease is dependent on Microsoft.AspNet.Web.Optimization package ?
Could not load file or assembly 'WebGrease' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

Kiran Chuahan
- 109
- 8
0
votes
1 answer
Extension method IsNullOrWhiteSpace with the same namespace is placed in two assemblies
I have ASP.Net MVC project. The project contains WebGrease, packages.config:
Recently because of (https://www.nuget.org/packages/BundleTransformer.MicrosoftAjax/) I added AjaxMin…

Antipod
- 1,593
- 3
- 23
- 43
0
votes
1 answer
Include Scripts from Feature folder in ScriptBundle
I'm trying to include js files that are not part of the original ~/Scripts folder included in a MVC web project. Rather I have my script files inside of my Feature folder like: ~/Features/MyNewFeature/Scripts
However when running the app I get…

TMan
- 4,044
- 18
- 63
- 117
0
votes
1 answer
Could not load file or assembly 'WebGrease, Version=1.5.1.25624 - Or any other version
I have the same issue found in these questions
Could not load file or assembly 'WebGrease, Version=1.5.1.25624, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies
Could not load file or assembly 'WebGrease' one of its…

Darren Wainwright
- 30,247
- 21
- 76
- 127
0
votes
1 answer
Default Template Projects Crashing in Visual Studio 2013
Am I doing something wrong or is Visual Studio 2013 default projects broken?
Create a new basic MVC project:
File -> New -> Project
and
Templates / Visual C# / Web / ASP.Net Web Application
and
MVC with no Authentication
and immediately on running…

Deukalion
- 2,516
- 9
- 32
- 50