A potentially dangerous Request Form value was detected from the client



After installing InstantForum or InstantKB under .NET 4.0 you may receive the following error when trying to save articles or post topics with HTML inside...

A potentially dangerous Request.Form value was detected from the client (strSearchEventArgsXML="<s/>").

Note. This article applies to earlier versions of InstantForum & InstantKB. We disable requestValidation by default in newer version of InstantForum & InstantKB under both .NET 2.0 and .NET 4.0. You can safely disable requestValidation within InstantForum or InstantKB as all user input is parsed by our own internal validation routines to ensure valid user input.  

Resolution

1. Open your web.config file and locate the <httpRuntime> element  This may look like...

<httpRuntime maxRequestLength="30720"  />

2. Update the httpRuntime element and add the requestValidationMode attribute as shown below...

<httpRuntime requestValidationMode="2.0" maxRequestLength="30720"  />

That's It!

Implementing this suggestions should resolve this exception message. If you require further assistance please don't hesitate to open a support ticket or contact us.