IIS7 Failure after installing Advanced Logging

Posted by Guy Harwood on ASP.net Weblogs See other posts from ASP.net Weblogs or by Guy Harwood
Published on Tue, 20 Apr 2010 15:34:40 GMT Indexed on 2010/04/20 15:43 UTC
Read the original article Hit count: 1939

Filed under:
|
|

I came across a nasty issue when i installed the Advanced Logging feature for IIS7 via the Web Platform Installer on my Windows 2008 Server.  Basically, after installation and reboot none of my sites were working and returned 503 – Internal Server Error.

Snooping around in the Event Viewer i found the following error reported by the W3SVC…

The Module DLL C:\Program Files\IIS\Advanced Logging\AdvancedLoggingModule.dll failed to load.  
The data is the error

Even though the DLLs are there, it is not picking them up.

I managed to find a fix via google that involves editing the configapplicationHost.config file in the C:\Windows\System32\inetsrv\ directory.

1.  Copy AdvancedLoggingModule.dll and ClientLoggingHandler.dll to %windir%\system32 (C:\windows\system32  on a default setup)

2.  Locate the file C:\Windows\System32\inetsrv\configapplicationHost.config and make a backup, then open it in a text editor (i recommend Notepad++).

3.  Search for the following 2 lines (mine are located on line 570)..

<add name="ClientLoggingHandler" image="%ProgramFiles%\IIS\Advanced Logging\ClientLoggingHandler.dll" />
<add name="AdvancedLoggingModule" image="%ProgramFiles%\IIS\Advanced Logging\AdvancedLoggingModule.dll" />

and alter them to….

<add name="ClientLoggingHandler" image="%windir%\system32\ClientLoggingHandler.dll" />
<add name="AdvancedLoggingModule" image="%windir%\system32\AdvancedLoggingModule.dll" />

4. Open a command prompt and run iisReset.

5. All sites should now be working.

© ASP.net Weblogs or respective owner

Related posts about ASP.NET

Related posts about iis7