Click here to Skip to main content
15,887,135 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear Friends,

When i publish website in to staging server i got an error, A potentially dangerous Request.Form value was detected, am working in .Net 3.5 also i set in page directive valid request is false, I don't get any error in local machine.
Posted
Updated 1-Apr-14 21:28pm
v3

1 solution

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!
 
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