167 references to SR
System.ServiceModel.NetFramingBase (167)
System\ServiceModel\Channels\BufferedConnection.cs (2)
112
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(buffer.Length), buffer.Length,
SR
.Format(
113
SR
.ValueMustBePositive)));
System\ServiceModel\Channels\Connection.cs (10)
128
SR
.Format(
SR
.ValueMustBeInRange, -1, int.MaxValue)));
143
SR
.Format(
SR
.ValueMustBeInRange, -1, int.MaxValue)));
156
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(
SR
.SPS_SeekNotSupported));
164
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(
SR
.SPS_SeekNotSupported));
168
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(
SR
.SPS_SeekNotSupported));
270
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(
SR
.SPS_SeekNotSupported));
275
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(
SR
.SPS_SeekNotSupported));
360
return new CommunicationException(
SR
.StreamError, ioException);
System\ServiceModel\Channels\ConnectionOrientedTransportBindingElement.cs (2)
43
SR
.ValueMustBeNonNegative));
75
SR
.ValueMustBePositive));
System\ServiceModel\Channels\ConnectionPool.cs (2)
579
WcfEventSource.Instance.MaxOutboundConnectionsPerEndpointExceeded(
SR
.Format(
SR
.TraceCodeConnectionPoolMaxOutboundConnectionsPerEndpointQuotaReached, _maxCount));
System\ServiceModel\Channels\ConnectionPoolHelper.cs (2)
149
SR
.Format(
SR
.OperationAbortedDuringConnectionEstablishment, _via)));
System\ServiceModel\Channels\FramingChannels.cs (12)
220
SR
.Format(
SR
.CloseTimedOut, timeout),
281
new TimeoutException(
SR
.Format(
SR
.TimeoutOnOpen, timeout), exception));
328
new CommunicationObjectAbortedException(
SR
.Format(
SR
.DuplexChannelAbortedDuringOpen, Via)));
360
return new TimeoutException(
SR
.Format(
SR
.OpenTimedOutEstablishingTransportSession,
455
SR
.ServerRejectedUpgradeRequest));
464
new ProtocolException(
SR
.Format(
SR
.ServerRejectedSessionPreamble, via),
486
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MessageSecurityException(
SR
.ServerRejectedUpgradeRequest, decoder.CreatePrematureEOFException()));
System\ServiceModel\Channels\FramingDecoders.cs (62)
20
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(size), size,
SR
.ValueMustBePositive));
37
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(
SR
.FramingValueNotAvailable));
58
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(
SR
.FramingValueNotAvailable));
68
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataException(
SR
.FramingSizeTooLarge));
113
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(
SR
.FramingValueNotAvailable));
172
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataException(
SR
.InvalidDecoderStateMachine));
222
Exception result = new InvalidDataException(
SR
.Format(
SR
.FramingViaTooLong, size));
236
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataException(
SR
.Format(
SR
.FramingViaNotUri, value), exception));
246
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(
SR
.FramingValueNotAvailable));
265
return new InvalidDataException(
SR
.Format(
SR
.FramingFaultTooLong, size));
272
return new EndpointNotFoundException(
SR
.Format(
SR
.EndpointNotFound, via));
276
return new ProtocolException(
SR
.Format(
SR
.FramingContentTypeMismatch, contentType, via));
280
return new ServiceActivationException(
SR
.Format(
SR
.Hosting_ServiceActivationFailed, via));
284
return new CommunicationException(
SR
.Format(
SR
.Sharing_ConnectionDispatchFailed, via));
288
return new EndpointNotFoundException(
SR
.Format(
SR
.Sharing_EndpointUnavailable, via));
292
Exception inner = new QuotaExceededException(
SR
.FramingMaxMessageSizeExceeded);
297
return new ProtocolException(
SR
.Format(
SR
.FramingModeNotSupportedFault, via));
301
return new ProtocolException(
SR
.Format(
SR
.FramingVersionNotSupportedFault, via));
305
Exception inner = new QuotaExceededException(
SR
.Format(
SR
.FramingContentTypeTooLongFault, contentType));
310
Exception inner = new QuotaExceededException(
SR
.Format(
SR
.FramingViaTooLongFault, via));
315
return new ServerTooBusyException(
SR
.Format(
SR
.ServerTooBusy, via));
319
return new ProtocolException(
SR
.Format(
SR
.FramingUpgradeInvalid, via));
323
return new ProtocolException(
SR
.Format(
SR
.FramingFaultUnrecognized, faultString));
337
Exception result = new InvalidDataException(
SR
.Format(
SR
.FramingContentTypeTooLong, size));
396
Exception exception = CreateException(new InvalidDataException(
SR
.Format(
397
SR
.FramingModeNotSupported, mode.ToString())), FramingEncodingString.UnsupportedModeFault);
420
exceptionString =
SR
.PreambleAckIncorrectMaybeHttp;
424
exceptionString =
SR
.PreambleAckIncorrect;
432
return new InvalidDataException(
SR
.Format(
SR
.FramingRecordTypeMismatch, expectedType.ToString(), foundType.ToString()));
439
Exception exception = CreateException(new InvalidDataException(
SR
.Format(
440
SR
.FramingVersionNotSupported, majorVersion)), FramingEncodingString.UnsupportedVersionFault);
447
return CreateException(new InvalidDataException(
SR
.FramingPrematureEOF));
459
return new ProtocolException(
SR
.Format(
SR
.FramingError, StreamPosition, CurrentStateAsString),
495
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(
SR
.FramingValueNotAvailable));
556
CreateException(new InvalidDataException(
SR
.FramingAtEnd)));
560
CreateException(new InvalidDataException(
SR
.InvalidDecoderStateMachine)));
649
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(
SR
.FramingValueNotAvailable));
662
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(
SR
.FramingValueNotAvailable));
782
CreateException(new InvalidDataException(
SR
.FramingAtEnd)));
785
CreateException(new InvalidDataException(
SR
.InvalidDecoderStateMachine)));
816
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(
SR
.FramingValueNotAvailable));
890
CreateException(new InvalidDataException(
SR
.FramingAtEnd)));
908
CreateException(new InvalidDataException(
SR
.FramingAtEnd)));
911
CreateException(new InvalidDataException(
SR
.InvalidDecoderStateMachine)));
System\ServiceModel\Channels\FramingEncoders.cs (5)
35
SR
.ValueMustBeNonNegative));
230
messageFrame.Offset,
SR
.Format(
SR
.SpaceNeededExceedsMessageFrameOffset, spaceNeeded)));
315
messageFrame.Offset,
SR
.Format(
SR
.SpaceNeededExceedsMessageFrameOffset, spaceNeeded)));
System\ServiceModel\Channels\IdlingCommunicationPool.cs (4)
317
WcfEventSource.Instance.LeaseTimeout(
SR
.Format(
SR
.TraceCodeConnectionPoolLeaseTimeoutReached, _leaseTimeout), _parent.Key.ToString());
325
WcfEventSource.Instance.IdleTimeout(
SR
.Format(
SR
.TraceCodeConnectionPoolIdleTimeoutReached, _idleTimeout), _parent.Key.ToString());
System\ServiceModel\Channels\NetFramingTransportChannelFactory.cs (5)
35
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(
SR
.MultipleMebesInParameters));
60
SR
.MaxReceivedMessageSizeMustBeInIntegerRange));
76
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(
SR
.MultipleStreamUpgradeProvidersInParameters));
374
throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(nameof(via),
SR
.Format(
SR
.InvalidUriScheme,
System\ServiceModel\Channels\OutputChannel.cs (3)
36
new ArgumentOutOfRangeException(nameof(timeout), timeout,
SR
.SFxTimeoutOutOfRange0));
85
new ArgumentOutOfRangeException(nameof(timeout), timeout,
SR
.SFxTimeoutOutOfRange0));
110
new ArgumentOutOfRangeException(nameof(timeout), timeout,
SR
.SFxTimeoutOutOfRange0));
System\ServiceModel\Channels\SessionConnectionReader.cs (1)
283
new ProtocolException(
SR
.MessageXmlProtocolError, xmlException));
System\ServiceModel\Channels\SingletonConnectionReader.cs (4)
182
ServiceModelActivity.Start(activity,
SR
.Format(
SR
.ActivityProcessingMessage, TraceUtility.RetrieveMessageNumber()), ActivityType.ProcessMessage);
194
new ProtocolException(
SR
.Format(
SR
.MessageXmlProtocolError), xmlException));
System\ServiceModel\Channels\SslStreamSecurityUpgradeProvider.cs (18)
116
throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("upgradeInitiator",
SR
.Format(
SR
.UnsupportedUpgradeInitiator, upgradeInitiator.GetType()));
121
throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("kind",
SR
.Format(
SR
.StreamUpgradeUnsupportedChannelBindingKind, GetType(), kind));
187
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(
SR
.Format(
188
SR
.InvalidTokenProvided, _serverTokenProvider.GetType(), typeof(X509SecurityToken))));
293
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(
SR
.Format(
SR
.ClientCredentialsUnableToCreateLocalTokenProvider, clientCertRequirement)));
385
SR
.Format(
SR
.NegotiationFailedIO, ioException.Message), ioException));
433
throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new MessageSecurityException(
SR
.Format(
SR
.IdentityCheckFailedForOutgoingMessage, identity, serviceReference)));
440
Exception e = CreateIdentityCheckException(identity, authorizationContext,
SR
.IdentityCheckFailedForOutgoingMessage, serviceReference);
475
result = new MessageSecurityException(
SR
.Format(
SR
.DnsIdentityCheckFailedForOutgoingMessageLackOfDnsClaim, expectedDnsName));
479
result = new MessageSecurityException(
SR
.Format(
SR
.DnsIdentityCheckFailedForOutgoingMessage, expectedDnsName, actualDnsName));
484
result = new MessageSecurityException(
SR
.Format(errorString, identity, serviceReference));
System\ServiceModel\Channels\StreamedFramingRequestChannel.cs (6)
142
protected override TimeoutException CreateNewConnectionTimeoutException(TimeSpan timeout, TimeoutException innerException) => new TimeoutException(
SR
.Format(
SR
.RequestTimedOutEstablishingTransportSession,
231
new TimeoutException(
SR
.Format(
SR
.TimeoutOnRequest, timeoutHelper.RemainingTime()), exception));
275
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new TimeoutException(
SR
.Format(
276
SR
.RequestChannelWaitForReplyTimedOut, timeoutHelper.OriginalTimeout)));
System\ServiceModel\Channels\StreamSecurityUpgradeInitiatorBase.cs (1)
39
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(
SR
.OperationInvalidBeforeSecurityNegotiation));
System\ServiceModel\Channels\SynchronizedMessageSource.cs (4)
32
new TimeoutException(
SR
.Format(
SR
.WaitForMessageTimedOut, timeout),
56
new TimeoutException(
SR
.Format(
SR
.ReceiveTimedOut2, timeout),
System\ServiceModel\Channels\TransportChannelFactory.cs (1)
32
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(
SR
.MultipleMebesInParameters));
System\ServiceModel\Channels\TransportDuplexSessionChannel.cs (15)
247
WcfEventSource.Instance.CloseTimeout(
SR
.Format(
SR
.CloseTimedOut, timeout));
251
SR
.Format(
SR
.CloseTimedOut, timeout),
405
SR
.Format(
SR
.SendToViaTimedOut, Via, timeout),
481
SR
.Format(
SR
.SendToViaTimedOut, Via, timeout),
526
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(
SR
.SendCannotBeCalledAfterCloseOutputSession));
663
string text =
SR
.Format(
SR
.ReceiveShutdownReturnedFault, reason.Text);
668
string text =
SR
.Format(
SR
.ReceiveShutdownReturnedLargeFault, message.Headers.Action);
674
string text =
SR
.Format(
SR
.ReceiveShutdownReturnedMessage, message.Headers.Action);
System\ServiceModel\Channels\TransportSecurityHelpers.cs (2)
92
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(
SR
.Format(
93
SR
.InvalidTokenProvided, tokenProvider.GetType(), typeof(T))));
System\ServiceModel\Channels\WindowsStreamSecurityUpgradeProvider.cs (6)
192
SR
.Format(
SR
.NegotiationFailedIO, ioException.Message), ioException));
241
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityNegotiationException(
SR
.Format(
242
SR
.RemoteIdentityFailedVerification, primaryIdentity)));
248
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityNegotiationException(
SR
.Format(
SR
.StreamMutualAuthNotSatisfied)));