66 references to ProtocolException
System.ServiceModel.Http (15)
System\ServiceModel\Channels\HttpChannelFactory.cs (3)
1205
new
ProtocolException
(SR.Format(SR.HttpSoapActionMismatch, action, value)));
1259
new
ProtocolException
(SR.Format(SR.HttpIfModifiedSinceParseError, value)));
1306
new
ProtocolException
(SR.Format(SR.EnvelopeVersionUnknown,
System\ServiceModel\Channels\HttpChannelHelpers.cs (2)
172
new
ProtocolException
(SR.Format(SR.UnexpectedHttpResponseCode,
199
ProtocolException exception = new
ProtocolException
(message);
System\ServiceModel\Channels\HttpResponseMessageHelper.cs (7)
94
result = new
ProtocolException
(SR.Format(SR.HttpAddressingNoneHeaderOnWire,
113
result = new
ProtocolException
(SR.Format(SR.HttpAddressingNoneHeaderOnWire,
145
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new
ProtocolException
(SR.HttpContentTypeHeaderRequired));
157
new
ProtocolException
(
225
new
ProtocolException
(SR.HttpContentLengthIncorrect));
363
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new
ProtocolException
(SR.Format(SR.MissingContentType, _httpRequestMessage.RequestUri)));
366
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new
ProtocolException
(SR.Format(SR.FramingContentTypeMismatch, _httpRequestMessage.Content.Headers.ContentType.ToString(), _httpRequestMessage.RequestUri)));
System\ServiceModel\Channels\MessageContent.cs (2)
79
new
ProtocolException
(SR.Format(SR.HttpSoapActionMismatch, action, value)));
112
new
ProtocolException
(SR.Format(SR.HttpSoapActionMismatchContentType, action, value)));
System\ServiceModel\Channels\WebSocketTransportDuplexSessionChannel.cs (1)
1215
throw FxTrace.Exception.AsError(new
ProtocolException
(SR.WebSocketUnexpectedCloseMessageError));
System.ServiceModel.NetFramingBase (8)
System\ServiceModel\Channels\FramingDecoders.cs (5)
276
return new
ProtocolException
(SR.Format(SR.FramingContentTypeMismatch, contentType, via));
297
return new
ProtocolException
(SR.Format(SR.FramingModeNotSupportedFault, via));
301
return new
ProtocolException
(SR.Format(SR.FramingVersionNotSupportedFault, via));
319
return new
ProtocolException
(SR.Format(SR.FramingUpgradeInvalid, via));
323
return new
ProtocolException
(SR.Format(SR.FramingFaultUnrecognized, faultString));
System\ServiceModel\Channels\TransportDuplexSessionChannel.cs (3)
664
return new
ProtocolException
(text);
669
return new
ProtocolException
(text);
675
return new
ProtocolException
(text);
System.ServiceModel.Primitives (43)
System\ServiceModel\ActionMismatchAddressingException.cs (1)
15
:
base
(message)
System\ServiceModel\Channels\BinaryMessageEncoder.cs (2)
830
throw FxTrace.Exception.AsError(new
ProtocolException
(SRP.Format(SRP.EncoderUnrecognizedContentType, contentType, ContentType)));
849
throw FxTrace.Exception.AsError(new
ProtocolException
(SRP.Format(SRP.EncoderUnrecognizedContentType, contentType, ContentType)));
System\ServiceModel\Channels\ChannelReliableSession.cs (2)
329
e = new
ProtocolException
(SRP.Format(SRP.WrongIdentifierFault, FaultException.GetSafeReasonText(info.WsrmHeaderFault.Reason)));
800
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new
ProtocolException
(exceptionReason));
System\ServiceModel\Channels\ClientReliableDuplexSessionChannel.cs (1)
429
remoteFaultException = new
ProtocolException
(SRP.EarlyTerminateSequence);
System\ServiceModel\Channels\CreateSequence.cs (4)
79
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(WsrmMessageInfo.CreateInternalFaultException(faultReply, reason, new
ProtocolException
(reason)));
102
new
ProtocolException
(reason)));
140
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(WsrmMessageInfo.CreateInternalFaultException(faultReply, reason, new
ProtocolException
(reason)));
155
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(WsrmMessageInfo.CreateInternalFaultException(faultReply, reason, new
ProtocolException
(reason)));
System\ServiceModel\Channels\FaultConverter.cs (4)
98
exception = new
ProtocolException
(fault.Reason.GetMatchingTranslation(CultureInfo.CurrentCulture).Text);
162
exception = new
ProtocolException
(fault.Reason.GetMatchingTranslation(CultureInfo.CurrentCulture).Text);
170
exception = new
ProtocolException
(fault.Reason.GetMatchingTranslation(CultureInfo.CurrentCulture).Text);
175
exception = new
ProtocolException
(fault.Reason.GetMatchingTranslation(CultureInfo.CurrentCulture).Text);
System\ServiceModel\Channels\MessageEncoder.cs (1)
245
new
ProtocolException
(SRP.Format(SRP.EncoderMessageVersionMismatch, message.Version, MessageVersion)),
System\ServiceModel\Channels\MessageHeaders.cs (2)
1097
new InvalidOperationException(message, new
ProtocolException
(message)));
1473
new InvalidOperationException(message, new
ProtocolException
(message)));
System\ServiceModel\Channels\ReliableMessagingHelpers.cs (4)
841
new
ProtocolException
(SRP.Format(SRP.AddressingVersionNotSupported, messageVersion.Addressing)));
1252
new
ProtocolException
(SRP.Format(SRP.AddressingVersionNotSupported, addressingVersion)));
1856
return new
ProtocolException
(reason);
1880
return 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)
555
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new
ProtocolException
(SRP.SFxClientOutputSessionAutoClosed));
936
Exception error = new
ProtocolException
(SRP.Format(SRP.SFxReplyActionMismatch3,
1088
throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new
ProtocolException
(
System\ServiceModel\Channels\TextMessageEncoder.cs (1)
229
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new
ProtocolException
(SRP.Format(SRP.EncoderUnrecognizedCharSet, charSet)));
System\ServiceModel\Channels\WsrmFault.cs (1)
114
return new
ProtocolException
(message);
System\ServiceModel\Channels\WsrmMessageInfo.cs (5)
114
return CreateInternalFaultException(faultReply, exceptionReason, new
ProtocolException
(exceptionReason));
492
messageInfo._faultException = new
ProtocolException
(SRP.Format(SRP.UnrecognizedFaultReceived, messageInfo.MessageFault.Code.Namespace, messageInfo.MessageFault.Code.Name, System.ServiceModel.FaultException.GetSafeReasonText(messageInfo.MessageFault)));
706
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(WsrmMessageInfo.CreateInternalFaultException(faultReply, reason, new
ProtocolException
(reason)));
723
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(WsrmMessageInfo.CreateInternalFaultException(faultReply, reason, new
ProtocolException
(reason)));
755
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(WsrmMessageInfo.CreateInternalFaultException(faultReply, reason, new
ProtocolException
(reason)));
System\ServiceModel\Dispatcher\ProxyOperationRuntime.cs (1)
182
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new
ProtocolException
(SRP.Format(SRP.SFxHeaderNotUnderstood, headersNotUnderstood[0].Name, headersNotUnderstood[0].Namespace)));
System\ServiceModel\EndpointAddress.cs (1)
289
new
ProtocolException
(SRP.Format(SRP.AddressingVersionNotSupported, message.Version.Addressing)));
System\ServiceModel\ProtocolException.cs (6)
30
return new
ProtocolException
(text);
35
return new
ProtocolException
(text);
41
return new
ProtocolException
(text);
54
return new
ProtocolException
(text);
59
return new
ProtocolException
(text);
65
return new
ProtocolException
(text);
System\ServiceModel\Security\SecuritySessionClientSettings.cs (3)
541
Fault(new
ProtocolException
(SRP.UnexpectedSecuritySessionCloseResponse));
555
Fault(new
ProtocolException
(SRP.UnexpectedSecuritySessionClose));
607
new
ProtocolException
(SRP.Format(SRP.AddressingVersionNotSupported, closeMessage.Version.Addressing)));