Getting Error Message for Exception System.Web.HttpRequestValidationException (0x80004005): A potentially dangerous Request.Form value was detected from the client (FieldXML="<Field Type="Choice"…").


IF you are facing issues , adding a question to a sharepoint survey , adding a new column to a list or document library and you are getting this error in the ULS logs

 

Getting Error Message for Exception System.Web.HttpRequestValidationException (0x80004005): A potentially dangerous Request.Form value was detected from the client (FieldXML=”<Field Type=”Choice”…”).  

 

1- Go to the web.config of your application

2- Add a new entry under <system.web>

<httpRuntime requestValidationMode=”2.0″/> 

3- Also Find the pages tag and set validateRequest=False

Comments (6)

  1. Mohamed Assem says:

    That works, Thanks.

  2. Ven says:

    The ONLY solution that works !!!!! TANKS TANKS TANKS !!!!

  3. Ann Abraham says:

    Thank you . it worked.

  4. User says:

    for me, doesn't work 🙁

  5. 花梨 says:

    For me, I did same step in web.config
    but not working .

  6. MeRcUrY says:

    That Worked thanks!