Quantcast
Channel: Web Markup Minifier
Viewing all 95 articles
Browse latest View live

Source code checked in, #76e62c36158b4102571e88cd526740cb5106c647

$
0
0
1. In configuration settings of HTML minifier was added one new property - `PreserveCase` (default `false`); 2. Fixed a errors that occurred when processing of Angular 2, Aurelia and Polymer templates; 3. In WebMarkupMin.ConfigurationIntelliSense updated definitions for the HTML minification settings; 4. Now in WebMarkupMin.Mvc and WebMarkupMin.WebForms the responses with status codes are not equal to 200 is not minified and compressed.

Source code checked in, #4cb6c68fa5bd5ee1ed3ddb12620e162aeda6b7f1

Released: WebMarkupMin 1.1.0 (Apr 05, 2016)

$
0
0
Version: 1.1.0
Published: 4/5/2016

  1. In configuration settings of HTML minifier was added one new property - `PreserveCase` (default `false`);
  2. Fixed a errors that occurred when processing of Angular 2, Aurelia and Polymer templates;
  3. In WebMarkupMin.ConfigurationIntelliSense updated definitions for the HTML minification settings;
  4. Now in WebMarkupMin.Mvc and WebMarkupMin.WebForms the responses with status codes are not equal to 200 is not minified and compressed.

NuGet Packages

CoreExtensions

Created Release: WebMarkupMin 1.1.0 (Apr 05, 2016)

$
0
0
Version: 1.1.0
Published: 4/5/2016

  1. In configuration settings of HTML minifier was added one new property - `PreserveCase` (default `false`);
  2. Fixed a errors that occurred when processing of Angular 2, Aurelia and Polymer templates;
  3. In WebMarkupMin.ConfigurationIntelliSense updated definitions for the HTML minification settings;
  4. Now in WebMarkupMin.Mvc and WebMarkupMin.WebForms the responses with status codes are not equal to 200 is not minified and compressed.

NuGet Packages

CoreExtensions

Created Unassigned: A Potentially dangerous Request.Form value with [ValidateInput(false)] and [CompressContent] [21]

$
0
0
Hi! Can you help with that problem

Have an Action:
```
[HttpPost]
[AllowAnonymous]
[ValidateInput(false)]
[ValidateAntiForgeryToken]
[MinifyHtml, CompressContent]
public ActionResult Register(RegisterViewModel model, string returnUrl)
{
... // Logic

return View("Login");
}
```
RegisterViewModel contain password field for entered user password:
```
[Required(ErrorMessage = "Необходимо ввести пароль")]
[StringLength(50, ErrorMessage = "Пароль должен быть не короче {2} символов.", MinimumLength = 6)]
[DataType(DataType.Password)]
[Display(Name = "Пароль")]
public string Password { get; set; }
```

When run in debug all ok, but when turn on minification and compression after send form page fall with error:
```
ERROR 2016-04-08 08:52:07.5966
A Potentially dangerous Request.Form value (Password="778<fyPf;CrhDhe").
```
But action contains [ValidateInput(false)] attribute. Found if comment [CompressContent] attribute all will be ok

Using:
WebMarkupMin.Core 1.1.0
WebMarkupMin.MsAjax 1.0.0
WebMarkupMin.Mvc 1.1.0
WebMarkupMin.Web 1.0.0

Commented Unassigned: A Potentially dangerous Request.Form value with [ValidateInput(false)] and [CompressContent] [21]

$
0
0
Hi! Can you help with that problem

Have an Action:
```
[HttpPost]
[AllowAnonymous]
[ValidateInput(false)]
[ValidateAntiForgeryToken]
[MinifyHtml, CompressContent]
public ActionResult Register(RegisterViewModel model, string returnUrl)
{
... // Logic

return View("Login");
}
```
RegisterViewModel contain password field for entered user password:
```
[Required(ErrorMessage = "Необходимо ввести пароль")]
[StringLength(50, ErrorMessage = "Пароль должен быть не короче {2} символов.", MinimumLength = 6)]
[DataType(DataType.Password)]
[Display(Name = "Пароль")]
public string Password { get; set; }
```

When run in debug all ok, but when turn on minification and compression after send form page fall with error:
```
ERROR 2016-04-08 08:52:07.5966
A Potentially dangerous Request.Form value (Password="778<fyPf;CrhDhe").
```
But action contains [ValidateInput(false)] attribute. Found if comment [CompressContent] attribute all will be ok

Using:
WebMarkupMin.Core 1.1.0
WebMarkupMin.MsAjax 1.0.0
WebMarkupMin.Mvc 1.1.0
WebMarkupMin.Web 1.0.0
Comments: Hello, Modex! Makes no sense to use the `MinifyHtml` and `CompressContent` attributes with the actions are marked by `HttpPost` attribute, because you can't cache its output. You can also try to add in `Web.config` the following code: ``` <httpRuntime requestValidationMode="2.0" /> ```

Commented Unassigned: A Potentially dangerous Request.Form value with [ValidateInput(false)] and [CompressContent] [21]

