System.Net.HttpListenerException Class

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

See Also: HttpListenerException Members


public class HttpListenerException : System.ComponentModel.Win32Exception


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.


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