Compartilhar via


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

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

  • Anonymous
    December 05, 2014
    That works, Thanks.

  • Anonymous
    January 21, 2015
    The ONLY solution that works !!!!! TANKS TANKS TANKS !!!!

  • Anonymous
    July 13, 2015
    Thank you . it worked.

  • Anonymous
    February 08, 2016
    for me, doesn't work :(

  • Anonymous
    May 10, 2016
    For me, I did same step in web.configbut not working .

  • Anonymous
    June 07, 2016
    That Worked thanks!