Event ID 5182 — IIS HWC Configuration
Applies To: Windows Server 2008
Because the Hosted Web Core (HWC) operates independently of the main IIS configuration store, developers must create their own configuration file that follows the design of ApplicationHost.config. HWC configuration requires that there be only one application pool and at least one Web site.
Event Details
Product: | Internet Information Services |
ID: | 5182 |
Source: | Microsoft-Windows-WAS |
Version: | 7.0 |
Symbolic Name: | WAS_NO_VIRTUAL_SITES_DEFINED_HOSTABLE_WEB_CORE |
Message: | No virtual sites have been configured for the hostable web core instance. The data field contains the error number. |
Resolve
Define a Web site
HWC configuration requires that there be at least one Web site defined in the <sites> section of your custom configuration file. To resolve this issue, follow these steps:
To perform this procedure, you must have membership in Administrators, or you must have been delegated the appropriate authority.
To add a site to an HWC configuration file:
- Open your custom HWC configuration file in a text editor.
- Find the sites section.
- Create at least one site entry following the schema on which your configuration file is based.
- Save the file and exit the text editor.
Verify
To perform this procedure, you must have membership in Administrators, or you must have been delegated the appropriate authority.
To verify that the Hosted Web Core is functioning correctly, follow these steps:
- Open Internet Explorer.
- Send a request to an application that is running in HWC.
- Confirm that the expected page is displayed.
- Open the logs for the Web site and make sure 200 OK (request succeeded) is logged for the request that you made. By default, Web site logs are located in the %SystemDrive%\inetpub\logs\LogFiles directory.
Note: If logging is set to centralized, the log file size will grow over time. The minimum possible (and configurable) log file size is 1 MB.