Article ID: 833660 - Last Review: November 21, 2006 - Revision: 1.2

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

Expand all | Collapse all

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.

APPLIES TO
  • Microsoft Internet Information Services 5.0
Keywords: 
kbprb kbinprocsvr kbiisam kbconfig KB833660
Retired KB ArticleRetired KB Content Disclaimer
This article was written about products for which Microsoft no longer offers support. Therefore, this article is offered "as is" and will no longer be updated.
 

Article Translations