Event ID - 5066

Event Id5066
SourceMicrosoft-Windows-WAS
DescriptionThe 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.
Event Information According to Microsoft :

Cause :

This event is logged when Windows Process Activation Service encountered an error attempting to configure centralized logging.

Resolution :

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

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.
Reference LinksEvent ID 5066 from Microsoft-Windows-WAS

Catch threats immediately

We work side-by-side with you to rapidly detect cyberthreats
and thwart attacks before they cause damage.

See what we caught

Did this information help you to resolve the problem?

Yes: My problem was resolved.
No: The information was not helpful / Partially helpful.