System.Net.ProtocolViolationException Class

The exception that is thrown when an error is made while using a network protocol.

See Also: ProtocolViolationException Members


public class ProtocolViolationException : InvalidOperationException


A System.Net.ProtocolViolationException is thrown by descendants of System.Net.WebRequest and System.Net.WebResponse to indicate an error using the underlying protocol. For example, the System.Net.HttpWebRequest and System.Net.HttpWebResponse classes throw a System.Net.ProtocolViolationException to indicate an error using HTTP.

Thread Safety

All public static members of this type are safe for multithreaded operations. No instance members are guaranteed to be thread safe.


Namespace: System.Net
Assembly: System (in System.dll)
Assembly Versions: 1.0.x.x, 1.0.5000.0,,