40 references to ProtocolException
dotnet-svcutil-lib (40)
FrameworkFork\System.ServiceModel\System\ServiceModel\ActionMismatchAddressingException.cs (1)
16: base(message)
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\FramingDecoders.cs (5)
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));
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 (7)
92result = new ProtocolException(string.Format(SRServiceModel.HttpAddressingNoneHeaderOnWire, 111result = new ProtocolException(string.Format(SRServiceModel.HttpAddressingNoneHeaderOnWire, 142throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ProtocolException(SRServiceModel.HttpContentTypeHeaderRequired)); 154new ProtocolException( 219new ProtocolException(SRServiceModel.HttpContentLengthIncorrect)); 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 (2)
73new ProtocolException(string.Format(SRServiceModel.HttpSoapActionMismatch, action, value))); 106new ProtocolException(string.Format(SRServiceModel.HttpSoapActionMismatchContentType, action, value)));
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\TextMessageEncoder.cs (1)
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);