Skip to content

Instantly share code, notes, and snippets.

@jbrinkman
Last active December 19, 2015 02:09
Show Gist options
  • Save jbrinkman/5880743 to your computer and use it in GitHub Desktop.
Save jbrinkman/5880743 to your computer and use it in GitHub Desktop.
This is a short DNN Manifest configuration section that allows you to register an HTTPModule in your web.config file.
<component type="Config">
<config>
<configFile>web.config</configFile>
<install>
<configuration>
<nodes>
<node path="/configuration/system.webServer/modules" action="update" key="name" collision="overwrite">
<add name="MyModuleAPI" type="DotNetNuke.Modules.MyModule.Components.InitializeApplication, MyModule" preCondition="managedHandler"/>
</node>
</nodes>
</configuration>
</install>
<uninstall>
<configuration>
<nodes >
<node path="/configuration/system.webServer/modules/add[@name='MyModuleAPI']" action="remove" />
</nodes>
</configuration>
</uninstall>
</config>
</component>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment