System.Web.HttpRequestalidationException: A potentially dangerous Request.Form value was detected from the client.

3 Months Ago
AndresM
Web Services
ERROR

Summary

The scenario is related to a security feature that uses .NET Framework 4.5 by default to avoid Cross-Site scripting (XSS) assaults.

Applies to

Bizagi 11.2.x

Symptoms

A warning is thrown in the Bizagi SOA Layer (WorkflowEngineSOA, using the createCasesAsString method):

System.Web.HttpRequestalidationException: A potentially dangerous Request.Form value was detected from the client.

Cause

This scenario only happens when the service is consumed through any web browser. At a business level, this not a usual practice.

Solution

The "requestValidationMode" property must be added in the “httpRuntime” label of the web.config. Please refrain from modifying another properties.

Example:

<httpRuntime maxRequestLength="50000" maxUrlLength="1024" targetFramework="4.5" requestValidationMode="2.0" />


NOTE: Although this is a warning and not an error scenario, the procedure is almost the same when solving an issue.

Rate this Article:

Details

Last Modified:3 Months Ago
Last Modified By: AndresM
Type: ERROR
Level: Beginner
Article not rated yet.
Article has been viewed 93 times.

Options