3 types derived from ProtocolException
System.ServiceModel.Primitives (3)
System\ServiceModel\ActionMismatchAddressingException.cs (1)
12internal class ActionMismatchAddressingException : ProtocolException
System\ServiceModel\Channels\WsrmMessageInfo.cs (1)
572private class InternalFaultException : ProtocolException
System\ServiceModel\MessageHeaderException.cs (1)
12public class MessageHeaderException : ProtocolException
81 instantiations of ProtocolException
System.ServiceModel.Http (19)
System\ServiceModel\Channels\HttpChannelFactory.cs (3)
1205new ProtocolException(SR.Format(SR.HttpSoapActionMismatch, action, value))); 1259new ProtocolException(SR.Format(SR.HttpIfModifiedSinceParseError, value))); 1306new ProtocolException(SR.Format(SR.EnvelopeVersionUnknown,
System\ServiceModel\Channels\HttpChannelHelpers.cs (2)
172new ProtocolException(SR.Format(SR.UnexpectedHttpResponseCode, 199ProtocolException exception = new ProtocolException(message);
System\ServiceModel\Channels\HttpResponseMessageHelper.cs (10)
94result = new ProtocolException(SR.Format(SR.HttpAddressingNoneHeaderOnWire, 113result = new ProtocolException(SR.Format(SR.HttpAddressingNoneHeaderOnWire, 145throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ProtocolException(SR.HttpContentTypeHeaderRequired)); 157new ProtocolException( 196new ProtocolException(SR.MessageXmlProtocolError, xmlException)); 225new ProtocolException(SR.HttpContentLengthIncorrect)); 256new ProtocolException(SR.MessageXmlProtocolError, xmlException)); 295new ProtocolException(SR.MessageXmlProtocolError, xmlException)); 363throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ProtocolException(SR.Format(SR.MissingContentType, _httpRequestMessage.RequestUri))); 366throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ProtocolException(SR.Format(SR.FramingContentTypeMismatch, _httpRequestMessage.Content.Headers.ContentType.ToString(), _httpRequestMessage.RequestUri)));
System\ServiceModel\Channels\MessageContent.cs (3)
79new ProtocolException(SR.Format(SR.HttpSoapActionMismatch, action, value))); 112new ProtocolException(SR.Format(SR.HttpSoapActionMismatchContentType, action, value))); 119new ProtocolException(SR.Format(SR.HttpContentTypeFormatException, formatException.Message, Headers.ContentType.ToString()), formatException));
System\ServiceModel\Channels\WebSocketTransportDuplexSessionChannel.cs (1)
1215throw FxTrace.Exception.AsError(new ProtocolException(SR.WebSocketUnexpectedCloseMessageError));
System.ServiceModel.NetFramingBase (13)
System\ServiceModel\Channels\FramingChannels.cs (1)
464new ProtocolException(SR.Format(SR.ServerRejectedSessionPreamble, via),
System\ServiceModel\Channels\FramingDecoders.cs (7)
276return new ProtocolException(SR.Format(SR.FramingContentTypeMismatch, contentType, via)); 297return new ProtocolException(SR.Format(SR.FramingModeNotSupportedFault, via)); 301return new ProtocolException(SR.Format(SR.FramingVersionNotSupportedFault, via)); 319return new ProtocolException(SR.Format(SR.FramingUpgradeInvalid, via)); 323return new ProtocolException(SR.Format(SR.FramingFaultUnrecognized, faultString)); 426throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ProtocolException(exceptionString, inner)); 459return new ProtocolException(SR.Format(SR.FramingError, StreamPosition, CurrentStateAsString),
System\ServiceModel\Channels\SessionConnectionReader.cs (1)
283new ProtocolException(SR.MessageXmlProtocolError, xmlException));
System\ServiceModel\Channels\SingletonConnectionReader.cs (1)
194new ProtocolException(SR.Format(SR.MessageXmlProtocolError), xmlException));
System\ServiceModel\Channels\TransportDuplexSessionChannel.cs (3)
664return new ProtocolException(text); 669return new ProtocolException(text); 675return new ProtocolException(text);
System.ServiceModel.Primitives (49)
System\ServiceModel\Channels\BinaryMessageEncoder.cs (2)
830throw FxTrace.Exception.AsError(new ProtocolException(SRP.Format(SRP.EncoderUnrecognizedContentType, contentType, ContentType))); 849throw FxTrace.Exception.AsError(new ProtocolException(SRP.Format(SRP.EncoderUnrecognizedContentType, contentType, ContentType)));
System\ServiceModel\Channels\ChannelReliableSession.cs (4)
318e = new ProtocolException(SRP.MessageExceptionOccurred, info.ParsingException); 329e = new ProtocolException(SRP.Format(SRP.WrongIdentifierFault, FaultException.GetSafeReasonText(info.WsrmHeaderFault.Reason))); 744throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ProtocolException(SRP.UnparsableCSResponse, info.ParsingException)); 800throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ProtocolException(exceptionReason));
System\ServiceModel\Channels\ClientReliableDuplexSessionChannel.cs (1)
429remoteFaultException = new ProtocolException(SRP.EarlyTerminateSequence);
System\ServiceModel\Channels\CreateSequence.cs (5)
79throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(WsrmMessageInfo.CreateInternalFaultException(faultReply, reason, new ProtocolException(reason))); 102new ProtocolException(reason))); 140throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(WsrmMessageInfo.CreateInternalFaultException(faultReply, reason, new ProtocolException(reason))); 155throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(WsrmMessageInfo.CreateInternalFaultException(faultReply, reason, new ProtocolException(reason))); 164throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(WsrmMessageInfo.CreateInternalFaultException(faultReply, reason, new ProtocolException(reason, e)));
System\ServiceModel\Channels\FaultConverter.cs (4)
98exception = new ProtocolException(fault.Reason.GetMatchingTranslation(CultureInfo.CurrentCulture).Text); 162exception = new ProtocolException(fault.Reason.GetMatchingTranslation(CultureInfo.CurrentCulture).Text); 170exception = new ProtocolException(fault.Reason.GetMatchingTranslation(CultureInfo.CurrentCulture).Text); 175exception = new ProtocolException(fault.Reason.GetMatchingTranslation(CultureInfo.CurrentCulture).Text);
System\ServiceModel\Channels\MessageEncoder.cs (1)
245new ProtocolException(SRP.Format(SRP.EncoderMessageVersionMismatch, message.Version, MessageVersion)),
System\ServiceModel\Channels\MessageHeaders.cs (2)
1097new InvalidOperationException(message, new ProtocolException(message))); 1473new InvalidOperationException(message, new ProtocolException(message)));
System\ServiceModel\Channels\ReliableMessagingHelpers.cs (4)
841new ProtocolException(SRP.Format(SRP.AddressingVersionNotSupported, messageVersion.Addressing))); 1252new ProtocolException(SRP.Format(SRP.AddressingVersionNotSupported, addressingVersion))); 1856return new ProtocolException(reason); 1880return new ProtocolException(SRP.Format(SRP.UnrecognizedFaultReceivedOnOpen, fault.Code.Namespace, fault.Code.Name, FaultException.GetSafeReasonText(fault)));
System\ServiceModel\Channels\ReliableOutputSessionChannel.cs (1)
517_session.OnRemoteFault(new ProtocolException(SRP.UnsupportedTerminateSequenceExceptionString));
System\ServiceModel\Channels\ServiceChannel.cs (3)
555throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ProtocolException(SRP.SFxClientOutputSessionAutoClosed)); 936Exception error = new ProtocolException(SRP.Format(SRP.SFxReplyActionMismatch3, 1088throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new ProtocolException(
System\ServiceModel\Channels\TextMessageEncoder.cs (2)
221throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ProtocolException(SRP.EncoderBadContentType, e)); 229throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ProtocolException(SRP.Format(SRP.EncoderUnrecognizedCharSet, charSet)));
System\ServiceModel\Channels\WsrmFault.cs (1)
114return new ProtocolException(message);
System\ServiceModel\Channels\WsrmMessageInfo.cs (8)
114return CreateInternalFaultException(faultReply, exceptionReason, new ProtocolException(exceptionReason)); 492messageInfo._faultException = new ProtocolException(SRP.Format(SRP.UnrecognizedFaultReceived, messageInfo.MessageFault.Code.Namespace, messageInfo.MessageFault.Code.Name, System.ServiceModel.FaultException.GetSafeReasonText(messageInfo.MessageFault))); 543messageInfo._faultException = new ProtocolException(SRP.MessageExceptionOccurred, exception); 547messageInfo.ParsingException = new ProtocolException(SRP.MessageExceptionOccurred, exception); 555messageInfo.ParsingException = new ProtocolException(SRP.MessageExceptionOccurred, exception); 706throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(WsrmMessageInfo.CreateInternalFaultException(faultReply, reason, new ProtocolException(reason))); 723throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(WsrmMessageInfo.CreateInternalFaultException(faultReply, reason, new ProtocolException(reason))); 755throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(WsrmMessageInfo.CreateInternalFaultException(faultReply, reason, new ProtocolException(reason)));
System\ServiceModel\Dispatcher\ProxyOperationRuntime.cs (1)
182throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ProtocolException(SRP.Format(SRP.SFxHeaderNotUnderstood, headersNotUnderstood[0].Name, headersNotUnderstood[0].Namespace)));
System\ServiceModel\EndpointAddress.cs (1)
289new ProtocolException(SRP.Format(SRP.AddressingVersionNotSupported, message.Version.Addressing)));
System\ServiceModel\ProtocolException.cs (6)
30return new ProtocolException(text); 35return new ProtocolException(text); 41return new ProtocolException(text); 54return new ProtocolException(text); 59return new ProtocolException(text); 65return new ProtocolException(text);
System\ServiceModel\Security\SecuritySessionClientSettings.cs (3)
541Fault(new ProtocolException(SRP.UnexpectedSecuritySessionCloseResponse)); 555Fault(new ProtocolException(SRP.UnexpectedSecuritySessionClose)); 607new ProtocolException(SRP.Format(SRP.AddressingVersionNotSupported, closeMessage.Version.Addressing)));
18 references to ProtocolException
Client.ExpectedExceptions.IntegrationTests (2)
ExpectedExceptionTests.4.1.0.cs (2)
198ProtocolException exception = Assert.Throws<ProtocolException>(() =>
Contract.Message.IntegrationTests (1)
MessageContractTests.cs (1)
57Assert.Throws<ProtocolException>(() =>
Encoding.Encoders.IntegrationTests (1)
TextEncodingTests.4.1.0.cs (1)
31Assert.Throws<ProtocolException>(() => { serviceProxy.ReturnContentType(testContentType); });
Security.TransportSecurity.IntegrationTests (1)
Negotiate\NegotiateStream_Http_Tests.4.1.0.cs (1)
85Assert.Throws<System.ServiceModel.ProtocolException>(() => { result = serviceProxy.Echo(testString); });
System.ServiceModel.Http (4)
System\ServiceModel\Channels\HttpChannelHelpers.cs (2)
197internal static ProtocolException CreateHttpProtocolException(string message, HttpStatusCode statusCode, string statusDescription) 199ProtocolException exception = new ProtocolException(message);
System\ServiceModel\Channels\TransportDuplexSessionChannel.cs (2)
619ProtocolException error = ProtocolException.ReceiveShutdownReturnedNonNull(message);
System.ServiceModel.NetFramingBase (2)
System\ServiceModel\Channels\TransportDuplexSessionChannel.cs (2)
537ProtocolException error = ReceiveShutdownReturnedNonNull(message); 655internal static ProtocolException ReceiveShutdownReturnedNonNull(Message message)
System.ServiceModel.Primitives (7)
System\ServiceModel\Channels\ReliableChannelBinder.cs (1)
442if (e is ProtocolException)
System\ServiceModel\Dispatcher\RequestChannelBinder.cs (2)
114ProtocolException error = ProtocolException.OneWayOperationReturnedNonNull(message);
System\ServiceModel\ProtocolException.cs (2)
21internal static ProtocolException ReceiveShutdownReturnedNonNull(Message message) 45internal static ProtocolException OneWayOperationReturnedNonNull(Message message)
System\ServiceModel\Security\SecuritySessionClientSettings.cs (2)
1455ProtocolException error = ProtocolException.ReceiveShutdownReturnedNonNull(message);