I have an ASP.NET 4.5 MVC app. I don't want to set RAMMFAR (runAllManagedModulesForAllRequests
) because that would needlessly send requests for static resources through the ASP.NET pipeline; however I do want all requests which begin with the path /Download/
to run through the ASP.NET routing pipeline, regardless of extension. This way I can route them to a Controller and serve dynamically generated resources.
How can this be done? I do not have access to IIS settings but hopefully there is a way to do this through web.config
.
The RAMMFAR setting is per application. You'd have to create a separate IIS applications if you want different parts of the site to have different settings, but unfortunately you state this is not an option for you.
I two have two side notes though:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With