$
0
0
Hi! Can you help with that problem

Have an Action:
```
[HttpPost]
[AllowAnonymous]
[ValidateInput(false)]
[ValidateAntiForgeryToken]
[MinifyHtml, CompressContent]
public ActionResult Register(RegisterViewModel model, string returnUrl)
{
... // Logic

return View("Login");
}
```
RegisterViewModel contain password field for entered user password:
```
[Required(ErrorMessage = "Необходимо ввести пароль")]
[StringLength(50, ErrorMessage = "Пароль должен быть не короче {2} символов.", MinimumLength = 6)]
[DataType(DataType.Password)]
[Display(Name = "Пароль")]
public string Password { get; set; }
```

When run in debug all ok, but when turn on minification and compression after send form page fall with error:
```
ERROR 2016-04-08 08:52:07.5966
A Potentially dangerous Request.Form value (Password="778<fyPf;CrhDhe").
```
But action contains [ValidateInput(false)] attribute. Found if comment [CompressContent] attribute all will be ok

Using:
WebMarkupMin.Core 1.1.0
WebMarkupMin.MsAjax 1.0.0
WebMarkupMin.Mvc 1.1.0
WebMarkupMin.Web 1.0.0
Comments: > Makes no sense to use the MinifyHtml and CompressContent attributes with the actions are marked by HttpPost attribute, because you can't cache its output. Even if I need to minify HTML of returned View?

Source code checked in, #b8d41af9fa12e1e4896f1289d58987d6b07b360f

$
0
0
Version 1.1.1: In WebMarkupMin.Web fixed a error #21 “A Potentially dangerous Request.Form value with [ValidateInput(false)] and [CompressContent]”.

Released: WebMarkupMin 1.1.1 (Apr 08, 2016)

$
0
0
Version: 1.1.1
Published: 4/8/2016

In WebMarkupMin.Web fixed a error #21“A Potentially dangerous Request.Form value with `ValidateInput(false)` and `CompressContent`”.

NuGet Packages

Extensions

Created Release: WebMarkupMin 1.1.1 (Apr 08, 2016)

$
0
0
Version: 1.1.1
Published: 4/8/2016

In WebMarkupMin.Web fixed a error #21“A Potentially dangerous Request.Form value with `ValidateInput(false)` and `CompressContent`”.

NuGet Packages

Extensions

Commented Unassigned: A Potentially dangerous Request.Form value with [ValidateInput(false)] and [CompressContent] [21]

$
0
0
Hi! Can you help with that problem

Have an Action:
```
[HttpPost]
[AllowAnonymous]
[ValidateInput(false)]
[ValidateAntiForgeryToken]
[MinifyHtml, CompressContent]
public ActionResult Register(RegisterViewModel model, string returnUrl)
{
... // Logic

return View("Login");
}
```
RegisterViewModel contain password field for entered user password:
```
[Required(ErrorMessage = "Необходимо ввести пароль")]
[StringLength(50, ErrorMessage = "Пароль должен быть не короче {2} символов.", MinimumLength = 6)]
[DataType(DataType.Password)]
[Display(Name = "Пароль")]
public string Password { get; set; }
```

When run in debug all ok, but when turn on minification and compression after send form page fall with error:
```
ERROR 2016-04-08 08:52:07.5966
A Potentially dangerous Request.Form value (Password="778<fyPf;CrhDhe").
```
But action contains [ValidateInput(false)] attribute. Found if comment [CompressContent] attribute all will be ok

Using:
WebMarkupMin.Core 1.1.0
WebMarkupMin.MsAjax 1.0.0
WebMarkupMin.Mvc 1.1.0
WebMarkupMin.Web 1.0.0
Comments: In [WebMarkupMin 1.1.1](https://webmarkupmin.codeplex.com/releases/view/620838) fixed this error. > Even if I need to minify HTML of returned View? Without caching you will only save on bandwidth, but lose the CPU time and memory.

Edited Unassigned: A Potentially dangerous Request.Form value with [ValidateInput(false)] and [CompressContent] [21]

$
0
0
Hi! Can you help with that problem

Have an Action:
```
[HttpPost]
[AllowAnonymous]
[ValidateInput(false)]
[ValidateAntiForgeryToken]
[MinifyHtml, CompressContent]
public ActionResult Register(RegisterViewModel model, string returnUrl)
{
... // Logic

return View("Login");
}
```
RegisterViewModel contain password field for entered user password:
```
[Required(ErrorMessage = "Необходимо ввести пароль")]
[StringLength(50, ErrorMessage = "Пароль должен быть не короче {2} символов.", MinimumLength = 6)]
[DataType(DataType.Password)]
[Display(Name = "Пароль")]
public string Password { get; set; }
```

When run in debug all ok, but when turn on minification and compression after send form page fall with error:
```
ERROR 2016-04-08 08:52:07.5966
A Potentially dangerous Request.Form value (Password="778<fyPf;CrhDhe").
```
But action contains [ValidateInput(false)] attribute. Found if comment [CompressContent] attribute all will be ok

Using:
WebMarkupMin.Core 1.1.0
WebMarkupMin.MsAjax 1.0.0
WebMarkupMin.Mvc 1.1.0
WebMarkupMin.Web 1.0.0

Commented Unassigned: A Potentially dangerous Request.Form value with [ValidateInput(false)] and [CompressContent] [21]

$
0
0
Hi! Can you help with that problem

Have an Action:
```
[HttpPost]
[AllowAnonymous]
[ValidateInput(false)]
[ValidateAntiForgeryToken]
[MinifyHtml, CompressContent]
public ActionResult Register(RegisterViewModel model, string returnUrl)
{
... // Logic

return View("Login");
}
```
RegisterViewModel contain password field for entered user password:
```
[Required(ErrorMessage = "Необходимо ввести пароль")]
[StringLength(50, ErrorMessage = "Пароль должен быть не короче {2} символов.", MinimumLength = 6)]
[DataType(DataType.Password)]
[Display(Name = "Пароль")]
public string Password { get; set; }
```

When run in debug all ok, but when turn on minification and compression after send form page fall with error:
```
ERROR 2016-04-08 08:52:07.5966
A Potentially dangerous Request.Form value (Password="778<fyPf;CrhDhe").
```
But action contains [ValidateInput(false)] attribute. Found if comment [CompressContent] attribute all will be ok

Using:
WebMarkupMin.Core 1.1.0
WebMarkupMin.MsAjax 1.0.0
WebMarkupMin.Mvc 1.1.0
WebMarkupMin.Web 1.0.0
Comments: Thank you!

Created Unassigned: WebMarkupMin and HTML_PARSING_ERROR [22]

$
0
0
Hello. Can you help to deal with error:
I have an action:
```
[HttpGet]
[MinifyHtml]
public ActionResult GetTariffExtendings(Guid tariffCode)
{
var model = ... get the model

return PartialView("Partials/TariffExtendings", model);
}
```
Partial View loaded with GET AJAX request.
Without minification all work, but when turn on — HTML_PARSING_ERROR.
I have no idea what's wrong. Double check markup.
Example of uncompressed output: http://pastebin.com/L5azkT4Z

Configuration in web.config
```
<webMarkupMin xmlns="http://tempuri.org/WebMarkupMin.Configuration.xsd">
<core>
<html whitespaceMinificationMode="Aggressive" collapseBooleanAttributes="false" removeRedundantAttributes="false" minifyEmbeddedCssCode="true" minifyInlineCssCode="true" minifyEmbeddedJsCode="true" minifyInlineJsCode="true" processableScriptTypeList="text/html" minifyKnockoutBindingExpressions="true" />
<css defaultMinifier="MsAjaxCssMinifier">
<minifiers>
<add name="MsAjaxCssMinifier" displayName="Microsoft Ajax CSS Minifier" type="WebMarkupMin.MsAjax.Minifiers.MsAjaxCssMinifier, WebMarkupMin.MsAjax" />
<add name="NullCssMinifier" displayName="Null CSS Minifier" type="WebMarkupMin.Core.Minifiers.NullCssMinifier, WebMarkupMin.Core" />
<add name="KristensenCssMinifier" displayName="Mads Kristensen's CSS minifier" type="WebMarkupMin.Core.Minifiers.KristensenCssMinifier, WebMarkupMin.Core" />
</minifiers>
</css>
<js defaultMinifier="MsAjaxJsMinifier">
<minifiers>
<add name="MsAjaxJsMinifier" displayName="Microsoft Ajax JS Minifier" type="WebMarkupMin.MsAjax.Minifiers.MsAjaxJsMinifier, WebMarkupMin.MsAjax" />
<add name="NullJsMinifier" displayName="Null JS Minifier" type="WebMarkupMin.Core.Minifiers.NullJsMinifier, WebMarkupMin.Core" />
<add name="CrockfordJsMinifier" displayName="Douglas Crockford's JS Minifier" type="WebMarkupMin.Core.Minifiers.CrockfordJsMinifier, WebMarkupMin.Core" />
</minifiers>
</js>
<logging defaultLogger="ThrowExceptionLogger">
<loggers>
<add name="NullLogger" displayName="Null Logger" type="WebMarkupMin.Core.Loggers.NullLogger, WebMarkupMin.Core" />
<add name="ThrowExceptionLogger" displayName="Throw exception logger" type="WebMarkupMin.Core.Loggers.ThrowExceptionLogger, WebMarkupMin.Core" />
</loggers>
</logging>
</core>
<webExtensions disableMinificationInDebugMode="false" disableCompressionInDebugMode="false" enableMinification="true" enableCompression="true" maxResponseSize="200000" disableCopyrightHttpHeaders="true" />
</webMarkupMin>
```

Temporary set <logging defaultLogger="NullLogger">, which not shown an exception, but response is not minified.

Using:
WebMarkupMin.Core 1.1.0
WebMarkupMin.MsAjax 1.0.0
WebMarkupMin.Mvc 1.1.0
WebMarkupMin.Web 1.1.1

Commented Unassigned: WebMarkupMin and HTML_PARSING_ERROR [22]

$
0
0
Hello. Can you help to deal with error:
I have an action:
```
[HttpGet]
[MinifyHtml]
public ActionResult GetTariffExtendings(Guid tariffCode)
{
var model = ... get the model

return PartialView("Partials/TariffExtendings", model);
}
```
Partial View loaded with GET AJAX request.
Without minification all work, but when turn on — HTML_PARSING_ERROR.
I have no idea what's wrong. Double check markup.
Example of uncompressed output: http://pastebin.com/L5azkT4Z

Configuration in web.config
```
<webMarkupMin xmlns="http://tempuri.org/WebMarkupMin.Configuration.xsd">
<core>
<html whitespaceMinificationMode="Aggressive" collapseBooleanAttributes="false" removeRedundantAttributes="false" minifyEmbeddedCssCode="true" minifyInlineCssCode="true" minifyEmbeddedJsCode="true" minifyInlineJsCode="true" processableScriptTypeList="text/html" minifyKnockoutBindingExpressions="true" />
<css defaultMinifier="MsAjaxCssMinifier">
<minifiers>
<add name="MsAjaxCssMinifier" displayName="Microsoft Ajax CSS Minifier" type="WebMarkupMin.MsAjax.Minifiers.MsAjaxCssMinifier, WebMarkupMin.MsAjax" />
<add name="NullCssMinifier" displayName="Null CSS Minifier" type="WebMarkupMin.Core.Minifiers.NullCssMinifier, WebMarkupMin.Core" />
<add name="KristensenCssMinifier" displayName="Mads Kristensen's CSS minifier" type="WebMarkupMin.Core.Minifiers.KristensenCssMinifier, WebMarkupMin.Core" />
</minifiers>
</css>
<js defaultMinifier="MsAjaxJsMinifier">
<minifiers>
<add name="MsAjaxJsMinifier" displayName="Microsoft Ajax JS Minifier" type="WebMarkupMin.MsAjax.Minifiers.MsAjaxJsMinifier, WebMarkupMin.MsAjax" />
<add name="NullJsMinifier" displayName="Null JS Minifier" type="WebMarkupMin.Core.Minifiers.NullJsMinifier, WebMarkupMin.Core" />
<add name="CrockfordJsMinifier" displayName="Douglas Crockford's JS Minifier" type="WebMarkupMin.Core.Minifiers.CrockfordJsMinifier, WebMarkupMin.Core" />
</minifiers>
</js>
<logging defaultLogger="ThrowExceptionLogger">
<loggers>
<add name="NullLogger" displayName="Null Logger" type="WebMarkupMin.Core.Loggers.NullLogger, WebMarkupMin.Core" />
<add name="ThrowExceptionLogger" displayName="Throw exception logger" type="WebMarkupMin.Core.Loggers.ThrowExceptionLogger, WebMarkupMin.Core" />
</loggers>
</logging>
</core>
<webExtensions disableMinificationInDebugMode="false" disableCompressionInDebugMode="false" enableMinification="true" enableCompression="true" maxResponseSize="200000" disableCopyrightHttpHeaders="true" />
</webMarkupMin>
```

Temporary set <logging defaultLogger="NullLogger">, which not shown an exception, but response is not minified.

Using:
WebMarkupMin.Core 1.1.0
WebMarkupMin.MsAjax 1.0.0
WebMarkupMin.Mvc 1.1.0
WebMarkupMin.Web 1.1.1
Comments: Hello, Modex! I could not reproduce your error. Send me full text of error message.

Commented Unassigned: WebMarkupMin and HTML_PARSING_ERROR [22]

$
0
0
Hello. Can you help to deal with error:
I have an action:
```
[HttpGet]
[MinifyHtml]
public ActionResult GetTariffExtendings(Guid tariffCode)
{
var model = ... get the model

return PartialView("Partials/TariffExtendings", model);
}
```
Partial View loaded with GET AJAX request.
Without minification all work, but when turn on — HTML_PARSING_ERROR.
I have no idea what's wrong. Double check markup.
Example of uncompressed output: http://pastebin.com/L5azkT4Z

Configuration in web.config
```
<webMarkupMin xmlns="http://tempuri.org/WebMarkupMin.Configuration.xsd">
<core>
<html whitespaceMinificationMode="Aggressive" collapseBooleanAttributes="false" removeRedundantAttributes="false" minifyEmbeddedCssCode="true" minifyInlineCssCode="true" minifyEmbeddedJsCode="true" minifyInlineJsCode="true" processableScriptTypeList="text/html" minifyKnockoutBindingExpressions="true" />
<css defaultMinifier="MsAjaxCssMinifier">
<minifiers>
<add name="MsAjaxCssMinifier" displayName="Microsoft Ajax CSS Minifier" type="WebMarkupMin.MsAjax.Minifiers.MsAjaxCssMinifier, WebMarkupMin.MsAjax" />
<add name="NullCssMinifier" displayName="Null CSS Minifier" type="WebMarkupMin.Core.Minifiers.NullCssMinifier, WebMarkupMin.Core" />
<add name="KristensenCssMinifier" displayName="Mads Kristensen's CSS minifier" type="WebMarkupMin.Core.Minifiers.KristensenCssMinifier, WebMarkupMin.Core" />
</minifiers>
</css>
<js defaultMinifier="MsAjaxJsMinifier">
<minifiers>
<add name="MsAjaxJsMinifier" displayName="Microsoft Ajax JS Minifier" type="WebMarkupMin.MsAjax.Minifiers.MsAjaxJsMinifier, WebMarkupMin.MsAjax" />
<add name="NullJsMinifier" displayName="Null JS Minifier" type="WebMarkupMin.Core.Minifiers.NullJsMinifier, WebMarkupMin.Core" />
<add name="CrockfordJsMinifier" displayName="Douglas Crockford's JS Minifier" type="WebMarkupMin.Core.Minifiers.CrockfordJsMinifier, WebMarkupMin.Core" />
</minifiers>
</js>
<logging defaultLogger="ThrowExceptionLogger">
<loggers>
<add name="NullLogger" displayName="Null Logger" type="WebMarkupMin.Core.Loggers.NullLogger, WebMarkupMin.Core" />
<add name="ThrowExceptionLogger" displayName="Throw exception logger" type="WebMarkupMin.Core.Loggers.ThrowExceptionLogger, WebMarkupMin.Core" />
</loggers>
</logging>
</core>
<webExtensions disableMinificationInDebugMode="false" disableCompressionInDebugMode="false" enableMinification="true" enableCompression="true" maxResponseSize="200000" disableCopyrightHttpHeaders="true" />
</webMarkupMin>
```

Temporary set <logging defaultLogger="NullLogger">, which not shown an exception, but response is not minified.

Using:
WebMarkupMin.Core 1.1.0
WebMarkupMin.MsAjax 1.0.0
WebMarkupMin.Mvc 1.1.0
WebMarkupMin.Web 1.1.1
Comments: ``` Ошибка сервера в приложении '/DocShellWeb.Lk'. Category: HTML_PARSING_ERROR Message: During parsing of HTML-code error has occurred. File: /DocShellWeb.Lk/IndentificationCenterAgent/GetTariffExtendings?tariffCode=b296dc66-43ae-4249-93e9-b86294d625d1 Line number: 1 Column number: 107 Source fragment: Line 1: …@�흼��{���{���;�N'���?\fdl��J�ɞ!���?~|?"~�D�{<+.�i�5�g�EӦ�U�ؾ���꣣�8��{<�?�����o�����o��… --------------------------------------------------------^ Line 2: …��ٲJ��������.��h��H�/�eD������������n?���~3]�\O��)��ܾ?y���v��`w�� �9?����` Описание: Необработанное исключение при выполнении текущего веб-запроса. Изучите трассировку стека для получения дополнительных сведений о данной ошибке и о вызвавшем ее фрагменте кода. Сведения об исключении: WebMarkupMin.Core.Minifiers.MarkupMinificationException: Category: HTML_PARSING_ERROR Message: During parsing of HTML-code error has occurred. File: /DocShellWeb.Lk/IndentificationCenterAgent/GetTariffExtendings?tariffCode=b296dc66-43ae-4249-93e9-b86294d625d1 Line number: 1 Column number: 107 Source fragment: Line 1: …@�흼��{���{���;�N'���?\fdl��J�ɞ!���?~|?"~�D�{<+.�i�5�g�EӦ�U�ؾ���꣣�8��{<�?�����o�����o��… --------------------------------------------------------^ Line 2: …��ٲJ��������.��h��H�/�eD������������n?���~3]�\O��)��ܾ?y���v��`w�� �9?����` Ошибка источника: Необработанное исключение при выполнении текущего веб-запроса. Информацию о происхождении и месте возникновения исключения можно получить, используя следующую трассировку стека исключений. Трассировка стека: [MarkupMinificationException: Category: HTML_PARSING_ERROR Message: During parsing of HTML-code error has occurred. File: /DocShellWeb.Lk/IndentificationCenterAgent/GetTariffExtendings?tariffCode=b296dc66-43ae-4249-93e9-b86294d625d1 Line number: 1 Column number: 107 Source fragment: Line 1: …@�흼��{���{���;�N'���?\fdl��J�ɞ!���?~|?"~�D�{<+.�i�5�g�EӦ�U�ؾ���꣣�8��{<�?�����o�����o��… --------------------------------------------------------^ Line 2: …��ٲJ��������.��h��H�/�eD������������n?���~3]�\O��)��ܾ?y���v��`w�� �9?����` ] WebMarkupMin.Core.Loggers.ThrowExceptionLogger.Error(String category, String message, String filePath, Int32 lineNumber, Int32 columnNumber, String sourceFragment) +746 WebMarkupMin.Core.Minifiers.GenericHtmlMinifier.Minify(String content, String fileContext, Encoding encoding, Boolean generateStatistics) +1305 WebMarkupMin.Web.Filters.MarkupMinificationFilterStreamBase`1.Close() +158 System.Web.HttpWriter.FilterIntegrated(Boolean finalFiltering, IIS7WorkerRequest wr) +701 System.Web.HttpResponse.FilterOutput() +118 System.Web.CallFilterExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +62 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +92 ```

Commented Unassigned: WebMarkupMin and HTML_PARSING_ERROR [22]

$
0
0
Hello. Can you help to deal with error:
I have an action:
```
[HttpGet]
[MinifyHtml]
public ActionResult GetTariffExtendings(Guid tariffCode)
{
var model = ... get the model

return PartialView("Partials/TariffExtendings", model);
}
```
Partial View loaded with GET AJAX request.
Without minification all work, but when turn on — HTML_PARSING_ERROR.
I have no idea what's wrong. Double check markup.
Example of uncompressed output: http://pastebin.com/L5azkT4Z

Configuration in web.config
```
<webMarkupMin xmlns="http://tempuri.org/WebMarkupMin.Configuration.xsd">
<core>
<html whitespaceMinificationMode="Aggressive" collapseBooleanAttributes="false" removeRedundantAttributes="false" minifyEmbeddedCssCode="true" minifyInlineCssCode="true" minifyEmbeddedJsCode="true" minifyInlineJsCode="true" processableScriptTypeList="text/html" minifyKnockoutBindingExpressions="true" />
<css defaultMinifier="MsAjaxCssMinifier">
<minifiers>
<add name="MsAjaxCssMinifier" displayName="Microsoft Ajax CSS Minifier" type="WebMarkupMin.MsAjax.Minifiers.MsAjaxCssMinifier, WebMarkupMin.MsAjax" />
<add name="NullCssMinifier" displayName="Null CSS Minifier" type="WebMarkupMin.Core.Minifiers.NullCssMinifier, WebMarkupMin.Core" />
<add name="KristensenCssMinifier" displayName="Mads Kristensen's CSS minifier" type="WebMarkupMin.Core.Minifiers.KristensenCssMinifier, WebMarkupMin.Core" />
</minifiers>
</css>
<js defaultMinifier="MsAjaxJsMinifier">
<minifiers>
<add name="MsAjaxJsMinifier" displayName="Microsoft Ajax JS Minifier" type="WebMarkupMin.MsAjax.Minifiers.MsAjaxJsMinifier, WebMarkupMin.MsAjax" />
<add name="NullJsMinifier" displayName="Null JS Minifier" type="WebMarkupMin.Core.Minifiers.NullJsMinifier, WebMarkupMin.Core" />
<add name="CrockfordJsMinifier" displayName="Douglas Crockford's JS Minifier" type="WebMarkupMin.Core.Minifiers.CrockfordJsMinifier, WebMarkupMin.Core" />
</minifiers>
</js>
<logging defaultLogger="ThrowExceptionLogger">
<loggers>
<add name="NullLogger" displayName="Null Logger" type="WebMarkupMin.Core.Loggers.NullLogger, WebMarkupMin.Core" />
<add name="ThrowExceptionLogger" displayName="Throw exception logger" type="WebMarkupMin.Core.Loggers.ThrowExceptionLogger, WebMarkupMin.Core" />
</loggers>
</logging>
</core>
<webExtensions disableMinificationInDebugMode="false" disableCompressionInDebugMode="false" enableMinification="true" enableCompression="true" maxResponseSize="200000" disableCopyrightHttpHeaders="true" />
</webMarkupMin>
```

Temporary set <logging defaultLogger="NullLogger">, which not shown an exception, but response is not minified.

Using:
WebMarkupMin.Core 1.1.0
WebMarkupMin.MsAjax 1.0.0
WebMarkupMin.Mvc 1.1.0
WebMarkupMin.Web 1.1.1
Comments: Trying different combinations found interesting: Action for opening page ``` [MinifyHtml, CompressContent] public ActionResult CreateRequestAgent(int idClient) { var model = ... loading parent page model return View(model); } ``` On this page with AJAX-request loading partial. If I add to GetTariffExtendings action [CompressContent] attribute all loaded without errors!

Commented Unassigned: WebMarkupMin and HTML_PARSING_ERROR [22]

$
0
0
Hello. Can you help to deal with error:
I have an action:
```
[HttpGet]
[MinifyHtml]
public ActionResult GetTariffExtendings(Guid tariffCode)
{
var model = ... get the model

return PartialView("Partials/TariffExtendings", model);
}
```
Partial View loaded with GET AJAX request.
Without minification all work, but when turn on — HTML_PARSING_ERROR.
I have no idea what's wrong. Double check markup.
Example of uncompressed output: http://pastebin.com/L5azkT4Z

Configuration in web.config
```
<webMarkupMin xmlns="http://tempuri.org/WebMarkupMin.Configuration.xsd">
<core>
<html whitespaceMinificationMode="Aggressive" collapseBooleanAttributes="false" removeRedundantAttributes="false" minifyEmbeddedCssCode="true" minifyInlineCssCode="true" minifyEmbeddedJsCode="true" minifyInlineJsCode="true" processableScriptTypeList="text/html" minifyKnockoutBindingExpressions="true" />
<css defaultMinifier="MsAjaxCssMinifier">
<minifiers>
<add name="MsAjaxCssMinifier" displayName="Microsoft Ajax CSS Minifier" type="WebMarkupMin.MsAjax.Minifiers.MsAjaxCssMinifier, WebMarkupMin.MsAjax" />
<add name="NullCssMinifier" displayName="Null CSS Minifier" type="WebMarkupMin.Core.Minifiers.NullCssMinifier, WebMarkupMin.Core" />
<add name="KristensenCssMinifier" displayName="Mads Kristensen's CSS minifier" type="WebMarkupMin.Core.Minifiers.KristensenCssMinifier, WebMarkupMin.Core" />
</minifiers>
</css>
<js defaultMinifier="MsAjaxJsMinifier">
<minifiers>
<add name="MsAjaxJsMinifier" displayName="Microsoft Ajax JS Minifier" type="WebMarkupMin.MsAjax.Minifiers.MsAjaxJsMinifier, WebMarkupMin.MsAjax" />
<add name="NullJsMinifier" displayName="Null JS Minifier" type="WebMarkupMin.Core.Minifiers.NullJsMinifier, WebMarkupMin.Core" />
<add name="CrockfordJsMinifier" displayName="Douglas Crockford's JS Minifier" type="WebMarkupMin.Core.Minifiers.CrockfordJsMinifier, WebMarkupMin.Core" />
</minifiers>
</js>
<logging defaultLogger="ThrowExceptionLogger">
<loggers>
<add name="NullLogger" displayName="Null Logger" type="WebMarkupMin.Core.Loggers.NullLogger, WebMarkupMin.Core" />
<add name="ThrowExceptionLogger" displayName="Throw exception logger" type="WebMarkupMin.Core.Loggers.ThrowExceptionLogger, WebMarkupMin.Core" />
</loggers>
</logging>
</core>
<webExtensions disableMinificationInDebugMode="false" disableCompressionInDebugMode="false" enableMinification="true" enableCompression="true" maxResponseSize="200000" disableCopyrightHttpHeaders="true" />
</webMarkupMin>
```

Temporary set <logging defaultLogger="NullLogger">, which not shown an exception, but response is not minified.

Using:
WebMarkupMin.Core 1.1.0
WebMarkupMin.MsAjax 1.0.0
WebMarkupMin.Mvc 1.1.0
WebMarkupMin.Web 1.1.1
Comments: It is difficult to determine cause of this error. Try turning off HTTP compression. __P.S.:__ Remove your example, because it contains confidential information.

Edited Unassigned: WebMarkupMin and HTML_PARSING_ERROR [22]

$
0
0
Hello. Can you help to deal with error:
I have an action:
```
[HttpGet]
[MinifyHtml]
public ActionResult GetTariffExtendings(Guid tariffCode)
{
var model = ... get the model

return PartialView("Partials/TariffExtendings", model);
}
```
Partial View loaded with GET AJAX request.
Without minification all work, but when turn on — HTML_PARSING_ERROR.
I have no idea what's wrong. Double check markup.
Example of uncompressed output: ...

Configuration in web.config
```
<webMarkupMin xmlns="http://tempuri.org/WebMarkupMin.Configuration.xsd">
<core>
<html whitespaceMinificationMode="Aggressive" collapseBooleanAttributes="false" removeRedundantAttributes="false" minifyEmbeddedCssCode="true" minifyInlineCssCode="true" minifyEmbeddedJsCode="true" minifyInlineJsCode="true" processableScriptTypeList="text/html" minifyKnockoutBindingExpressions="true" />
<css defaultMinifier="MsAjaxCssMinifier">
<minifiers>
<add name="MsAjaxCssMinifier" displayName="Microsoft Ajax CSS Minifier" type="WebMarkupMin.MsAjax.Minifiers.MsAjaxCssMinifier, WebMarkupMin.MsAjax" />
<add name="NullCssMinifier" displayName="Null CSS Minifier" type="WebMarkupMin.Core.Minifiers.NullCssMinifier, WebMarkupMin.Core" />
<add name="KristensenCssMinifier" displayName="Mads Kristensen's CSS minifier" type="WebMarkupMin.Core.Minifiers.KristensenCssMinifier, WebMarkupMin.Core" />
</minifiers>
</css>
<js defaultMinifier="MsAjaxJsMinifier">
<minifiers>
<add name="MsAjaxJsMinifier" displayName="Microsoft Ajax JS Minifier" type="WebMarkupMin.MsAjax.Minifiers.MsAjaxJsMinifier, WebMarkupMin.MsAjax" />
<add name="NullJsMinifier" displayName="Null JS Minifier" type="WebMarkupMin.Core.Minifiers.NullJsMinifier, WebMarkupMin.Core" />
<add name="CrockfordJsMinifier" displayName="Douglas Crockford's JS Minifier" type="WebMarkupMin.Core.Minifiers.CrockfordJsMinifier, WebMarkupMin.Core" />
</minifiers>
</js>
<logging defaultLogger="ThrowExceptionLogger">
<loggers>
<add name="NullLogger" displayName="Null Logger" type="WebMarkupMin.Core.Loggers.NullLogger, WebMarkupMin.Core" />
<add name="ThrowExceptionLogger" displayName="Throw exception logger" type="WebMarkupMin.Core.Loggers.ThrowExceptionLogger, WebMarkupMin.Core" />
</loggers>
</logging>
</core>
<webExtensions disableMinificationInDebugMode="false" disableCompressionInDebugMode="false" enableMinification="true" enableCompression="true" maxResponseSize="200000" disableCopyrightHttpHeaders="true" />
</webMarkupMin>
```

Temporary set <logging defaultLogger="NullLogger">, which not shown an exception, but response is not minified.

Using:
WebMarkupMin.Core 1.1.0
WebMarkupMin.MsAjax 1.0.0
WebMarkupMin.Mvc 1.1.0
WebMarkupMin.Web 1.1.1

Commented Unassigned: WebMarkupMin and HTML_PARSING_ERROR [22]

$
0
0
Hello. Can you help to deal with error:
I have an action:
```
[HttpGet]
[MinifyHtml]
public ActionResult GetTariffExtendings(Guid tariffCode)
{
var model = ... get the model

return PartialView("Partials/TariffExtendings", model);
}
```
Partial View loaded with GET AJAX request.
Without minification all work, but when turn on — HTML_PARSING_ERROR.
I have no idea what's wrong. Double check markup.
Example of uncompressed output: ...

Configuration in web.config
```
<webMarkupMin xmlns="http://tempuri.org/WebMarkupMin.Configuration.xsd">
<core>
<html whitespaceMinificationMode="Aggressive" collapseBooleanAttributes="false" removeRedundantAttributes="false" minifyEmbeddedCssCode="true" minifyInlineCssCode="true" minifyEmbeddedJsCode="true" minifyInlineJsCode="true" processableScriptTypeList="text/html" minifyKnockoutBindingExpressions="true" />
<css defaultMinifier="MsAjaxCssMinifier">
<minifiers>
<add name="MsAjaxCssMinifier" displayName="Microsoft Ajax CSS Minifier" type="WebMarkupMin.MsAjax.Minifiers.MsAjaxCssMinifier, WebMarkupMin.MsAjax" />
<add name="NullCssMinifier" displayName="Null CSS Minifier" type="WebMarkupMin.Core.Minifiers.NullCssMinifier, WebMarkupMin.Core" />
<add name="KristensenCssMinifier" displayName="Mads Kristensen's CSS minifier" type="WebMarkupMin.Core.Minifiers.KristensenCssMinifier, WebMarkupMin.Core" />
</minifiers>
</css>
<js defaultMinifier="MsAjaxJsMinifier">
<minifiers>
<add name="MsAjaxJsMinifier" displayName="Microsoft Ajax JS Minifier" type="WebMarkupMin.MsAjax.Minifiers.MsAjaxJsMinifier, WebMarkupMin.MsAjax" />
<add name="NullJsMinifier" displayName="Null JS Minifier" type="WebMarkupMin.Core.Minifiers.NullJsMinifier, WebMarkupMin.Core" />
<add name="CrockfordJsMinifier" displayName="Douglas Crockford's JS Minifier" type="WebMarkupMin.Core.Minifiers.CrockfordJsMinifier, WebMarkupMin.Core" />
</minifiers>
</js>
<logging defaultLogger="ThrowExceptionLogger">
<loggers>
<add name="NullLogger" displayName="Null Logger" type="WebMarkupMin.Core.Loggers.NullLogger, WebMarkupMin.Core" />
<add name="ThrowExceptionLogger" displayName="Throw exception logger" type="WebMarkupMin.Core.Loggers.ThrowExceptionLogger, WebMarkupMin.Core" />
</loggers>
</logging>
</core>
<webExtensions disableMinificationInDebugMode="false" disableCompressionInDebugMode="false" enableMinification="true" enableCompression="true" maxResponseSize="200000" disableCopyrightHttpHeaders="true" />
</webMarkupMin>
```

Temporary set <logging defaultLogger="NullLogger">, which not shown an exception, but response is not minified.

Using:
WebMarkupMin.Core 1.1.0
WebMarkupMin.MsAjax 1.0.0
WebMarkupMin.Mvc 1.1.0
WebMarkupMin.Web 1.1.1
Comments: > If I add to GetTariffExtendings action [CompressContent] attribute all loaded without errors! It is possible, that you have HTTP compression on IIS level.
Viewing all 95 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>