Getting "A potentially dangerous Request.Path value was detected from the client (&)"

The Solution to Getting "A potentially dangerous Request.Path value was detected from the client (&)" is


While you could try these settings in config file

<system.web>
    <httpRuntime requestPathInvalidCharacters="" requestValidationMode="2.0" />
    <pages validateRequest="false" />
</system.web>

I would avoid using characters like '&' in URL path replacing them with underscores.

~ Answered on 2011-05-17 04:36:40


Most Viewed Questions: