2 types derived from ProtocolException
dotnet-svcutil-lib (2)
FrameworkFork\System.ServiceModel\System\ServiceModel\ActionMismatchAddressingException.cs (1)
10internal class ActionMismatchAddressingException : ProtocolException
FrameworkFork\System.ServiceModel\System\ServiceModel\MessageHeaderException.cs (1)
10public class MessageHeaderException : ProtocolException
48 instantiations of ProtocolException
dotnet-svcutil-lib (48)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\BinaryMessageEncoder.cs (2)
832throw FxTrace.Exception.AsError(new ProtocolException(string.Format(SRServiceModel.EncoderUnrecognizedContentType, contentType, this.ContentType))); 851throw FxTrace.Exception.AsError(new ProtocolException(string.Format(SRServiceModel.EncoderUnrecognizedContentType, contentType, this.ContentType)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\FaultConverter.cs (4)
97exception = new ProtocolException(fault.Reason.GetMatchingTranslation(CultureInfo.CurrentCulture).Text); 161exception = new ProtocolException(fault.Reason.GetMatchingTranslation(CultureInfo.CurrentCulture).Text); 169exception = new ProtocolException(fault.Reason.GetMatchingTranslation(CultureInfo.CurrentCulture).Text); 174exception = new ProtocolException(fault.Reason.GetMatchingTranslation(CultureInfo.CurrentCulture).Text);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\FramingChannels.cs (1)
608new ProtocolException(string.Format(SRServiceModel.ServerRejectedSessionPreamble, via),
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\FramingDecoders.cs (7)
267return new ProtocolException(string.Format(SRServiceModel.FramingContentTypeMismatch, contentType, via)); 288return new ProtocolException(string.Format(SRServiceModel.FramingModeNotSupportedFault, via)); 292return new ProtocolException(string.Format(SRServiceModel.FramingVersionNotSupportedFault, via)); 310return new ProtocolException(string.Format(SRServiceModel.FramingUpgradeInvalid, via)); 314return new ProtocolException(string.Format(SRServiceModel.FramingFaultUnrecognized, faultString)); 423throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ProtocolException(exceptionString, inner)); 456return new ProtocolException(string.Format(SRServiceModel.FramingError, StreamPosition, CurrentStateAsString),
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpChannelFactory.cs (3)
1086new ProtocolException(string.Format(SRServiceModel.HttpSoapActionMismatch, action, value))); 1144new ProtocolException(string.Format(SRServiceModel.HttpIfModifiedSinceParseError, value))); 1191new ProtocolException(string.Format(SRServiceModel.EnvelopeVersionUnknown,
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpChannelHelpers.cs (2)
154new ProtocolException(string.Format(SRServiceModel.UnexpectedHttpResponseCode, 181ProtocolException exception = new ProtocolException(message);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpResponseMessageHelper.cs (10)
92result = new ProtocolException(string.Format(SRServiceModel.HttpAddressingNoneHeaderOnWire, 111result = new ProtocolException(string.Format(SRServiceModel.HttpAddressingNoneHeaderOnWire, 142throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ProtocolException(SRServiceModel.HttpContentTypeHeaderRequired)); 154new ProtocolException( 191new ProtocolException(SRServiceModel.MessageXmlProtocolError, xmlException)); 219new ProtocolException(SRServiceModel.HttpContentLengthIncorrect)); 242new ProtocolException(SRServiceModel.MessageXmlProtocolError, xmlException)); 280new ProtocolException(SRServiceModel.MessageXmlProtocolError, xmlException)); 338throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ProtocolException(string.Format(SRServiceModel.MissingContentType, _httpRequestMessage.RequestUri))); 341throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ProtocolException(string.Format(SRServiceModel.FramingContentTypeMismatch, _httpRequestMessage.Content.Headers.ContentType.ToString(), _httpRequestMessage.RequestUri)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MessageContent.cs (3)
73new ProtocolException(string.Format(SRServiceModel.HttpSoapActionMismatch, action, value))); 106new ProtocolException(string.Format(SRServiceModel.HttpSoapActionMismatchContentType, action, value))); 113new ProtocolException(string.Format(SRServiceModel.HttpContentTypeFormatException, formatException.Message, Headers.ContentType.ToString()), formatException));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MessageEncoder.cs (1)
228new ProtocolException(string.Format(SRServiceModel.EncoderMessageVersionMismatch, message.Version, MessageVersion)),
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ServiceChannel.cs (3)
571throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ProtocolException(SRServiceModel.SFxClientOutputSessionAutoClosed)); 933Exception error = new ProtocolException(string.Format(SRServiceModel.SFxReplyActionMismatch3, 1073throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new ProtocolException(
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\SessionConnectionReader.cs (1)
397new ProtocolException(SRServiceModel.MessageXmlProtocolError, xmlException));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\TextMessageEncoder.cs (2)
220throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ProtocolException(SRServiceModel.EncoderBadContentType, e)); 226throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ProtocolException(string.Format(SRServiceModel.EncoderUnrecognizedCharSet, charSet)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\WebSocketTransportDuplexSessionChannel.cs (1)
1243throw FxTrace.Exception.AsError(new ProtocolException(SRServiceModel.WebSocketUnexpectedCloseMessageError));
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\ProxyOperationRuntime.cs (1)
202throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ProtocolException(string.Format(SRServiceModel.SFxHeaderNotUnderstood, headersNotUnderstood[0].Name, headersNotUnderstood[0].Namespace)));
FrameworkFork\System.ServiceModel\System\ServiceModel\EndpointAddress.cs (1)
323new ProtocolException(string.Format(SRServiceModel.AddressingVersionNotSupported, message.Version.Addressing)));
FrameworkFork\System.ServiceModel\System\ServiceModel\ProtocolException.cs (6)
25return new ProtocolException(text); 30return new ProtocolException(text); 36return new ProtocolException(text); 49return new ProtocolException(text); 54return new ProtocolException(text); 60return new ProtocolException(text);
10 references to ProtocolException
dotnet-svcutil-lib (10)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpChannelHelpers.cs (2)
179internal static ProtocolException CreateHttpProtocolException(string message, HttpStatusCode statusCode, string statusDescription) 181ProtocolException exception = new ProtocolException(message);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\TransportDuplexSessionChannel.cs (4)
676ProtocolException error = ProtocolException.ReceiveShutdownReturnedNonNull(message); 689ProtocolException error = ProtocolException.ReceiveShutdownReturnedNonNull(message);
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\RequestChannelBinder.cs (2)
113ProtocolException error = ProtocolException.OneWayOperationReturnedNonNull(message);
FrameworkFork\System.ServiceModel\System\ServiceModel\ProtocolException.cs (2)
16internal static ProtocolException ReceiveShutdownReturnedNonNull(Message message) 40internal static ProtocolException OneWayOperationReturnedNonNull(Message message)