Export (0) Print
Expand All

MessageHeaderException Class

The exception that is thrown when the expectations regarding headers of a SOAP message are not satisfied when the message is processed.

Namespace: System.ServiceModel
Assembly: System.ServiceModel (in system.servicemodel.dll)

[SerializableAttribute] 
public class MessageHeaderException : ProtocolException
/** @attribute SerializableAttribute() */ 
public class MessageHeaderException extends ProtocolException
SerializableAttribute 
public class MessageHeaderException extends ProtocolException
Not applicable.

This exception is typically thrown when there are too many headers or headers are missing from the message. This can include infrastructure headers such as the Action and Reliable Message headers. This exception derives from ProtocolException, which in turn derives from CommunicationException. The CommunicationException class represents a class of recoverable errors that may be thrown during communication between endpoints and that robust Windows Communication Foundation (WCF) client and service applications are expected to handle. To prevent the more generic CommunicationException handler from catching the more specific ProtocolException, catch this exception prior to handling CommunicationException.

System.Object
   System.Exception
     System.SystemException
       System.ServiceModel.CommunicationException
         System.ServiceModel.ProtocolException
          System.ServiceModel.MessageHeaderException

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 CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, 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

Community Additions

ADD
Show:
© 2014 Microsoft