Execution order of modules in IIS7
Changing order of Modules
问题
Is it possible to change the order of modules via script (appcmd)?
In IIS 7.5, on the server node, within modules you can select "View Ordered list" and in there you can modify the order of modules.
I'm looking for a way to do this via script.
Essentially, I've built a custom ASP.Net module and am creating an installer for it, however the order of where this module is placed is important.
回答
My suggestion is to access applicationHost.config directly if you really care about order. As far as I test, I don't see any way to achieve what you want via appcmd.
ASP.NET Application Life Cycle Overview for IIS 7.0
The Custom module managed-code class. It is invoked during the Log request stage.