Event ID 5066 — IIS WAS Configuration

Applies To: Windows Server 2008 R2

The Internet Information Services (IIS) Windows Process Activation Service (WAS) configuration manager manages configuration for the application pools and protocol adapters that it maintains. If WAS encounters problems when it reads configuration or reacts to configuration change notifications, configuration changes for the entities it manages may not be processed.

Event Details

Product: Internet Information Services
ID: 5066
Source: Microsoft-Windows-WAS
Version: 7.5
Message: The Windows Process Activation Service encountered an error attempting to configure centralized logging. It is not configured as expected. The data field contains the error number.


Correct central logging

To correct the central logging configuration, use IIS Manager, then stop and restart the W3SVC to reapply the configuration. If you are not sure which configuration values to use, use the default logging values for IIS that can be found in the <sectionSchema name="system.applicationHost/log"> section of the %SystemDrive%\Windows\System32\inetsrv\config\schema \IIS_Schema.xml file.

To perform these procedures, you must have membership in Administrators, or you must have been delegated the appropriate authority.

View the default IIS logging values

To view the default IIS logging values by using notepad:

  1. Open an elevated Command Prompt window. Click Start, point to All Programs, click Accessories, right-click Command Prompt, and then click Run as administrator.
  2. Type cd %Windir%\system32\inetsrv\config\schema.
  3. Type notepad IIS_schema.xml
  4. In notepad, search for system.applicationHost/log. The log section and its elements appear. Default values are indicated with the defaultValue attribute.

Configure central logging by using IIS Manager

To configure central logging by using IIS Manager:

  1. Click Start, click Control Panel, and then click Administrative Tools.
  2. Right-click Internet Information Services (IIS) Manager and select Run as administrator.
  3. In the Connections pane, select the computer name.
  4. In Features View, double-click Logging.
  5. Configure the settings on the Logging page, and then click Apply.

Stop and restart the W3SVC

To stop and restart the W3SVC:

  1. Click Start, right-click Computer, and then select Manage.
  2. In Server Manager, expand Configuration.
  3. Click Services and locate World Wide Web Publishing Service in the list of services.
  4. Right-click World Wide Web Publishing Service and select Stop.
  5. Right-click World Wide Web Publishing Service again and select Start.


If the Windows Process Activation Service (WAS) is configured correctly, IIS will serve pages successfully.

To confirm that WAS is executing successfully, perform the follow these steps:

  1. Open Internet Explorer.
  2. Browse to http://localhost or your Web site's default home page.
  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 previous request. 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 WAS Configuration

Internet Information Services (IIS) 7.5