66 references to ProtocolException
System.ServiceModel.Http (15)
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 (7)
94result = new ProtocolException(SR.Format(SR.HttpAddressingNoneHeaderOnWire, 113result = new ProtocolException(SR.Format(SR.HttpAddressingNoneHeaderOnWire, 145throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ProtocolException(SR.HttpContentTypeHeaderRequired)); 157new ProtocolException( 225new ProtocolException(SR.HttpContentLengthIncorrect)); 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 (2)
79new ProtocolException(SR.Format(SR.HttpSoapActionMismatch, action, value))); 112new ProtocolException(SR.Format(SR.HttpSoapActionMismatchContentType, action, value)));
System\ServiceModel\Channels\WebSocketTransportDuplexSessionChannel.cs (1)
1215throw FxTrace.Exception.AsError(new ProtocolException(SR.WebSocketUnexpectedCloseMessageError));
System.ServiceModel.NetFramingBase (8)
System\ServiceModel\Channels\FramingDecoders.cs (5)
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));
System\ServiceModel\Channels\TransportDuplexSessionChannel.cs (3)
664return new ProtocolException(text); 669return new ProtocolException(text); 675return new ProtocolException(text);
System.ServiceModel.Primitives (43)
System\ServiceModel\ActionMismatchAddressingException.cs (1)
15: base(message)
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 (2)
329e = new ProtocolException(SRP.Format(SRP.WrongIdentifierFault, FaultException.GetSafeReasonText(info.WsrmHeaderFault.Reason))); 800throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ProtocolException(exceptionReason));
System\ServiceModel\Channels\ClientReliableDuplexSessionChannel.cs (1)
429remoteFaultException = new ProtocolException(SRP.EarlyTerminateSequence);
System\ServiceModel\Channels\CreateSequence.cs (4)
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)));
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 (1)
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 (5)
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))); 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)));