Define a global module
In order for IIS to be able to serve requests successfully, there must be at least one global module defined in the in the globalModules section in the ApplicationHost.config file. The module definition must have a unique name attribute for the module and an image attribute that specifies the file system path of the .dll file that contains the global module.
Add a global module definition to ApplicationHost.config
To add a global module definition to ApplicationHost.config by using notepad:
-
Open an elevated Command Prompt window. Click Start, point to All Programs, click Accessories, right-click Command Prompt, and then click Run as administrator.
-
Type cd %Windir%\system32\inetsrv\config
-
Type notepad applicationHost.config
-
In notepad, search for the globalModules section under the system.webServer section.
-
Add a module entry that contains the name and image attributes. An example is shown in the following section.
-
Save the ApplicationHost.config file, and exit notepad.
Sample Global Module Definition
<globalModules>
<add name="AccessCheckModule"
image="D:\Windows\system32\inetsrv\checkacc.dll"
preCondition=""
/>
</globalModules>
For more information about the globalModules section, see IIS 7: add Element for globalModules (IIS Settings Schema).
|