How to prevent ASP.NET MVC from handling Static files (js and images) on Windows Azure?

When used in IIS 7 Integrated mode all requests go through the managed pipeline. It is sufficiently optimized and not something that you should worry about. On the other hand if you notice that those static files are intercepted by the ASP.NET routing engine of your application you could try adding them as IgnoreRoute definitions in your Global.asax.

I see. Maybe if I could prevent the HttpModules from running on those static requests... – Chris Pietschmann Sep 6 at 14:16.

I removed the "runAllManagedModulesForAllRequests='true'" definition in the web. Config and added "preCondition='managedHandler" to the HttpModule registrations that I don't want to execute for static content. I also implemented Darin's answer.

Not entirely what I was looking for, but it seems to fit the bill. UPDATE: On second thought, do NOT remove "runAllManagedModulesForAllRequests=true from web. Config, the site will not run on Azure even though it does run on the local azure cloud using the SDK.

:(.

"to prevent asp.net mvc from handling static files on windows azure" - Google Search.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions