System.Net.HttpListenerException Class

The exception that is thrown when an error occurs processing an HTTP request.

See Also: HttpListenerException Members

Syntax

public class HttpListenerException : System.ComponentModel.Win32Exception

Remarks

This exception is thrown by the System.Net.HttpListener class and its associated classes when an error occurs during initialization of the System.Net.HttpListener or while creating or sending a response to an HTTP request. For example, this exception is thrown if the System.Net.HttpListener attempts to register a Uniform Resource Identifier (URI) prefix that is already registered.

Requirements

Namespace: System.Net
Assembly: System (in System.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0