Event ID 5066 — IIS WAS Configuration
Applies To: Windows Server 2008
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.
|Product:||Internet Information Services|
|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:
- 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\schema.
- Type notepad IIS_schema.xml
- 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:
- Click Start, click Control Panel, and then click Administrative Tools.
- Right-click Internet Information Services (IIS) Manager and select Run as administrator.
- In the Connections pane, select the computer name.
- In Features View, double-click Logging.
- Configure the settings on the Logging page, and then click Apply.
Stop and restart the W3SVC
To stop and restart the W3SVC:
- Click Start, right-click Computer, and then select Manage.
- In Server Manager, expand Configuration.
- Click Services and locate World Wide Web Publishing Service in the list of services.
- Right-click World Wide Web Publishing Service and select Stop.
- 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:
- Open Internet Explorer.
- Browse to http://localhost or your Web site's default home page.
- 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 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.