450 references to Format
System.ServiceModel.Primitives (450)
Extensions\XmlReaderExtensions.cs (2)
16throw new XmlException(SRP.Format(SRP.Xml_InvalidNodeType, reader.NodeType.ToString()), null, lineInfo?.LineNumber ?? 0, lineInfo?.LinePosition ?? 0); 27throw new XmlException(SRP.Format(SRP.Xml_InvalidNodeType, reader.NodeType.ToString()), null, lineInfo?.LineNumber ?? 0, lineInfo?.LinePosition ?? 0);
Internals\System\Runtime\TimeoutHelper.cs (1)
239return new TimeoutException(SRP.Format(SRP.LockTimeoutExceptionMessage, timeout));
Internals\System\Text\BinHexEncoding.cs (7)
51throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new FormatException(SRP.Format(SRP.XmlInvalidBinHexLength, charCount.ToString(NumberFormatInfo.CurrentInfo)))); 67throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(charIndex), SRP.Format(SRP.OffsetExceedsBufferSize, chars.Length))); 71throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(charCount), SRP.Format(SRP.SizeExceedsRemainingBufferSpace, chars.Length - charIndex))); 77throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(byteIndex), SRP.Format(SRP.OffsetExceedsBufferSize, bytes.Length))); 133throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(byteIndex), SRP.Format(SRP.OffsetExceedsBufferSize, bytes.Length))); 137throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(byteCount), SRP.Format(SRP.SizeExceedsRemainingBufferSpace, bytes.Length - byteIndex))); 144throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(charIndex), SRP.Format(SRP.OffsetExceedsBufferSize, chars.Length)));
Internals\System\Xml\XmlMtomReader.cs (45)
95throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.MtomBufferQuotaExceeded, maxBuffer))); 206throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.MtomMessageNotApplicationXopXml, MtomGlobals.XopType))); 209throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.MtomMessageRequiredParamNotSpecified, MtomGlobals.BoundaryParam))); 211throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.MtomBoundaryInvalid, boundary))); 232throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.MtomRootRequiredParamNotSpecified, MtomGlobals.CharsetParam))); 286throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.MtomRootRequiredParamNotSpecified, MtomGlobals.TypeParam))); 308throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.MtomContentTransferEncodingNotPresent, 322throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.MtomInvalidStartUri, startUri))); 346throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.MtomXopIncludeHrefNotSpecified, MtomGlobals.XopIncludeHrefLocalName))); 415throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.MtomInvalidCIDUri, uri))); 420throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.MtomMimePartReferencedMoreThanOnce, contentID))); 466throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.MtomPartNotFound, uri))); 1215throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(offset), SRP.Format(SRP.OffsetExceedsBufferSize, buffer.Length))); 1219throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(count), SRP.Format(SRP.SizeExceedsRemainingBufferSpace, buffer.Length - offset))); 1262throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(offset), SRP.Format(SRP.OffsetExceedsBufferSize, buffer.Length))); 1266throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(count), SRP.Format(SRP.SizeExceedsRemainingBufferSpace, buffer.Length - offset))); 1307throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(offset), SRP.Format(SRP.OffsetExceedsBufferSize, buffer.Length))); 1311throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(count), SRP.Format(SRP.SizeExceedsRemainingBufferSpace, buffer.Length - offset))); 1365throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(offset), SRP.Format(SRP.OffsetExceedsBufferSize, chars.Length))); 1369throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(count), SRP.Format(SRP.SizeExceedsRemainingBufferSpace, chars.Length - offset))); 2153get { throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.SeekNotSupportedOnStream, GetType().FullName))); } 2158get { throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.SeekNotSupportedOnStream, GetType().FullName))); } 2159set { throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.SeekNotSupportedOnStream, GetType().FullName))); } 2164throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.WriteNotSupportedOnStream, GetType().FullName))); 2174throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.WriteNotSupportedOnStream, GetType().FullName))); 2179throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.WriteNotSupportedOnStream, GetType().FullName))); 2190throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(offset), SRP.Format(SRP.OffsetExceedsBufferSize, buffer.Length))); 2194throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(count), SRP.Format(SRP.SizeExceedsRemainingBufferSpace, buffer.Length - offset))); 2201throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.SeekNotSupportedOnStream, GetType().FullName))); 2206throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.WriteNotSupportedOnStream, GetType().FullName))); 2211throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.WriteNotSupportedOnStream, GetType().FullName))); 2316throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new FormatException(SRP.Format(SRP.MimeReaderHeaderAlreadyExists, header.Name))); 2872get { throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.SeekNotSupportedOnStream, stream.GetType().FullName))); } 2877get { throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.SeekNotSupportedOnStream, stream.GetType().FullName))); } 2878set { throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.SeekNotSupportedOnStream, stream.GetType().FullName))); } 2884throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.ReadNotSupportedOnStream, stream.GetType().FullName))); 2891throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.WriteNotSupportedOnStream, stream.GetType().FullName))); 2902throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.ReadNotSupportedOnStream, stream.GetType().FullName))); 2909throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.WriteNotSupportedOnStream, stream.GetType().FullName))); 2920throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.ReadNotSupportedOnStream, stream.GetType().FullName))); 2928throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(offset), SRP.Format(SRP.OffsetExceedsBufferSize, buffer.Length))); 2932throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(count), SRP.Format(SRP.SizeExceedsRemainingBufferSpace, buffer.Length - offset))); 3005throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.SeekNotSupportedOnStream, stream.GetType().FullName))); 3010throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.SeekNotSupportedOnStream, stream.GetType().FullName))); 3015throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.WriteNotSupportedOnStream, stream.GetType().FullName)));
Internals\System\Xml\XmlMtomWriter.cs (11)
106throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SRP.Format(SRP.MtomBoundaryInvalid, boundary), nameof(boundary))); 322throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(count), SRP.Format(SRP.SizeExceedsRemainingBufferSpace, buffer.Length - index))); 343throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.MtomExceededMaxSizeInBytes, maxSize))); 1206throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.MimeWriterInvalidStateForStartPreface, state.ToString()))); 1217throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.MimeWriterInvalidStateForStartPart, state.ToString()))); 1241throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.MimeWriterInvalidStateForStartPart, state.ToString()))); 1263throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.MimeWriterInvalidStateForClose, state.ToString()))); 1288throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.MimeWriterInvalidStateForClose, state.ToString()))); 1338throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.MimeWriterInvalidStateForHeader, state.ToString()))); 1358throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.MimeWriterInvalidStateForContent, state.ToString()))); 1377throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.MimeWriterInvalidStateForContent, state.ToString())));
System\IdentityModel\CryptoHelper.cs (4)
72throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new InvalidOperationException(SRP.Format(SRP.CustomCryptoAlgorithmIsNotValidKeyedHashAlgorithm, algorithm))); 84throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new InvalidOperationException(SRP.Format(SRP.UnsupportedCryptoAlgorithm, algorithm))); 189throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new InvalidOperationException(SRP.Format(SRP.CustomCryptoAlgorithmIsNotValidHashAlgorithm, algorithm))); 205throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new InvalidOperationException(SRP.Format(SRP.UnsupportedCryptoAlgorithm, algorithm)));
System\IdentityModel\Selectors\KerberosSecurityTokenProvider.cs (1)
34SRP.Format(SRP.ImpersonationLevelNotSupported, tokenImpersonationLevel)));
System\IdentityModel\Selectors\SecurityTokenProvider.cs (8)
33throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SRP.Format(SRP.TokenProviderUnableToGetToken, this))); 54throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SRP.Format(SRP.TokenProviderUnableToGetToken, this))); 65throw Fx.Exception.AsError(new SecurityTokenException(SRP.Format(SRP.TokenProviderUnableToGetToken, this))); 108throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SRP.Format(SRP.TokenProviderUnableToRenewToken, this))); 134throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SRP.Format(SRP.TokenProviderUnableToRenewToken, this))); 150throw Fx.Exception.AsError(new SecurityTokenException(SRP.Format(SRP.TokenProviderUnableToRenewToken, this))); 158throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.TokenRenewalNotSupported, this))); 225throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.TokenCancellationNotSupported, this)));
System\IdentityModel\Selectors\SecurityTokenResolver.cs (3)
23throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new InvalidOperationException(SRP.Format(SRP.UnableToResolveTokenReference, keyIdentifier))); 46throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new InvalidOperationException(SRP.Format(SRP.UnableToResolveTokenReference, keyIdentifierClause))); 69throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new InvalidOperationException(SRP.Format(SRP.UnableToResolveKeyReference, keyIdentifierClause)));
System\IdentityModel\Selectors\X509CertificateValidator.cs (2)
165exception = new SecurityTokenValidationException(SRP.Format(SRP.X509IsNotInTrustedStore, 172exception = new SecurityTokenValidationException(SRP.Format(SRP.X509IsInUntrustedStore,
System\IdentityModel\SignatureResourcePool.cs (1)
22throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(algorithm, SRP.Format(SRP.EmptyOrNullArgumentString, nameof(algorithm)));
System\IdentityModel\Tokens\KerberosRequestorSecurityToken.cs (1)
24SRP.Format(SRP.ImpersonationLevelNotSupported, tokenImpersonationLevel)));
System\IdentityModel\Tokens\KeyInfoSerializer.cs (3)
129throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.StandardsManagerCannotWriteObject, token.GetType()))); 219throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.StandardsManagerCannotWriteObject, keyIdentifier.GetType()))); 316throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.StandardsManagerCannotWriteObject, keyIdentifierClause.GetType())));
System\IdentityModel\Tokens\SecurityKeyIdentifier.cs (1)
94throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SRP.Format(SRP.NoKeyIdentifierClauseFound, typeof(TClause)), "TClause"));
System\IdentityModel\Tokens\SymmetricKey.cs (1)
29throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SRP.Format(SRP.SymmetricKeyLengthTooShort, symmetricKey.Length)));
System\IdentityModel\Tokens\WSSecurityJan2004.cs (1)
247throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.StandardsManagerCannotWriteObject, keyIdentifierClause.GetType())));
System\IdentityModel\Tokens\WSSecurityXXX2005.cs (1)
71throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.StandardsManagerCannotWriteObject, keyIdentifierClause.GetType())));
System\IdentityModel\Tokens\X509AsymmetricSecurityKey.cs (11)
130throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(algorithm, SRP.Format(SRP.EmptyOrNullArgumentString, nameof(algorithm))); 158throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.UnsupportedCryptoAlgorithm, algorithm))); 183throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.UnsupportedCryptoAlgorithm, algorithm))); 192throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(algorithm, SRP.Format(SRP.EmptyOrNullArgumentString, nameof(algorithm))); 223throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.UnsupportedCryptoAlgorithm, algorithm))); 235throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(algorithm, SRP.Format(SRP.EmptyOrNullArgumentString, nameof(algorithm))); 290throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.UnsupportedCryptoAlgorithm, algorithm))); 304throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(algorithm, SRP.Format(SRP.EmptyOrNullArgumentString, nameof(algorithm))); 375throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.UnsupportedCryptoAlgorithm, algorithm))); 388throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(algorithm, SRP.Format(SRP.EmptyOrNullArgumentString, nameof(algorithm))); 398throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(algorithm, SRP.Format(SRP.EmptyOrNullArgumentString, nameof(algorithm)));
System\IdentityModel\XD.cs (15)
230throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SRP.Format(SRP.XDCannotFindValueInDictionaryString, value)); 424throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SRP.Format(SRP.XDCannotFindValueInDictionaryString, value)); 476throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SRP.Format(SRP.XDCannotFindValueInDictionaryString, value)); 548throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SRP.Format(SRP.XDCannotFindValueInDictionaryString, value)); 618throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SRP.Format(SRP.XDCannotFindValueInDictionaryString, value)); 716throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SRP.Format(SRP.XDCannotFindValueInDictionaryString, value)); 742throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SRP.Format(SRP.XDCannotFindValueInDictionaryString, value)); 855throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SRP.Format(SRP.XDCannotFindValueInDictionaryString, value)); 914throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SRP.Format(SRP.XDCannotFindValueInDictionaryString, value)); 1005throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SRP.Format(SRP.XDCannotFindValueInDictionaryString, value)); 1155throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SRP.Format(SRP.XDCannotFindValueInDictionaryString, value)); 1279throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SRP.Format(SRP.XDCannotFindValueInDictionaryString, value)); 1320throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SRP.Format(SRP.XDCannotFindValueInDictionaryString, value)); 1403throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SRP.Format(SRP.XDCannotFindValueInDictionaryString, value)); 1510throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SRP.Format(SRP.XDCannotFindValueInDictionaryString, value));
System\ServiceModel\CallbackBehaviorAttribute.cs (2)
53SRP.Format(SRP.SFxCallbackBehaviorAttributeOnlyOnDuplex, serviceEndpoint.Contract.Name))); 70SRP.Format(SRP.SFXEndpointBehaviorUsedOnWrongSide, typeof(CallbackBehaviorAttribute).Name)));
System\ServiceModel\ChannelFactory.cs (8)
373ServiceModelActivity.Start(activity, SRP.Format(SRP.ActivityConstructChannelFactory, typeof(TChannel).FullName), ActivityType.Construct); 398ServiceModelActivity.Start(activity, SRP.Format(SRP.ActivityConstructChannelFactory, typeof(TChannel).FullName), ActivityType.Construct); 417ServiceModelActivity.Start(activity, SRP.Format(SRP.ActivityConstructChannelFactory, typeof(TChannel).FullName), ActivityType.Construct); 473throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxCreateNonDuplexChannel1, Endpoint.Contract.Name))); 519throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SfxCallbackTypeCannotBeNull, endpoint.Contract.ContractType.FullName))); 528throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SfxCallbackTypeCannotBeNull, endpoint.Contract.ContractType.FullName))); 555throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxInvalidStaticOverloadCalledForDuplexChannelFactory1, channelFactory._channelType.Name))); 569throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxInvalidStaticOverloadCalledForDuplexChannelFactory1, channelFactory._channelType.Name)));
System\ServiceModel\Channels\BinaryMessageEncoder.cs (3)
389string excMsg = SRP.Format(SRP.MaxSentMessageSizeExceeded, maxMessageSize); 459string message = SRP.Format(SRP.BinaryEncoderSessionTooLarge, _maxSessionSize); 654string excMsg = SRP.Format(SRP.MaxSentMessageSizeExceeded, maxMessageSize);
System\ServiceModel\Channels\Binding.cs (5)
192new InvalidOperationException(SRP.Format(SRP.SecurityCapabilitiesMismatched, this))); 241SRP.Format(SRP.CustomBindingRequiresTransport, Name))); 246SRP.Format(SRP.SFxCustomBindingNeedsTransport1, contractName))); 257SRP.Format(SRP.InvalidBindingScheme, transport.GetType().Name))); 263SRP.Format(SRP.MessageVersionMissingFromBinding, Name)));
System\ServiceModel\Channels\BindingContext.cs (1)
115throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.NotAllBindingElementsBuilt, builder.ToString())));
System\ServiceModel\Channels\BufferManagerOutputStream.cs (1)
44string excMsg = SRP.Format(_quotaExceededString, maxSizeQuota);
System\ServiceModel\Channels\ChannelFactoryBase.cs (1)
163throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.ChannelFactoryCannotBeUsedToCreateChannels, GetType().ToString())));
System\ServiceModel\Channels\ChannelManagerBase.cs (1)
49return new ArgumentException(SRP.Format(SRP.ChannelTypeNotSupported, type), "TChannel");
System\ServiceModel\Channels\ChannelReliableSession.cs (6)
260string exceptionMessage = SRP.Format(SRP.SequenceTerminatedInactivityTimeoutExceeded, Settings.InactivityTimeout); 269string faultReason = SRP.Format(SRP.SequenceTerminatedInactivityTimeoutExceeded, Settings.InactivityTimeout); 310string reason = SRP.Format(SRP.CouldNotParseWithAction, info.Action); 329e = new ProtocolException(SRP.Format(SRP.WrongIdentifierFault, FaultException.GetSafeReasonText(info.WsrmHeaderFault.Reason))); 761exceptionReason = SRP.Format(SRP.WsrmMessageWithWrongRelatesToExceptionString, WsrmFeb2005Strings.CreateSequence); 762faultReason = SRP.Format(SRP.WsrmMessageWithWrongRelatesToFaultString, WsrmFeb2005Strings.CreateSequence);
System\ServiceModel\Channels\ChannelRequirements.cs (7)
349return new InvalidOperationException(SRP.Format(SRP.BindingDoesnTSupportAnyChannelTypes1, bindingName)); 353return new InvalidOperationException(SRP.Format(SRP.BindingDoesnTSupportSessionButContractRequires1, bindingName)); 357return new InvalidOperationException(SRP.Format(SRP.BindingDoesntSupportDatagramButContractRequires, bindingName)); 361return new InvalidOperationException(SRP.Format(SRP.BindingDoesnTSupportDuplexButContractRequires1, bindingName)); 365return new InvalidOperationException(SRP.Format(SRP.BindingDoesnTSupportRequestReplyButContract1, bindingName)); 369return new InvalidOperationException(SRP.Format(SRP.BindingDoesnTSupportOneWayButContractRequires1, bindingName)); 373return new InvalidOperationException(SRP.Format(SRP.BindingDoesnTSupportTwoWayButContractRequires1, bindingName));
System\ServiceModel\Channels\ClientReliableChannelBinder.cs (1)
160new TimeoutException(SRP.Format(SRP.TimeoutOnRequest, timeout)));
System\ServiceModel\Channels\ClientReliableDuplexSessionChannel.cs (2)
232string faultString = SRP.Format(SRP.ReceivedResponseBeforeRequestFaultString, request); 233string exceptionString = SRP.Format(SRP.ReceivedResponseBeforeRequestExceptionString, request);
System\ServiceModel\Channels\CommunicationObject.cs (3)
361string message = SRP.Format(SRP.CommunicationObjectFaulted1, GetCommunicationObjectType().ToString()); 367return new CommunicationObjectAbortedException(SRP.Format(SRP.CommunicationObjectAborted1, GetCommunicationObjectType().ToString())); 480return new CommunicationException(SRP.Format(SRP.CommunicationObjectCloseInterrupted1, GetCommunicationObjectType().ToString()));
System\ServiceModel\Channels\CreateSequence.cs (1)
162string reason = SRP.Format(SRP.CouldNotParseWithAction, WsrmIndex.GetCreateSequenceActionString(reliableMessagingVersion));
System\ServiceModel\Channels\FaultConverter.cs (4)
37string text = SRP.Format(SRP.FaultConverterDidNotCreateException, GetType().Name); 46string text = SRP.Format(SRP.FaultConverterCreatedException, GetType().Name); 63string text = SRP.Format(SRP.FaultConverterDidNotCreateFaultMessage, GetType().Name); 72string text = SRP.Format(SRP.FaultConverterCreatedFaultMessage, GetType().Name);
System\ServiceModel\Channels\InputChannel.cs (1)
33return new TimeoutException(SRP.Format(SRP.ReceiveTimedOutNoLocalAddress, timeout));
System\ServiceModel\Channels\LifetimeManager.cs (2)
239throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new TimeoutException(SRP.Format(SRP.SFxCloseTimedOut1, timeout))); 250throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new TimeoutException(SRP.Format(SRP.SFxCloseTimedOut1, timeout)));
System\ServiceModel\Channels\MaxMessageSizeStream.cs (2)
86string message = SRP.Format(SRP.MaxReceivedMessageSizeExceeded, maxMessageSize); 99string message = SRP.Format(SRP.MaxSentMessageSizeExceeded, maxMessageSize);
System\ServiceModel\Channels\Message.cs (1)
1264throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.MessageBodyReaderInvalidReadState, bodyReader.ReadState.ToString())));
System\ServiceModel\Channels\MessageFault.cs (2)
103throw TraceUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.EnvelopeVersionUnknown, envelopeVersion.ToString())), message); 318throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.EnvelopeVersionUnknown, version.ToString())));
System\ServiceModel\Channels\MessageHeader.cs (1)
437throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.EnvelopeVersionUnknown, messageVersion.Envelope.ToString())));
System\ServiceModel\Channels\MessageHeaders.cs (10)
599throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.InvalidEnumValue, header.HeaderType))); 669throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.InvalidEnumValue, kind))); 835SRP.Format(SRP.MultipleRelatesToHeaders, relationshipType.AbsoluteUri), 1087new InvalidOperationException(SRP.Format(SRP.HeadersCannotBeAddedToEnvelopeVersion, MessageVersion.Envelope))); 1095string message = SRP.Format(SRP.AddressingHeadersCannotBeAddedToAddressingVersion, MessageVersion.Addressing); 1124throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.InvalidEnumValue, _headers[headerIndex].HeaderType))); 1233throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.InvalidEnumValue, _headers[index].HeaderType))); 1471string message = SRP.Format(SRP.AddressingHeadersCannotBeAddedToAddressingVersion, MessageVersion.Addressing); 1789throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.InvalidEnumValue, _headers[headerIndex].HeaderType))); 1821throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.InvalidEnumValue, _headers[headerIndex].HeaderType)));
System\ServiceModel\Channels\MessageProperties.cs (3)
57throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(string.Empty, SRP.Format(SRP.ObjectDisposed, GetType().ToString()))); 73throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SRP.Format(SRP.MessagePropertyNotFound, name))); 721throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SRP.Format(SRP.DuplicateMessageProperty, name)));
System\ServiceModel\Channels\MessageVersion.cs (4)
67SRP.Format(SRP.AddressingVersionNotSupported, addressingVersion)); 87SRP.Format(SRP.AddressingVersionNotSupported, addressingVersion)); 99SRP.Format(SRP.AddressingVersionNotSupported, addressingVersion)); 105SRP.Format(SRP.EnvelopeVersionNotSupported, envelopeVersion));
System\ServiceModel\Channels\MtomMessageEncodingBindingElement.cs (2)
28throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SRP.Format(SRP.MtomEncoderBadMessageVersion, messageVersion.ToString()), nameof(messageVersion))); 147throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SRP.Format(SRP.MtomEncoderBadMessageVersion, value.ToString()), nameof(value)));
System\ServiceModel\Channels\ReliableChannelBinder.cs (3)
357return new CommunicationObjectAbortedException(SRP.Format( 393return new CommunicationObjectFaultedException(SRP.Format( 624new TimeoutException(SRP.Format(SRP.TimeoutOnSend, timeout)));
System\ServiceModel\Channels\ReliableMessagingHelpers.cs (13)
56throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new TimeoutException(SRP.Format(SRP.TimeoutOnOperation, timeout))); 403throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new TimeoutException(SRP.Format(SRP.TimeoutOnOperation, timeout))); 841new ProtocolException(SRP.Format(SRP.AddressingVersionNotSupported, messageVersion.Addressing))); 908new TimeoutException(SRP.Format(timeoutString1Index, originalTimeout))); 1252new ProtocolException(SRP.Format(SRP.AddressingVersionNotSupported, addressingVersion))); 1809FaultReason faultReason = new FaultReason(SRP.Format(SRP.CSRefused, reason), CultureInfo.CurrentCulture); 2045SRP.Format(SRP.InvalidSequenceNumber, sequenceNumber))); 2069exceptionString = SRP.Format(SRP.WsrmMessageWithWrongRelatesToExceptionString, Wsrm11Strings.CloseSequence); 2070faultString = SRP.Format(SRP.WsrmMessageWithWrongRelatesToFaultString, Wsrm11Strings.CloseSequence); 2150exceptionString = SRP.Format(SRP.WsrmMessageWithWrongRelatesToExceptionString, WsrmFeb2005Strings.TerminateSequence); 2151faultString = SRP.Format(SRP.WsrmMessageWithWrongRelatesToFaultString, WsrmFeb2005Strings.TerminateSequence); 2174string faultString = SRP.Format(SRP.WsrmRequestIncorrectReplyToFaultString, info.RequestName); 2175string exceptionString = SRP.Format(SRP.WsrmRequestIncorrectReplyToExceptionString, info.RequestName);
System\ServiceModel\Channels\ReliableOutputSessionChannel.cs (4)
706string faultString = SRP.Format(SRP.ReceivedResponseBeforeRequestFaultString, requestName); 707string exceptionString = SRP.Format(SRP.ReceivedResponseBeforeRequestExceptionString, requestName); 804string faultString = SRP.Format(SRP.ReceivedResponseBeforeRequestFaultString, requestName); 805string exceptionString = SRP.Format(SRP.ReceivedResponseBeforeRequestExceptionString, requestName);
System\ServiceModel\Channels\ReliableRequestSessionChannel.cs (1)
817throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new TimeoutException(SRP.Format(SRP.TimeoutOnRequest, _originalTimeout)));
System\ServiceModel\Channels\ReliableSessionBindingElement.cs (1)
345throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("TChannel", SRP.Format(SRP.ChannelTypeNotSupported, typeof(TChannel)));
System\ServiceModel\Channels\RequestChannel.cs (2)
271throw TraceUtility.ThrowHelperError(new TimeoutException(SRP.Format(SRP.RequestChannelSendTimedOut, savedTimeout), 283throw TraceUtility.ThrowHelperError(new TimeoutException(SRP.Format(SRP.RequestChannelWaitForReplyTimedOut, savedTimeout),
System\ServiceModel\Channels\SecurityBindingElement.cs (1)
334throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SRP.Format(SRP.ChannelTypeNotSupported, typeof(TChannel)), nameof(TChannel)));
System\ServiceModel\Channels\ServiceChannel.cs (9)
538throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxCallbackRequestReplyInOrder1, typeof(CallbackBehaviorAttribute).Name))); 545throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxNonInitiatingOperation1, operation.Name))); 550throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxTerminatingOperationAlreadyCalled1, _terminatingOperationName))); 698ServiceModelActivity.Start(serviceModelActivity, SRP.Format(SRP.ActivityProcessAction, action), ActivityType.ProcessAction); 734ServiceModelActivity.Start(rpc.Activity, SRP.Format(SRP.ActivityProcessAction, action), ActivityType.ProcessAction); 889return new TimeoutException(SRP.Format(SRP.TimeoutServiceChannelConcurrentOpen1, timeout)); 1099string text = SRP.Format(SRP.SFxServiceChannelIdleAborted, operation.Name); 1119string text = SRP.Format(SRP.SFxInitializationUINotCalled, example.GetType().ToString()); 1138string text = SRP.Format(SRP.SFxInitializationUIDisallowed, example.GetType().ToString());
System\ServiceModel\Channels\ServiceChannelProxy.cs (5)
34throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.FailedToCreateTypedProxy, typeof(TChannel)))); 83throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.SFxMethodNotSupported1, method.Name))); 87throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.SFxMethodNotSupportedOnCallback1, method.Name))); 135throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.InvalidTypedProxyMethodHandle, _proxiedType.Name))); 346activityName = SRP.Format(SRP.ActivityClose, _serviceChannel.GetType().FullName);
System\ServiceModel\Channels\TextMessageEncoder.cs (3)
88SRP.Format(SRP.EnvelopeVersionNotSupported, version.Envelope))); 229throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ProtocolException(SRP.Format(SRP.EncoderUnrecognizedCharSet, charSet))); 306SRP.Format(SRP.EnvelopeVersionNotSupported, version.Envelope)));
System\ServiceModel\Channels\TransmissionStrategy.cs (1)
782_exception = new TimeoutException(SRP.Format(SRP.TimeoutOnAddToWindow, timeout));
System\ServiceModel\Channels\TransportDefaults.cs (1)
73throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SRP.Format(SRP.MessageTextEncodingNotSupported, charSet), "encoding"));
System\ServiceModel\Channels\WsrmFault.cs (3)
101message = SRP.Format(SRP.WsrmFaultReceived, message); 565SRP.Format(SRP.InvalidSequenceNumber, maxMessageNumber))); 665message = SRP.Format(SRP.UnknownSequenceFaultReceived, message);
System\ServiceModel\Channels\WsrmMessageInfo.cs (14)
105return new InternalFaultException(faultReply, SRP.Format(SRP.WsrmMessageProcessingError, message), inner); 504new ActionNotSupportedException(SRP.Format(SRP.NonWsrmFeb2005ActionNotSupported, action))); 623string reason = SRP.Format(SRP.NonEmptyWsrmMessageIsEmpty, Wsrm11Strings.CloseSequenceAction); 653new MessageHeaderException(SRP.Format(SRP.MissingRelatesToOnWsrmResponseReason, 660string reason = SRP.Format(SRP.NonEmptyWsrmMessageIsEmpty, 703string reason = SRP.Format(SRP.NonEmptyWsrmMessageIsEmpty, 773string reason = SRP.Format(SRP.NonEmptyWsrmMessageIsEmpty, 781new MessageHeaderException(SRP.Format(SRP.MissingRelatesToOnWsrmResponseReason, 817string reason = SRP.Format(SRP.NonEmptyWsrmMessageIsEmpty, 851new MessageHeaderException(SRP.Format(SRP.MissingRelatesToOnWsrmResponseReason, 858string reason = SRP.Format(SRP.NonEmptyWsrmMessageIsEmpty, 934SRP.Format(SRP.MissingMessageIdOnWsrmRequest, RequestName), 953SRP.Format(SRP.MissingReplyToOnWsrmRequest, RequestName), 1224SRP.Format(SRP.InvalidBufferRemaining, bufferRemaining)));
System\ServiceModel\ClientBase.cs (5)
162ServiceModelActivity.Start(activity, SRP.Format(SRP.ActivityOpenClientBase, typeof(TChannel).FullName), ActivityType.OpenClient); 212throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxImmutableClientBaseCacheSetting, typeof(TChannel).ToString()))); 353ServiceModelActivity.Start(activity, SRP.Format(SRP.ActivityCloseClientBase, typeof(TChannel).FullName), ActivityType.Close); 494ServiceModelActivity.Start(activity, SRP.Format(SRP.ActivityCloseClientBase, typeof(TChannel).FullName), ActivityType.Close); 954throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.SFxMethodNotSupported1, methodName)));
System\ServiceModel\DeliveryRequirementsAttribute.cs (5)
89SRP.Format(SRP.SinceTheBindingForDoesnTSupportIBindingCapabilities2_1, name))); 97SRP.Format(SRP.BindingRequirementsAttributeRequiresQueuedDelivery1, name))); 102SRP.Format(SRP.BindingRequirementsAttributeDisallowsQueuedDelivery1, name))); 116SRP.Format(SRP.SinceTheBindingForDoesnTSupportIBindingCapabilities1_1, name))); 123SRP.Format(SRP.TheBindingForDoesnTSupportOrderedDelivery1, name)));
System\ServiceModel\Description\CallbackDebugBehavior.cs (1)
35SRP.Format(SRP.SFXEndpointBehaviorUsedOnWrongSide, typeof(CallbackDebugBehavior).Name)));
System\ServiceModel\Description\ClientCredentials.cs (2)
181throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.MultipleSecurityCredentialsManagersInChannelBindingParameters, otherCredentialsManager))); 189SRP.Format(SRP.SFXEndpointBehaviorUsedOnWrongSide, typeof(ClientCredentials).Name)));
System\ServiceModel\Description\ContractDescription.cs (3)
212SRP.Format(SRP.SFxContractHasZeroOperations, Name))); 228SRP.Format(SRP.ContractIsNotSelfConsistentItHasOneOrMore2, Name))); 234SRP.Format(SRP.SFxContractHasZeroInitiatingOperations, Name)));
System\ServiceModel\Description\MetadataLocation.cs (1)
35throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SRP.Format(SRP.SFxMetadataReferenceInvalidLocation, value));
System\ServiceModel\Description\OperationDescription.cs (1)
178throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxOperationMustHaveOneOrTwoMessages, Name)));
System\ServiceModel\Description\ServiceReflector.cs (4)
168throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(paramName, SRP.Format(SRP.SFXUnvalidNamespaceParam, ns)); 544SRP.Format(SRP.SFxErrorReflectionOnUnknown1, attrType.Name), e)); 640throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.AttemptedToGetContractTypeForButThatTypeIs1, interfaceType.Name))); 661SRP.Format(SRP.SFxNoMostDerivedContract, interfaceType.Name)));
System\ServiceModel\Description\TypedMessageConverter.cs (1)
51throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SRP.Format(SRP.SFxMessageContractAttributeRequired, messageContract), "messageContract"));
System\ServiceModel\Description\TypeLoader.cs (7)
397throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxKnownTypeAttributeInvalid1, provider.ToString()))); 718throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SRP.Format(SRP.SFxInvalidCallbackContractType, callbackType.Name))); 1079throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.OneWayOperationShouldNotSpecifyAReplyAction1, operationName))); 1243throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxInvalidMessageContractSignature, methodName))); 1248throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxInvalidMessageContractSignature, methodName))); 1512throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxInvalidMessageHeaderArrayType, defaultName))); 1524throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxStaticMessageHeaderPropertiesNotAllowed, defaultName)));
System\ServiceModel\Description\XmlSerializerOperationBehavior.cs (2)
387throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxKnownTypeNull, Operation.Name))); 585throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxBodyObjectTypeCannotBeInherited, bodyObjectType.FullName)));
System\ServiceModel\Diagnostics\TraceUtility.cs (1)
576ServiceModelActivity.Start(activity, SRP.Format(SRP.ActivityProcessAction, message.Headers.Action), ActivityType.ProcessAction);
System\ServiceModel\Dispatcher\ChannelDispatcher.cs (1)
472return new InvalidOperationException(SRP.Format(SRP.SFxChannelDispatcherUnableToOpen1, _listener.Uri), e);
System\ServiceModel\Dispatcher\ChannelHandler.cs (3)
826string reason = SRP.Format(SRP.SFxNoEndpointMatchingAddress, request.RequestMessage.Headers.To); 840SRP.Format(SRP.SFxMissingActionHeader, addressingVersion.Namespace), AddressingStrings.Action, addressingVersion.Namespace)); 848string reason = SRP.Format(SRP.SFxNoEndpointMatchingContract, request.RequestMessage.Headers.Action);
System\ServiceModel\Dispatcher\DataContractSerializerOperationFormatter.cs (1)
93throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxKnownTypeNull, description.Name)));
System\ServiceModel\Dispatcher\DispatchOperationRuntime.cs (2)
49throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.DispatchRuntimeRequiresFormatter0, Name))); 266string message = SRP.Format(SRP.SFxDispatchRuntimeMessageCannotBeNull, Name);
System\ServiceModel\Dispatcher\DispatchRuntime.cs (1)
366string reasonText = SRP.Format(SRP.SFxNoEndpointMatchingContract, action);
System\ServiceModel\Dispatcher\DuplexChannelBinder.cs (1)
244return new TimeoutException(SRP.Format(SRP.SFxRequestTimedOut1, timeout));
System\ServiceModel\Dispatcher\ListenerBinder.cs (1)
50throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.UnknownListenerType1, listener.Uri.AbsoluteUri)));
System\ServiceModel\Dispatcher\MessageRpc.cs (1)
573string text = SRP.Format(SRP.SFxMultipleCallbackFromAsyncOperation,
System\ServiceModel\Dispatcher\OperationFormatter.cs (7)
174throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxMessageContractRequiresDefaultConstructor, messageContractType.FullName), mme)); 528throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxDocEncodedNotSupported, operation.Name))); 543throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxTypedMessageCannotBeRpcLiteral, operation.Name))); 559throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxTypedOrUntypedMessageCannotBeMixedWithParameters, operation.Name))); 564throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxTypedOrUntypedMessageCannotBeMixedWithVoidInRpc, operation.Name))); 605reason = SRP.Format(SRP.SFxDeserializationFailed1, reason); 645_instance = instance ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(SRP.Format(SRP.SFxTypedMessageCannotBeNull, description.Action)));
System\ServiceModel\Dispatcher\PrimitiveOperationFormatter.cs (2)
219new InvalidOperationException(SRP.Format(SRP.AddressingVersionNotSupported, addressing))); 245new InvalidOperationException(SRP.Format(SRP.AddressingVersionNotSupported, addressing)));
System\ServiceModel\Dispatcher\ProxyOperationRuntime.cs (2)
80throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.ClientRuntimeRequiresFormatter0, Name))); 235throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxProxyRuntimeMessageCannotBeNull, Name)));
System\ServiceModel\Dispatcher\StreamFormatter.cs (4)
217throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxInvalidStreamInTypedMessage, messageDescription.MessageName))); 221throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxInvalidStreamInRequest, operationName))); 225throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxInvalidStreamInResponse, operationName))); 348throw TraceUtility.ThrowHelperError(new ArgumentException(SRP.Format(SRP.SFxInvalidStreamOffsetLength, offset + count)), _message);
System\ServiceModel\Dispatcher\SyncMethodInvoker.cs (1)
79throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxInputParametersToServiceNull, _inputParameterCount)));
System\ServiceModel\Dispatcher\TaskMethodInvoker.cs (1)
139new InvalidOperationException(SRP.Format(SRP.SFxInputParametersToServiceNull, _inputParameterCount)));
System\ServiceModel\Dispatcher\ThreadBehavior.cs (1)
120string text = SRP.Format(SRP.SFxMultipleCallbackFromSynchronizationContext, _context.GetType().ToString());
System\ServiceModel\Dispatcher\XmlSerializerOperationFormatter.cs (5)
33throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxDocEncodedNotSupported, description.Name))); 272SRP.Format(SRP.SFxErrorDeserializingHeader, messageDescription.MessageName), e)); 338throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxBodyCannotBeNull, messageDescription.MessageName))); 481SRP.Format(resourceKey, OperationName), e)); 498SRP.Format(SRP.EnvelopeVersionNotSupported, version));
System\ServiceModel\DuplexChannelFactory.cs (5)
56ServiceModelActivity.Start(activity, SRP.Format(SRP.ActivityConstructChannelFactory, TraceUtility.CreateSourceString(this)), ActivityType.Construct); 87ServiceModelActivity.Start(activity, SRP.Format(SRP.ActivityConstructChannelFactory, TraceUtility.CreateSourceString(this)), ActivityType.Construct); 112ServiceModelActivity.Start(activity, SRP.Format(SRP.ActivityConstructChannelFactory, TraceUtility.CreateSourceString(this)), ActivityType.Construct); 188throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxCreateDuplexChannel1, Endpoint.Contract.Name))); 195throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(
System\ServiceModel\EndpointAddress.cs (4)
289new ProtocolException(SRP.Format(SRP.AddressingVersionNotSupported, message.Version.Addressing))); 539nameof(reader), SRP.Format(SRP.AddressingVersionNotSupported, reader.NamespaceURI)); 600SRP.Format(SRP.AddressingVersionNotSupported, addressingVersion)); 978SRP.Format(SRP.AddressingVersionNotSupported, addressingVersion));
System\ServiceModel\EndpointIdentity.cs (1)
221throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.UnrecognizedIdentityPropertyType, IdentityClaim.GetType().ToString())));
System\ServiceModel\FaultException.cs (1)
246return SRP.Format(SRP.SFxUnknownFaultNoMatchingTranslation1, reason.Translations[0].Text);
System\ServiceModel\KeyedByTypeCollection.cs (1)
110throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("item", SRP.Format(SRP.DuplicateBehavior1, item.GetType().FullName));
System\ServiceModel\ProtocolException.cs (6)
29string text = SRP.Format(SRP.ReceiveShutdownReturnedFault, reason.Text); 34string text = SRP.Format(SRP.ReceiveShutdownReturnedLargeFault, message.Headers.Action); 40string text = SRP.Format(SRP.ReceiveShutdownReturnedMessage, message.Headers.Action); 53string text = SRP.Format(SRP.OneWayOperationReturnedFault, reason.Text); 58string text = SRP.Format(SRP.OneWayOperationReturnedLargeFault, message.Headers.Action); 64string text = SRP.Format(SRP.OneWayOperationReturnedMessage, message.Headers.Action);
System\ServiceModel\Security\AcceleratedTokenProvider.cs (3)
93throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.BootstrapSecurityBindingElementNotSet, GetType()))); 104throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.BootstrapSecurityBindingElementNotSet, GetType()))); 192throw TraceUtility.ThrowHelperError(new SecurityNegotiationException(SRP.Format(SRP.InvalidActionForNegotiationMessage, incomingMessage.Headers.Action)), incomingMessage);
System\ServiceModel\Security\BinaryNegotiation.cs (1)
37throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityNegotiationException(SRP.Format(SRP.IncorrectBinaryNegotiationValueType, ValueTypeUri)));
System\ServiceModel\Security\ClientCredentialsSecurityTokenManager.cs (6)
32throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SRP.Format(SRP.TokenRequirementDoesNotSpecifyTargetAddress, initiatorRequirement)); 164throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.SecurityTokenManagerCannotCreateProviderForRequirement, tokenRequirement))); 184throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.SecurityTokenManagerCannotCreateSerializerForVersion, version))); 193throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SRP.Format(SRP.TokenRequirementDoesNotSpecifyTargetAddress, initiatorRequirement)); 198throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SRP.Format(SRP.TokenProviderRequiresSecurityBindingElement, initiatorRequirement)); 328throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.SecurityTokenManagerCannotCreateAuthenticatorForRequirement, tokenRequirement)));
System\ServiceModel\Security\IdentityVerifier.cs (2)
118result = new MessageSecurityException(SRP.Format(SRP.DnsIdentityCheckFailedForIncomingMessageLackOfDnsClaim, expectedDnsName)); 129result = new MessageSecurityException(SRP.Format(SRP.DnsIdentityCheckFailedForOutgoingMessageLackOfDnsClaim, expectedDnsName));
System\ServiceModel\Security\InitiatorSessionSymmetricTransportSecurityProtocol.cs (1)
26throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.ProtocolMustBeInitiator, nameof(InitiatorSessionSymmetricTransportSecurityProtocol))));
System\ServiceModel\Security\IssuanceTokenProviderBase.cs (3)
266throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.TargetAddressIsNotSet, GetType()))); 271throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SecurityAlgorithmSuiteNotSet, GetType()))); 617throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityNegotiationException(SRP.Format(SRP.InvalidIssuedTokenKeySize, symmetricKey.KeySize)));
System\ServiceModel\Security\NegotiationTokenProvider.cs (1)
102throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.IssuerBuildContextNotSet, GetType())));
System\ServiceModel\Security\ReceiveSecurityHeader.cs (8)
477throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new MessageSecurityException(SRP.Format(SRP.PrimarySignatureWasNotSignedByDerivedKey, _primaryTokenParameters))); 484throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new MessageSecurityException(SRP.Format(SRP.PrimarySignatureWasNotSignedByDerivedWrappedKey, _wrappingTokenParameters))); 572throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new MessageSecurityException(SRP.Format(SRP.DerivedKeyLimitExceeded, _maxDerivedKeys))); 679SRP.Format(SRP.UnableToResolveKeyInfoClauseInDerivedKeyToken, tmpToken.TokenToDeriveIdentifier)), Message); 695throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new MessageSecurityException(SRP.Format(SRP.UnknownTokenAuthenticatorUsedInTokenProcessing, usedTokenAuthenticator))); 766SRP.Format(SRP.UnableToFindTokenAuthenticator, typeof(DerivedKeySecurityToken)))); 789SRP.Format(SRP.UnableToFindTokenAuthenticator, token.GetType()))); 876SRP.Format(SRP.MessageProtectionOrderMismatch, _protectionOrder)));
System\ServiceModel\Security\ReceiveSecurityHeaderElementManager.cs (1)
109new MessageSecurityException(SRP.Format(SRP.DuplicateIdInMessageToBeVerified, id)), _securityHeader.SecurityVerifiedMessage);
System\ServiceModel\Security\RequestSecurityToken.cs (5)
224throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.ItemNotAvailableInDeserializedRST, "RequestProperties"))); 315throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.ItemAvailableInDeserializedRSTOnly, "RequestSecurityTokenXml"))); 329throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.ItemNotAvailableInDeserializedRST, nameof(AppliesTo)))); 341throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.ItemNotAvailableInDeserializedRST, nameof(AppliesToSerializer)))); 353throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.ItemNotAvailableInDeserializedRST, nameof(AppliesToType))));
System\ServiceModel\Security\RequestSecurityTokenResponse.cs (10)
324throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.ItemNotAvailableInDeserializedRSTR, nameof(EntropyToken)))); 336throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.ItemNotAvailableInDeserializedRSTR, "IssuedToken"))); 357throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.ItemNotAvailableInDeserializedRSTR, "ProofToken"))); 378throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.ItemAvailableInDeserializedRSTROnly, "RequestSecurityTokenXml"))); 390throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.ItemNotAvailableInDeserializedRST, nameof(AppliesTo)))); 402throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.ItemNotAvailableInDeserializedRST, nameof(AppliesToSerializer)))); 414throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.ItemNotAvailableInDeserializedRST, nameof(AppliesToType)))); 426throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.ItemNotAvailableInDeserializedRSTR, nameof(IsLifetimeSet)))); 493throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.ItemAvailableInDeserializedRSTOnly, "MatchesAppliesTo"))); 636throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.ItemAvailableInDeserializedRSTROnly, nameof(GetIssuedToken))));
System\ServiceModel\Security\SecurityAlgorithmSuite.cs (1)
102throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SigningTokenHasNoKeys, token)));
System\ServiceModel\Security\SecurityProtocol.cs (4)
581throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.UnknownTokenAttachmentMode, supportingTokens[i].SecurityTokenAttachmentMode.ToString()))); 591throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MessageSecurityException(SRP.Format(SRP.TokenProviderCannotGetTokensForTarget, target))); 602throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MessageSecurityException(SRP.Format(SRP.TokenProviderCannotGetTokensForTarget, target), exception)); 606throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityNegotiationException(SRP.Format(SRP.TokenProviderCannotGetTokensForTarget, target), sne));
System\ServiceModel\Security\SecurityProtocolFactory.cs (1)
492throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(nameof(DetectReplays), SRP.Format(SRP.SecurityProtocolCannotDoReplayDetection, this));
System\ServiceModel\Security\SecuritySessionClientSettings.cs (9)
226throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SecurityStandardsManagerNotSet, GetType().ToString()))); 230throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.IssuedSecurityTokenParametersNotSet, GetType()))); 272throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SRP.Format(SRP.ChannelTypeNotSupported, typeof(TChannel)), nameof(TChannel))); 607new ProtocolException(SRP.Format(SRP.AddressingVersionNotSupported, closeMessage.Version.Addressing))); 704throw TraceUtility.ThrowHelperError(new MessageSecurityException(SRP.Format(SRP.InvalidCloseResponseAction, response.Headers.Action)), response); 787throw TraceUtility.ThrowHelperWarning(new MessageSecurityException(SRP.Format(SRP.InvalidRstRequestType, rst.RequestType)), message); 798throw TraceUtility.ThrowHelperWarning(new MessageSecurityException(SRP.Format(SRP.BadCloseTarget, rst.CloseTarget)), message); 1275throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new TimeoutException(SRP.Format(SRP.ClientSecurityCloseTimeout, timeout))); 1283throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new TimeoutException(SRP.Format(SRP.ClientSecurityOutputSessionCloseTimeout, timeoutHelper.OriginalTimeout)));
System\ServiceModel\Security\SecuritySessionSecurityTokenProvider.cs (10)
272throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.TargetAddressIsNotSet, GetType()))); 276throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.IssuerBuildContextNotSet, GetType()))); 280throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.IssuedSecurityTokenParametersNotSet, GetType()))); 284throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.BootstrapSecurityBindingElementNotSet, GetType()))); 288throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SecurityAlgorithmSuiteNotSet, GetType()))); 300throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.IssuerBuildContextNotSet, GetType()))); 304throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.BootstrapSecurityBindingElementNotSet, GetType()))); 545e = new TimeoutException(SRP.Format(SRP.ClientSecuritySessionRequestTimeout, timeout), e); 689throw TraceUtility.ThrowHelperError(new SecurityNegotiationException(SRP.Format(SRP.InvalidRenewResponseAction, response.Headers.Action)), response); 715throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityNegotiationException(SRP.Format(SRP.InvalidIssuedTokenKeySize, symmetricKey.KeySize)));
System\ServiceModel\Security\SecurityUtils.cs (6)
230throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MessageSecurityException(SRP.Format(SRP.CannotDetermineSPNBasedOnAddress, target))); 326throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new MessageSecurityException(SRP.Format(SRP.MultipleMatchingCryptosFound, typeof(T).ToString()))); 345throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new MessageSecurityException(SRP.Format(SRP.CannotFindMatchingCrypto, derivationAlgorithm))); 927throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SRP.Format(SRP.IssuerBindingNotPresentInTokenRequirement, requirement)); 976throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ServerTooBusyException(SRP.Format(SRP.SecurityServerTooBusy, target), faultException)); 980throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new EndpointNotFoundException(SRP.Format(SRP.SecurityEndpointNotFound, target), faultException));
System\ServiceModel\Security\SendSecurityHeader.cs (1)
521throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.UnsupportedTokenInclusionMode, parameters.InclusionMode)));
System\ServiceModel\Security\TimeBoundedCache.cs (1)
397string message = SRP.Format(SRP.CacheQuotaReached, Capacity);
System\ServiceModel\Security\Tokens\BinarySecretSecurityToken.cs (1)
37throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(keySizeInBits), SRP.Format(SRP.KeyLengthMustBeMultipleOfEight, keySizeInBits)));
System\ServiceModel\Security\Tokens\SecurityTokenParameters.cs (1)
61throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SecurityTokenParametersCloneInvalidResult, GetType().ToString())));
System\ServiceModel\Security\TransportSecurityProtocol.cs (1)
134SRP.Format(SRP.UnableToFindSecurityHeaderInMessage, actor)), message);
System\ServiceModel\Security\WSSecureConversation.cs (3)
155throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.DerivedKeyInvalidGenerationSpecified, generation))); 167throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.DerivedKeyInvalidOffsetSpecified, offset))); 256throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MessageSecurityException(SRP.Format(SRP.UnsupportedKeyDerivationAlgorithm, derivedKeyToken.KeyDerivationAlgorithm)));
System\ServiceModel\Security\WSSecurityJan2004.cs (2)
321throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.UnsupportedPasswordType, type))); 384throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.CantInferReferenceForToken, ValueTypeAbsoluteUri)));
System\ServiceModel\Security\WSSecurityOneDotZeroSendSecurityHeader.cs (2)
504new MessageSecurityException(SRP.Format(SRP.UnsupportedCanonicalizationAlgorithm, suite.DefaultCanonicalizationAlgorithm))); 560SRP.Format(SRP.UnknownICryptoType, _signingKey)));
System\ServiceModel\Security\WSSecurityTokenSerializer.cs (1)
267throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.StandardsManagerCannotWriteObject, token.GetType())));
System\ServiceModel\Security\WSTrust.cs (14)
363throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new SecurityNegotiationException(SRP.Format(SRP.UnknownComputedKeyAlgorithm, computedKeyAlgorithm))); 652throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.EntropyModeRequiresRequestorEntropy, keyEntropyMode))); 657throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.EntropyModeCannotHaveProofTokenOrIssuerEntropy, keyEntropyMode))); 665throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.EntropyModeCannotHaveRequestorEntropy, keyEntropyMode))); 669throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.EntropyModeCannotHaveComputedKey, keyEntropyMode))); 673throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.EntropyModeRequiresProofToken, keyEntropyMode))); 687throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.EntropyModeRequiresComputedKey, keyEntropyMode))); 691throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.EntropyModeRequiresIssuerEntropy, keyEntropyMode))); 695throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.EntropyModeRequiresRequestorEntropy, keyEntropyMode))); 774throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.UnsupportedBinaryEncoding, encodingUri))); 839throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.TrustDriverIsUnableToCreatedNecessaryAttachedOrUnattachedReferences, issuedTokenXml.ToString()))); 1251throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new SecurityNegotiationException(SRP.Format(SRP.InvalidKeyLengthRequested, keySize))); 1260throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new InvalidOperationException(SRP.Format(SRP.EntropyModeRequiresRequestorEntropy, mode))); 1264throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new InvalidOperationException(SRP.Format(SRP.EntropyModeCannotHaveRequestorEntropy, mode)));
System\ServiceModel\Security\WSTrustFeb2005.cs (1)
136throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.TrustDriverIsUnableToCreatedNecessaryAttachedOrUnattachedReferences, issuedTokenXml.ToString())));
System\ServiceModel\Security\XmlHelper.cs (6)
120throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.CouldNotFindNamespaceForPrefix, prefix))); 181throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.EmptyXmlElementError, r.Name))); 186throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.EmptyXmlElementError, e.Name))); 196throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.CouldNotFindNamespaceForPrefix, prefix))); 314throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(idPrefix), SRP.Format(SRP.InValidateIdPrefix, idPrefix[0]))); 322throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(idPrefix), SRP.Format(SRP.InValidateId, idPrefix[i])));
System\ServiceModel\SynchronizedCollection.cs (1)
314throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SRP.Format(SRP.SynchronizedCollectionWrongType1, value.GetType().FullName)));
System\ServiceModel\UriSchemeKeyedCollection.cs (2)
40throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("item", SRP.Format(SRP.BaseAddressDuplicateScheme, item.Scheme)); 53throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("item", SRP.Format(SRP.BaseAddressDuplicateScheme, item.Scheme));
System\ServiceModel\XmlUtil.cs (2)
130throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.InvalidXmlQualifiedName, qname))); 139throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.UnboundPrefixInQName, qname)));