Click here to Skip to main content
15,887,485 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Dear all,

Is there any solution for this error "A potentially dangerous Request.Form value was detected from the client", while am trying to save "<meta content ="">". It will work in local machine perfectly, But it's not working in Staging server what i do? am working in .net 3.5, Any hope?
Posted

1 solution

As I said when you asked this question an hour ago: Error Potentially dangerous[^]

"One or more of your textboxes contains XML style tags - and the framework is warning you that you may be being attacked by HTML injection.

You need to ensure that your data is safe to store and display, and you can disable the error message by following the instructions in the error message.
If you are using .NET 4, then you may need to drop back to the validation mode by adding the following to web.config:
HTML
<system.web>
    <httpRuntime requestValidationMode="2.0" />
</system.web>

But do be aware that you need to check the data! Just turning the error off is a massive security hole in your site!"


Posting the question again, does not change the answer.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900