IIS logging does not work and event ID 2 is logged in the system log (833660)



The information in this article applies to:

  • Microsoft Internet Information Services 5.0

SYMPTOMS

Internet Information Services (IIS) logging may not work correctly, and the extended logging properties may be blank. You may also receive an error that is similar to the following in the system log of the event viewer: Event Type: Error
Event Source: IISLOG
Category: None
Event ID: 2
Date: <Date>
Time: <Time>
User: N/A
Computer: <Computer Name>
Description: IIS Logging was unable to create the directory <Directory Name>. The data is the error.Note The directory name that is listed may not contain readable text.

RESOLUTION

To resolve the problem, follow these steps:
  1. Click Start, click Run, type cmd in the Open box, and then click OK to open a command prompt.
  2. At the command prompt, type the following command, and then click OK:

    regsvr32 %windir%\system32\inetsrv\iislog.dll

  3. If the IISLog.dll file is successfully registered, restart the IIS services. To do this, type the following command at a command prompt, and then click OK:

    iisreset

    Note This event may have other causes. This article only addresses a specific instance.

Modification Type:MinorLast Reviewed:2/24/2004
Keywords:kbprb kbInprocSvr kbIISAM kbConfig KB833660 kbAudDeveloper