154 references to SR
System.ServiceModel.Http (154)
System\ServiceModel\BasicHttpBinding.cs (4)
21throw ExceptionHelper.PlatformNotSupported(SR.Format(SR.UnsupportedSecuritySetting, nameof(securityMode), securityMode)); 58throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.Format(SR.HttpClientCredentialTypeInvalid, BasicHttpSecurity.Transport.ClientCredentialType)));
System\ServiceModel\BasicHttpMessageSecurity.cs (1)
76throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.BasicHttpMessageSecurityRequiresCertificate));
System\ServiceModel\BasicHttpsBinding.cs (2)
57throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.Format(SR.HttpClientCredentialTypeInvalid, BasicHttpSecurity.Transport.ClientCredentialType)));
System\ServiceModel\BasicHttpSecurity.cs (2)
37throw ExceptionHelper.PlatformNotSupported(SR.Format(SR.UnsupportedSecuritySetting, nameof(value), value));
System\ServiceModel\Channels\ClientWebSocketTransportDuplexSessionChannel.cs (6)
134throw FxTrace.Exception.AsError(new InvalidOperationException(SR.Format(SR.WebSocketInvalidProtocolNotInClientList, obtained, requested))); 259throw FxTrace.Exception.AsError(new CommunicationException(SR.Format(SR.WebSocketVersionMismatchFromServer, ""), ex)); 261throw FxTrace.Exception.AsError(new CommunicationException(SR.Format(SR.WebSocketSubProtocolMismatchFromServer, ""), ex));
System\ServiceModel\Channels\HttpChannelFactory.cs (33)
55SR.MaxReceivedMessageSizeMustBeInIntegerRange)); 61SR.MaxBufferSizeMustMatchMaxReceivedMessageSize); 69SR.MaxBufferSizeMustNotExceedMaxReceivedMessageSize); 77SR.HttpAuthDoesNotSupportRequestStreaming); 89throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("value", SR.Format(SR.HttpRequiresSingleAuthScheme, 107throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.UseDefaultWebProxyCantBeUsedWithExplicitProxyAddress)); 407throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SR.UserNameCannotBeEmpty); 435return new ArgumentException(SR.Format(SR.HttpToMustEqualVia, to, via)); 526throw FxTrace.Exception.AsError(new InvalidOperationException(SR.Format( 527SR.WebSocketCannotCreateRequestClientChannelWithCertainWebSocketTransportUsage, 538throw FxTrace.Exception.AsError(new InvalidOperationException(SR.Format( 539SR.WebSocketCannotCreateRequestClientChannelWithCertainWebSocketTransportUsage, 707throw TraceUtility.ThrowHelperError(new InvalidOperationException(SR.ManualAddressingRequiresAddressedMessages), message); 1074throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new TimeoutException(SR.Format( 1075SR.HttpRequestTimedOut, httpRequestMessage.RequestUri, _timeoutHelper.OriginalTimeout))); 1144throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new TimeoutException(SR.Format( 1145SR.HttpResponseTimedOut, _httpRequestMessage.RequestUri, timeoutHelper.OriginalTimeout))); 1205new ProtocolException(SR.Format(SR.HttpSoapActionMismatch, action, value))); 1259new ProtocolException(SR.Format(SR.HttpIfModifiedSinceParseError, value))); 1282throw FxTrace.Exception.AsError(new InvalidOperationException(SR.Format( 1283SR.CopyHttpHeaderFailed, 1306new ProtocolException(SR.Format(SR.EnvelopeVersionUnknown, 1374throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(nameof(authenticationScheme), SR.Format(SR.HttpRequiresSingleAuthScheme, 1396throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.Format( 1397SR.ProxyImpersonationLevelMismatch, impersonationLevel, requestImpersonationLevel))); 1405throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.Format( 1406SR.ProxyAuthenticationLevelMismatch, authenticationLevel, requestAuthenticationLevel)));
System\ServiceModel\Channels\HttpChannelHelpers.cs (13)
93new InvalidOperationException(SR.CredentialDisallowsNtlm)); 132return new EndpointNotFoundException(SR.Format(SR.EndpointNotFound, request.RequestUri.AbsoluteUri), exception); 140return new SecurityNegotiationException(SR.Format(SR.TrustFailure, request.RequestUri.Authority), exception); 149return new CommunicationException(SR.Format(SR.HttpReceiveFailure, request.RequestUri), exception); 153return new EndpointNotFoundException(SR.Format(SR.EndpointNotFound, request.RequestUri.AbsoluteUri), exception); 157return new SecurityNegotiationException(SR.Format(SR.TrustFailure, request.RequestUri.Authority), exception); 172new ProtocolException(SR.Format(SR.UnexpectedHttpResponseCode,
System\ServiceModel\Channels\HttpResponseMessageHelper.cs (27)
94result = new ProtocolException(SR.Format(SR.HttpAddressingNoneHeaderOnWire, 113result = new ProtocolException(SR.Format(SR.HttpAddressingNoneHeaderOnWire, 145throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ProtocolException(SR.HttpContentTypeHeaderRequired)); 158SR.Format( 159SR.ResponseContentTypeMismatch, 196new ProtocolException(SR.MessageXmlProtocolError, xmlException)); 225new ProtocolException(SR.HttpContentLengthIncorrect)); 256new ProtocolException(SR.MessageXmlProtocolError, xmlException)); 264WcfEventSource.Instance.MaxReceivedMessageSizeExceeded(SR.Format(SR.MaxReceivedMessageSizeExceeded, _factory.MaxReceivedMessageSize)); 267string message = SR.Format(SR.MaxReceivedMessageSizeExceeded, _factory.MaxReceivedMessageSize); 295new ProtocolException(SR.MessageXmlProtocolError, xmlException)); 351throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new EndpointNotFoundException(SR.Format(SR.EndpointNotFound, _httpRequestMessage.RequestUri.AbsoluteUri))); 356throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ServerTooBusyException(SR.Format(SR.HttpServerTooBusy, _httpRequestMessage.RequestUri.AbsoluteUri))); 366throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ProtocolException(SR.Format(SR.MissingContentType, _httpRequestMessage.RequestUri))); 369throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ProtocolException(SR.Format(SR.FramingContentTypeMismatch, _httpRequestMessage.Content.Headers.ContentType.ToString(), _httpRequestMessage.RequestUri))); 385string message = SR.Format(SR.HttpAuthorizationFailed, _factory.AuthenticationScheme, 393string message = SR.Format(SR.HttpAuthorizationForbidden, _factory.AuthenticationScheme);
System\ServiceModel\Channels\HttpResponseMessageProperty.cs (2)
68SR.Format(SR.ValueMustBeInRange, 100, 599)));
System\ServiceModel\Channels\HttpsChannelFactory.cs (3)
77throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(nameof(remoteAddress), SR.Format( 78SR.HttpsIdentityMultipleCerts, remoteAddress.Uri)); 91throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(nameof(remoteAddress), SR.HttpsExplicitIdentity);
System\ServiceModel\Channels\HttpsTransportBindingElement.cs (2)
81throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("TChannel", SR.Format(SR.ChannelTypeNotSupported, typeof(TChannel)));
System\ServiceModel\Channels\HttpTransportBindingElement.cs (10)
97ExceptionHelper.PlatformNotSupported(SR.ExtendedProtectionNotSupported); 147SR.ValueMustBePositive)); 175throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(nameof(value), SR.Format(SR.HttpProxyRequiresSingleAuthScheme, 337throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("TChannel", SR.Format(SR.CouldnTCreateChannelForChannelType2, context.Binding.Name, typeof(TChannel))); 342throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("value", SR.Format(SR.HttpAuthSchemeCannotBeNone, 347throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("value", SR.Format(SR.HttpRequiresSingleAuthScheme,
System\ServiceModel\Channels\HttpTransportSecurityHelpers.cs (3)
50throw Fx.Exception.AsError(new InvalidOperationException(SR.OnlyDefaultSpnServiceSupported)); 158new SecurityNegotiationException(SR.Format(SR.HttpsServerCertThumbprintMismatch,
System\ServiceModel\Channels\MessageContent.cs (6)
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\WebSocketHelper.cs (8)
222errorMsg = SR.Format(SR.CloseTimedOut, timeout); 225errorMsg = SR.Format(SR.WebSocketSendTimedOut, timeout); 228errorMsg = SR.Format(SR.WebSocketReceiveTimedOut, timeout); 231errorMsg = SR.Format(SR.WebSocketOperationTimedOut, operation, timeout);
System\ServiceModel\Channels\WebSocketTransportDuplexSessionChannel.cs (8)
508SR.Format(SR.WaitForMessageTimedOut, timeout), 564_pendingException = FxTrace.Exception.AsError(new QuotaExceededException(SR.Format(SR.MaxReceivedMessageSizeExceeded, _maxBufferSize))); 657WcfEventSource.Instance.ReceiveTimeout(SR.Format(SR.WaitForMessageTimedOut, timeout)); 1099throw FxTrace.Exception.AsError(new InvalidOperationException(SR.WebSocketStreamWriteCalledAfterEOMSent)); 1215throw FxTrace.Exception.AsError(new ProtocolException(SR.WebSocketUnexpectedCloseMessageError));
System\ServiceModel\Channels\WebSocketTransportSettings.cs (7)
71SR.SFxTimeoutOutOfRange0)); 79SR.SFxTimeoutOutOfRangeTooBig)); 100throw FxTrace.Exception.Argument("value", SR.WebSocketInvalidProtocolEmptySubprotocolString); 105throw FxTrace.Exception.Argument("value", SR.Format(SR.WebSocketInvalidProtocolContainsMultipleSubProtocolString, value)); 111throw FxTrace.Exception.Argument("value", SR.Format(SR.WebSocketInvalidProtocolInvalidCharInProtocolString, value, invalidChar));
System\ServiceModel\HttpBindingBase.cs (4)
296throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR.Format(SR.UnsupportedSecuritySetting, nameof(security.Mode), mode))); 306throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR.Format(SR.UnsupportedSecuritySetting, "Transport.ClientCredentialType", transport.ClientCredentialType)));
System\ServiceModel\HttpTransportSecurity.cs (2)
73new PlatformNotSupportedException(SR.ExtendedProtectionNotSupported)); 132throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.CertificateUnsupportedForHttpTransportCredentialOnly));
System\ServiceModel\MessageSecurityOverHttp.cs (2)
61throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.SecureConversationRequiredByReliableSession)); 73throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.ClientCredentialTypeMustBeSpecifiedForMixedMode));
System\ServiceModel\NetHttpBinding.cs (2)
98throw FxTrace.Exception.AsError(new InvalidOperationException(SR.Format(SR.HttpClientCredentialTypeInvalid, BasicHttpSecurity.Transport.ClientCredentialType)));
System\ServiceModel\NetHttpsBinding.cs (4)
24throw ExceptionHelper.PlatformNotSupported(SR.Format(SR.UnsupportedSecuritySetting, "securityMode", securityMode)); 90throw FxTrace.Exception.AsError(new InvalidOperationException(SR.Format(SR.HttpClientCredentialTypeInvalid, BasicHttpSecurity.Transport.ClientCredentialType)));
System\ServiceModel\WSHttpBinding.cs (2)
55throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.Format(SR.HttpClientCredentialTypeInvalid, _security.Transport.ClientCredentialType)));
System\ServiceModel\WSHttpBindingBase.cs (1)
74SR.MaxReceivedMessageSizeMustBeInIntegerRange));