Symptoms
When you browse Alert hosted by IIS, you may encounter one of the following problems:
- An error message similar to the following is displayed: HTTP 500 - Internal Server Error
OR - You are presented with a simple blank page in the web browser window.
Cause
This problem can occur for one of the following reasons:
- The StaticFileModule is not installed in the current installation of IIS
OR - The StaticFileHandler is missing StaticFileModule from its module list.
Resolution
To resolve this problem, install the Static Content feature of the Common HTTP Features under the Web Server role on the webserver. If the Static Content feature is already installed, then simply edit the StaticFileHandler mappings using the IIS Manager user interface to add StaticFileModule to the module list.
To install the Static Content feature on Windows Server, follow these steps:
- Open Server Manager, and then expand Roles.
- Right-click Web Server (IIS), and then click Add Role Services.
- Under Web Server, click to select the "Static Content" check box.
- Click Next to complete the installation.
To install the Static Content feature on the Windows Vista and Windows 7 client operating systems, follow these steps:
- Click Start, and then click Control Panel.
- Double-click Programs and Features.
- Click Turn Windows features on or off.
Note: If you are prompted for an administrator password or for a confirmation, type the password or click Continue. - Expand Internet Information Services --> World Wide Web Services --> Common HTTP Features --> Click the Static Content check box to install, and then click OK.
To edit the StaticFileHandler mappings, follow these steps:
- Click Start, type Inetmgr in the Start Search box, and then click Inetmgr in the Programs list.
Note: If you are prompted for an administrator password or for a confirmation, type the password or click Continue. - In IIS Manager, expand server name, expand Web sites, and then click the web site that you want to modify the settings for.
- In Features view, double-click Handler Mappings.
- In the Handler Mappings panel, right-click the StaticFile handler mapping, and then click Edit.
- In the Edit Module Mapping dialog box, add StaticFileModule in Module box by manually typing it, and then click OK.
Note: The default entries in the Module box are StaticFileModule,DefaultDocumentModule,DirectoryListingModule