What is the order of the processing of modules in IIS?
I think this may depend on your configuration.
To see the execution order of modules on your server, enable Failed Request Tracing
for the site and then review the Request Details
or Compact View
in the log files.