This API supports the product infrastructure and is not intended to be used directly from your code.
Initializes a new instance of the HttpListenerException class from the specified instances of the SerializationInfo and StreamingContext classes.

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

Associated Tips

Make sure you are not attempting to register a URI prefix that is already registered.

If the URI prefix is already registered, this exception will occur.

Make sure your HTTP request is valid.

This exception is thrown by the HttpListener class and its associated classes when an error occurs during the initialization of the HttpListener or while creating or sending a response to an HTTP request.

If you are using the HttpListenerPrefixCollection.Add method, make sure the uriPrefix has not been already added.

This exception will be thrown if another HttpListener has already added the prefix uriPrefix.