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.
To resolve the problem, follow these steps:
- Click Start, click Run, type cmd in the Open box, and then click OK to open a command prompt.
- At the command prompt, type the following command, and then click OK:
regsvr32
%windir%\system32\inetsrv\iislog.dll
- 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.