IisTraceListener Class

Provides a listener that routes all tracing and debugging output to the IIS 7.0 infrastructure.

Namespace: System.Web
Assembly: System.Web (in system.web.dll)

public sealed class IisTraceListener : TraceListener
public final class IisTraceListener extends TraceListener
public final class IisTraceListener extends TraceListener
Not applicable.

The IisTraceListener class connects the tracing mechanism of ASP.NET to IIS 7.0. This listener class enables developers who create ASP.NET applications and who implement the IHttpModule and IHttpHandler interfaces to raise page-level, module-level, or handler-level events to the IIS 7.0 infrastructure when tracing is enabled.


This listener class does not route IIS 7.0 events to ASP.NET classes. This includes the Page class and classes that implement the IHttpModule or IHttpHandler interface.

IisTraceListener is introduced in the . For more information, see The .NET Framework 3.5 Architecture.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0