Request.Querystring was detected in the Asp.net MVC client

Asked

Viewed 439 times

0

I have a problem when the user confirms an email by the standard Asp registration. The user receives a link in html format and clicks on the link and the user gets an error from the application server.

Server Error in Application '/myapplication'. A potentially dangerous value Request.Querystring has been detected in the client

I have already set up webconfig in the form below and without success. I already have days working on it and do not solve it. Can help?

<system.web>
    <customErrors mode="Off" />
    <authentication mode="None" />
    <compilation debug="true" targetFramework="4.6.1" />
    <httpRuntime  requestValidationMode="2.0" />
    <pages validateRequest="false"></pages>
    <httpModules>
        <add name="ApplicationInsightsWebTracking" type="Microsoft.ApplicationInsights.Web.ApplicationInsightsHttpModule, Microsoft.AI.Web" />
    </httpModules>
</system.web>
  • Have 1 example of querystring and how you recover it in the controller?

  • querysrting is a standard email string for confirming the user’s email by Asp’s Entity. I no longer have the string, I have changed the situation by changing the body of the email to accept html and changed the code.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.