asp.net mvc - Bypass ASP MVC bundle requests from MVC module -


i have httpmodule in place url encryption; noticed module intercepting mvc bundle requests; if using following settings:

<modules runallmanagedmodulesforallrequests="false"> <add ..precondition="managedhandler" /> </modules> 

is there way bypass interception of mvc bundle requests httpmodule?

so ignoring route in httpmodule can use application_beginrequest or application_endrequest , below in example ignores aspx pages or check path want ignore

example :

 private void application_beginrequest(object source,  eventargs e)     {         httpapplication application = (httpapplication)source;         httpcontext context = application.context;         string filepath = context.request.filepath;         string fileextension =  virtualpathutility.getextension(filepath);         if (fileextension.equals(".aspx"))         {             return;         }     } 

but if functionality related modules of application suggest make use of filters(mvc sepcific , modules) rather httpmodules(specific full application).


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -