Share via


Event ID 5182 — IIS HWC Configuration

Applies To: Windows Server 2008 R2

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.5
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:

  1. Open your custom HWC configuration file in a text editor.
  2. Find the sites section.
  3. Create at least one site entry following the schema on which your configuration file is based.
  4. 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:

  1. Open Internet Explorer.
  2. Send a request to an application that is running in HWC.
  3. Confirm that the expected page is displayed.
  4. 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.

IIS HWC Configuration

Internet Information Services (IIS) 7.5