Skip to main content

Hi,


 I have set the .NET framework for blackpearl server to 4.0 on IIS manager and I have deploy a workflow to the Blackpearl server. The issue being faced is that whenever I try to start that worklow I get a issue with the request as below.


Server Error in '/Workspace' Application.


 




 






A potentially dangerous Request.Form value was detected from the client (QueryCollectionXML="<?xml version="1.0" ...").



Description:


Request Validation has detected a potentially dangerous client input value, and processing of the request has been aborted. This value may indicate an attempt to compromise the security of your application, such as a cross-site scripting attack. To allow pages to override application request validation settings, set the requestValidationMode attribute in the httpRuntime configuration section to requestValidationMode="2.0". Example: <httpRuntime requestValidationMode="2.0" />. After setting this value, you can then disable request validation by setting validateRequest="false" in the Page directive or in the <pages> configuration section. However, it is strongly recommended that your application explicitly check all inputs in this case. For more information, see http://go.microsoft.com/fwlink/?LinkId=153133.

Exception Details: System.Web.HttpRequestValidationException: A potentially dangerous Request.Form value was detected from the client (QueryCollectionXML="<?xml version="1.0" ...").

Source Error:




 



 





An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.









cHttpRequestValidationException (0x80004005): A potentially dangerous Request.Form value was detected from the client (QueryCollectionXML="<?xml version="1.0" ...").]
System.Web.HttpRequest.ValidateString(String value, String collectionKey, RequestValidationSource requestCollection) +11314196
System.Web.HttpRequest.ValidateNameValueCollection(NameValueCollection nvc, RequestValidationSource requestCollection) +82
System.Web.HttpRequest.get_Form() +186
System.Web.HttpRequest.get_HasForm() +11317092
System.Web.UI.Page.GetCollectionBasedOnMethod(Boolean dontReturnNull) +141
System.Web.UI.Page.DeterminePostBackMode() +163
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +11270399
System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +11269918
System.Web.UI.Page.ProcessRequest() +119
System.Web.UI.Page.ProcessRequest(HttpContext context) +167
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +597
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +266



 




 





Version Information:


Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1


 


Any help in this regard would be much appreciated.



Try adding the ValidateRequest tag to the page directive.


<%@ Page Language="vb" AutoEventWireup="false" Codebehind="MyForm.aspx.vb" Inherits="Proj.MyForm" ValidateRequest="false"%>


Reply