HttpModule and HttpHandler request validation

With a HttpModule request in a ASP.NET4.0 MVC3, the specific request with a HttpHandler for processing. The question now is how to disable the HttpHandler request validation without closing the application request validation.?
I did a test, the use of < in web.config; page validateRequest= "false" > </page> invalid.

Started by Jason at February 08, 2016 - 11:15 AM


Posted by Jared at February 15, 2016 - 11:25 AM

If that doesn't help config<httpruntime requestvalidationmode ="2.0">
<page validateRequest="false"></page>

Posted by Jared at November 29, 2016 - 6:01 AM

This property seems to be in the MVC ACTION, not the HttpHandler test is effective.

Posted by Jason at December 06, 2016 - 6:02 AM

Use this configuration will shut down the entire application request validation, now want to achieve only close the HttpHandler request verification, validation request to open the entire station.

Posted by Jason at December 08, 2016 - 6:22 AM

Handle is a program must walk, you need a handle to handle, can be the judge let him do a handle, if you don't do anything, to build an empty handle.

Posted by Upton at December 14, 2016 - 7:10 AM

Handle is not only to a specified type to do processing.

Posted by Bevis at December 25, 2016 - 7:53 AM

I'm on request were analyzed using a HttpModule, and then the specific request to call HttpContext.RemapHandler (IHttpHandler) process. I want to close request validation for the HttpHandler, without closing the station's request validation.

Posted by Jason at January 09, 2017 - 8:29 AM

I give you an idea, if HttpModule interface can not be achieved, we can not be achieved by adding the class inheritance?

Posted by Crystal at January 09, 2017 - 10:24 AM

Inheriting classes? What do you mean? Through the class inheritance to close the validation request it?

Posted by Jason at January 13, 2017 - 9:26 AM