Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • tarekahf 215 posts 153 karma points
    Feb 02, 2010 @ 12:01
    tarekahf
    0

    A potentially dangerous Request.Form value was detected from the client.

    This error is reported here:

    http://umbraco.codeplex.com/WorkItem/View.aspx?WorkItemId=21491

    I also get this error when using Doc2Form and a fix was recommended by Casey to add this code: 

    ((umbraco.UmbracoDefault)this.Page).ValidateRequest = false;

    to the init block of the User Control of Doc2Form. See this thread for details.

    Now, I am using AutoForm, and facing the same error if the submitted fields have HTML in them.

    How I can solve this problem with AutoForm ? As per codeplex issue status, this was resovled in changeset "47824".

    I am using Umbraco 4.0.3.

    Appreciate your help.

    Tarek.

  • tarekahf 215 posts 153 karma points
    Feb 02, 2010 @ 12:15
    tarekahf
    1

    Ops ! I found the solution by Google Search !

    Just add this code:

    <umbraco:DisableRequestValidation runat="server"/>

    to the master template.

    It worked for me.

    I hope this could be added to the WiKi or someplace to make is available. Also, add this "how to" to the codePlex Issue.

    Tarek.

  • maanehunden 61 posts 105 karma points
    May 03, 2011 @ 10:28
    maanehunden
    0

    nice one,.. thx solved my problem.

  • Owen 22 posts 43 karma points
    Mar 20, 2013 @ 12:56
    Owen
    0

    If that doesnt solve the problem like it didnt for me, try this:

    <pages validateRequest="false" />
  • Stephen Davidson 216 posts 392 karma points
    Apr 08, 2013 @ 16:18
    Stephen Davidson
    0

    I'm still getting the error and have tried both...does this need to be added to my own master pages or the Umbraco backend master pages?

    S

  • Pushpendra Singh 61 posts 116 karma points
    Mar 21, 2014 @ 08:10
    Pushpendra Singh
    100

    Add in ur webconfig  under  <system.web> section <httpRuntime  requestValidationMode="4.5" />

    requestValidationMode  based on your VS version if vs 2012 requestValidationMode="4.5"

Please Sign in or register to post replies

Write your reply to:

Draft