Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...DNN 7.2 Getting Started screen errorDNN 7.2 Getting Started screen error
Previous
 
Next
New Post
12/5/2013 11:31 AM
 
Good to know it's working for some. Not sure why I had to add runAllManagedModulesForAllRequests. Will check on whether that update has been installed, it looks like that could help regardless. Thanks for the tip there!

This install was on Windows Server 2008 SP2, SQL 2008, and .Net Framework 4.0.30319
A pretty standard setup, nothing crazy.
 
New Post
12/5/2013 11:51 AM
 
Hi Wes,

>>In particular - with the value set to true - there are handlers getting fired every time a image element is downloaded for example - same for any media

You sure about that bit? I thought a request for .jpg/png etc would be handled directly by IIS and never passed to ASP.Net. Different maybe under Visual Studio using Cassini, but in live running I'd expect those requests never to hit ASP.Net.

Did I miss something?

Best wishes,
- Richard
Agile Development Consultant, Practitioner, and Trainer
www.dynamisys.co.uk
 
New Post
12/5/2013 6:43 PM
 

That used to be the case - but when asp.net 4.0 integrated mode came into being things moved around a lot.

  • If runAllManagedModulesForAllRequests="true", all modules - regardless of their preCondition attribute setting fire on all requests. This also true for Application_XXXX events implement on the HttpApplication
There are a number of references to this around the web -  http://www.britishdeveloper.co.uk/201... for one.  And  http://weblog.west-wind.com/posts/201... and another.

 

See basically - in this new integrated mode - a call to myimage.jpeg - could actually be served by a httpmodule - and there are quite a number of sites and places where this sort of thing is the case.   

Take a image hosting site that wants to ensure every image on their site it watermarked and timestamped.  Because the handlers CAN be set to fire for every type of event - it is possible to tell a handler in its preconditions to fire for ALL REQUESTS - intercept the request before it gets to the normal IIS image load layer - load the image internally- watermark it on the fly - and hand the watermarked and timestamped or whatever image onto the requesting browser.

By default handlers ONLY fire when their preconditions parameters are set - each httpmodule declares a set of preconditions for when it is run.  As a rule - most managed modules are set by default with a precondition=managedHandler - this tells the module to work like you work expect - and to ONLY run for requests that are routed to managed requests - such as a aspx page or asmx stream.

However - what  runAllManagedModulesForAllRequests=true does in not exactly what people expect - it does not just turn on a switch to tell all modules to fire for managedRequests --- what it really does is change the default precondition to "" for every module -  which in effect tells all the modules to fire for EVERY request sent to the host.  And EVERY means EVERY - anything that hits the server from a txt file to a jpg to a wmv.

So what is the real issue behind all this issue showing up on MOST dnn systems --  it has a lot to do with extensionless requests -- this issue started to crop into DNN when the advanced url system was created - BECAUSE it allows the use of page requests that dont have an aspx extension.

For such extensionless requests to work and be redirected to the right places inside IIS - requests need to be handled and processed before iis gets hold of them internally - there was a bug in how IIS handled this that meant extensionless requests were being passed to IIS instead of the right handlers.

And its the reason why the service patch mentioned in a previous post fixes the issue it almost every case - its a patch that changed how extensionless requests are handled.

Westa


 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...DNN 7.2 Getting Started screen errorDNN 7.2 Getting Started screen error


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out