209 references to Format
System.ServiceModel.Primitives (209)
Internals\System\Runtime\Remoting\SoapHexBinary.cs (2)
51throw new FormatException(SRP.Format(SRP.Remoting_SOAPInteropxsdInvalid, "xsd:hexBinary", value)); 73throw new FormatException(SRP.Format(SRP.Remoting_SOAPInteropxsdInvalid, "xsd:hexBinary", value));
Internals\System\Text\BinHexEncoding.cs (3)
98throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new FormatException(SRP.Format(SRP.XmlInvalidBinHexSequence, new string(pch, 0, 2), charIndex + (int)(pch - _chars)))); 102throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new FormatException(SRP.Format(SRP.XmlInvalidBinHexSequence, new string(pch, 0, 2), charIndex + (int)(pch - _chars)))); 117throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(byteCount), SRP.Format(SRP.ValueMustBeInRange, 0, int.MaxValue / 2)));
Internals\System\Xml\XmlExceptionHelper.cs (1)
28s += " " + SRP.Format(SRP.XmlLineInfo, lineInfo.LineNumber, lineInfo.LinePosition);
Internals\System\Xml\XmlMtomReader.cs (13)
192throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.MtomMessageInvalidMimeVersion, header.Version, MimeVersionHeader.Default.Version))); 202throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.MtomMessageNotMultipart, MtomGlobals.MediaType, MtomGlobals.MediaSubtype))); 227throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.MtomRootNotApplicationXopXml, MtomGlobals.XopMediaType, MtomGlobals.XopMediaSubtype))); 277throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.MtomRootUnexpectedCharset, charset, expectedCharSetStr.ToString()))); 288throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.MtomRootUnexpectedType, rootType, expectedType))); 311throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.MtomInvalidTransferEncodingForMimePart, 343throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.MtomXopIncludeInvalidXopAttributes, _xmlReader.LocalName, MtomGlobals.XopIncludeNamespace))); 369throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.MtomXopIncludeInvalidXopElement, _xmlReader.LocalName, MtomGlobals.XopIncludeNamespace))); 457throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.MaxMimePartsExceeded, maxMimeParts, "MtomMessageEncoderBindingElement"))); 2718throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new FormatException(SRP.Format(SRP.MimeHeaderInvalidCharacter, (char)(*ptr), ((int)(*ptr)).ToString("X", CultureInfo.InvariantCulture)))); 3092throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new FormatException(SRP.Format(SRP.MimeHeaderInvalidCharacter, data[offset], ((int)data[offset]).ToString("X", CultureInfo.InvariantCulture)))); 3126throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new FormatException(SRP.Format(SRP.MimeHeaderInvalidCharacter, data[offset], ((int)data[offset]).ToString("X", CultureInfo.InvariantCulture)))); 3158throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new FormatException(SRP.Format(SRP.MimeHeaderInvalidCharacter, data[offset], ((int)data[offset]).ToString("X", CultureInfo.InvariantCulture))));
Internals\System\Xml\XmlMtomWriter.cs (2)
244throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.MtomDataMustNotContainXopInclude, MtomGlobals.XopIncludeLocalName, MtomGlobals.XopIncludeNamespace))); 1466throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new FormatException(SRP.Format(SRP.MimeHeaderInvalidCharacter, c, ((int)c).ToString("X", CultureInfo.InvariantCulture))));
System\IdentityModel\Psha1DerivedKeyGenerator.cs (1)
72throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(position), SRP.Format(SRP.ValueMustBeInRange, 0, _position)));
System\IdentityModel\Selectors\SecurityTokenAuthenticator.cs (2)
36throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenValidationException(SRP.Format(SRP.CannotValidateSecurityTokenType, this, token.GetType()))); 52string errorMsg = SRP.Format(SRP.CannotValidateSecurityTokenType, this, token.GetType());
System\IdentityModel\Selectors\X509CertificateValidator.cs (1)
218throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenValidationException(SRP.Format(SRP.X509ChainBuildFail,
System\IdentityModel\Tokens\KeyInfoSerializer.cs (1)
266throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.CannotReadKeyIdentifierClause, reader.LocalName, reader.NamespaceURI)));
System\IdentityModel\Tokens\SecurityToken.cs (1)
31SRP.Format(SRP.TokenDoesNotSupportKeyIdentifierClauseCreation, GetType().Name, typeof(T).Name)));
System\IdentityModel\Tokens\WSSecurityJan2004.cs (1)
210throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.CannotReadKeyIdentifierClause, reader.LocalName, reader.NamespaceURI)));
System\IdentityModel\Tokens\X509AsymmetricSecurityKey.cs (3)
211throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CryptographicException(SRP.Format(SRP.UnsupportedAlgorithmForCryptoOperation, 261throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CryptographicException(SRP.Format(SRP.UnsupportedAlgorithmForCryptoOperation, 336throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CryptographicException(SRP.Format(SRP.UnsupportedAlgorithmForCryptoOperation,
System\ServiceModel\Channels\AddressHeader.cs (1)
137throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.ExpectedElementMissing, Name, Namespace)));
System\ServiceModel\Channels\AddressHeaderCollection.cs (1)
121throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SRP.Format(SRP.MultipleMessageHeaders, name, ns)));
System\ServiceModel\Channels\BinaryMessageEncoder.cs (6)
830throw FxTrace.Exception.AsError(new ProtocolException(SRP.Format(SRP.EncoderUnrecognizedContentType, contentType, ContentType))); 849throw FxTrace.Exception.AsError(new ProtocolException(SRP.Format(SRP.EncoderUnrecognizedContentType, contentType, ContentType))); 1018SRP.Format(SRP.ValueMustBeInRange, 0, 0x4000))); 1041SRP.Format(SRP.ValueMustBeInRange, 0, 0xFF))); 1067SRP.Format(SRP.ValueMustBeInRange, 'a', 'z'))); 1111SRP.Format(SRP.ValueMustBeInRange, 1, 4)));
System\ServiceModel\Channels\Binding.cs (1)
252SRP.Format(SRP.TransportBindingElementMustBeLast, Name, transport.GetType().Name)));
System\ServiceModel\Channels\BindingContext.cs (1)
96throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(
System\ServiceModel\Channels\ChannelParameterCollection.cs (4)
89text = SRP.Format(SRP.ChannelParametersCannotBeModified, 94text = SRP.Format(SRP.CommunicationObjectInInvalidState, 117text = SRP.Format(SRP.ChannelParametersCannotBePropagated, 129text = SRP.Format(SRP.CommunicationObjectInInvalidState,
System\ServiceModel\Channels\ChannelRequirements.cs (1)
254exception = new InvalidOperationException(SRP.Format(SRP.CouldnTCreateChannelForType2, bindingName, contractChannelTypesString));
System\ServiceModel\Channels\CommunicationObject.cs (3)
334return new InvalidOperationException(SRP.Format(SRP.CommunicationObjectCannotBeUsed, GetCommunicationObjectType().ToString(), _state.ToString())); 339return new InvalidOperationException(SRP.Format(SRP.CommunicationObjectCannotBeModifiedInState, GetCommunicationObjectType().ToString(), _state.ToString())); 344return new InvalidOperationException(SRP.Format(SRP.CommunicationObjectBaseClassMethodNotCalled, GetCommunicationObjectType().ToString(), method));
System\ServiceModel\Channels\InputChannel.cs (1)
29return new TimeoutException(SRP.Format(SRP.ReceiveTimedOut, channel.LocalAddress.Uri.AbsoluteUri, timeout));
System\ServiceModel\Channels\LocalClientSecuritySettings.cs (1)
168SRP.Format(SRP.ValueMustBeInRange, 0, 100)));
System\ServiceModel\Channels\Message.cs (3)
542return SRP.Format(SRP.MessageBodyToStringError, e.GetType().ToString(), e.Message); 1351Exception versionMismatchException = new ArgumentException(SRP.Format(SRP.EncoderEnvelopeVersionMismatch, envelopeVersion, desiredVersion.Envelope), "reader"); 1579Exception versionMismatchException = new ArgumentException(SRP.Format(SRP.EncoderEnvelopeVersionMismatch, envelopeVersion, desiredVersion.Envelope), "reader");
System\ServiceModel\Channels\MessageEncoder.cs (1)
245new ProtocolException(SRP.Format(SRP.EncoderMessageVersionMismatch, message.Version, MessageVersion)),
System\ServiceModel\Channels\MessageHeader.cs (1)
489throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SRP.Format(SRP.MessageHeaderVersionNotSupported, GetType().FullName, messageVersion.ToString()), "version"));
System\ServiceModel\Channels\MessageHeaders.cs (21)
400SRP.Format(SRP.ValueMustBeInRange, 0, _headerCount))); 467SRP.Format(SRP.HeaderAlreadyUnderstood, headerInfo.Name, headerInfo.Namespace), "headerInfo")); 570throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SRP.Format(SRP.MessageHeaderVersionMismatch, collection.MessageVersion.ToString(), MessageVersion.ToString()), "collection")); 577SRP.Format(SRP.ValueMustBeInRange, 0, collection._headerCount))); 637SRP.Format(SRP.ValueMustBeInRange, 0, array.Length - _headerCount))); 673SRP.Format(SRP.MultipleMessageHeaders, name, MessageVersion.Addressing.Namespace), 714new MessageHeaderException(SRP.Format(SRP.MultipleMessageHeaders, name, ns), name, ns, true)); 744throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MessageHeaderException(SRP.Format(SRP.MultipleMessageHeaders, name, ns), name, ns, true)); 789throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MessageHeaderException(SRP.Format(SRP.MultipleMessageHeaders, name, ns), name, ns, true)); 972throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MessageHeaderException(SRP.Format(SRP.HeaderNotFound, name, ns), name, ns)); 988throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MessageHeaderException(SRP.Format(SRP.HeaderNotFound, name, ns), name, ns)); 1000SRP.Format(SRP.ValueMustBeInRange, 0, _headerCount))); 1108SRP.Format(SRP.ValueMustBeInRange, 0, _headerCount))); 1219SRP.Format(SRP.ValueMustBeInRange, 0, _headerCount))); 1366throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SRP.Format(SRP.MessageHeaderVersionNotSupported, 1400SRP.Format(SRP.ValueMustBeInRange, 0, _headerCount))); 1560SRP.Format(SRP.HeaderAlreadyNotUnderstood, headerInfo.Name, headerInfo.Namespace), "headerInfo")); 1596SRP.Format(SRP.ValueMustBeInRange, 0, _headerCount))); 1614SRP.Format(SRP.ValueMustBeInRange, 0, _headerCount))); 1777SRP.Format(SRP.ValueMustBeInRange, 0, _headerCount))); 1809SRP.Format(SRP.ValueMustBeInRange, 0, _headerCount)));
System\ServiceModel\Channels\MessageProperties.cs (1)
828SRP.Format(SRP.ValueMustBeInRange, 0, array.Length - _propertyCount)));
System\ServiceModel\Channels\MtomMessageEncoder.cs (1)
466SRP.Format(SRP.ValueMustBeInRange, 0, maxMessageSize)));
System\ServiceModel\Channels\ReliableChannelBinder.cs (1)
515e = new InvalidOperationException(SRP.Format(
System\ServiceModel\Channels\ReliableSessionBindingElement.cs (3)
109SRP.Format(SRP.ValueMustBeInRange, 0, 16384))); 141SRP.Format(SRP.ValueMustBeInRange, 0, 4096))); 412new InvalidOperationException(SRP.Format(SRP.TransferModeNotSupported,
System\ServiceModel\Channels\SequenceRangeCollection.cs (1)
195SRP.Format(SRP.ValueMustBeInRange, 0, _ranges.Length - 1)));
System\ServiceModel\Channels\ServiceChannel.cs (5)
579string text = SRP.Format(SRP.SFxRequestHasInvalidReplyToOnClient, replyTo.Uri, localUri); 587string text = SRP.Format(SRP.SFxRequestHasInvalidFaultToOnClient, faultTo.Uri, localUri); 597string text = SRP.Format(SRP.SFxRequestHasInvalidFromOnClient, from.Uri, localUri); 885return new TimeoutException(SRP.Format(SRP.TimeoutServiceChannelConcurrentOpen2, address, timeout)); 1184SRP.Format(SRP.SFxVersionMismatchInOperationContextAndMessage2, context.OutgoingMessageVersion, message.Headers.MessageVersion)
System\ServiceModel\Channels\TextMessageEncoder.cs (1)
512SRP.Format(SRP.ValueMustBeInRange, 0, maxMessageSize)), message);
System\ServiceModel\Channels\TransportChannelFactory.cs (1)
166throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("via", SRP.Format(SRP.InvalidUriScheme,
System\ServiceModel\Channels\TransportSecurityHelpers.cs (1)
143throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(
System\ServiceModel\Channels\WsrmMessageInfo.cs (1)
1122new XmlException(SRP.Format(SRP.InvalidSequenceRange, lower, upper)));
System\ServiceModel\Description\ClientCredentials.cs (1)
162throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(NotImplemented.ByDesignWithMessage(SRP.Format(SRP.CloneNotImplementedCorrectly, GetType(), (result != null) ? result.ToString() : "null")));
System\ServiceModel\Description\DispatcherBuilder.cs (1)
307string text = SRP.Format(SRP.SFxBindingMustContainTransport2, binding.Name, binding.Namespace);
System\ServiceModel\Description\ServiceReflector.cs (11)
159throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SRP.Format(SRP.SFXUnvalidNamespaceValue, ns, propName)); 425throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxContractInheritanceRequiresInterfaces2, service, t))); 442throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxContractInheritanceRequiresInterfaces, service, t))); 525SRP.Format(SRP.SFxErrorReflectingOnType2, attrType.Name, type.Name), e)); 574throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.tooManyAttributesOfTypeOn2, attrType, attrProvider.ToString()))); 587throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.couldnTFindRequiredAttributeOfTypeOn2, typeof(T), attrProvider.ToString()))); 619throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.couldnTFindRequiredAttributeOfTypeOn2, typeof(T), attrProvider.ToString()))); 703new InvalidOperationException(SRP.Format(SRP.SFxBadByValueParameterMetadata, 712new InvalidOperationException(SRP.Format(SRP.SFxBadByReferenceParameterMetadata, 845throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.InvalidAsyncEndMethodSignatureForMethod2, endMethod.Name, endMethod.DeclaringType.FullName))); 878throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.InvalidAsyncBeginMethodSignatureForMethod2, method.Name, method.DeclaringType.FullName)));
System\ServiceModel\Description\TypedMessageConverter.cs (1)
107throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxActionMismatch, this.Action, message.Headers.Action)));
System\ServiceModel\Description\TypeLoader.cs (10)
112SRP.Format(SRP.SFxContractInheritanceRequiresInterfaces, actualContractType, service))); 143throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format( 744SRP.Format(SRP.InAContractInheritanceHierarchyTheServiceContract3_2, 872SRP.Format(SRP.EndMethodsCannotBeDecoratedWithOperationContractAttribute, 991throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.OneWayAndFaultsIncompatible2, methodInfo.DeclaringType.FullName, operationName.EncodedName))); 1106SRP.Format(SRP.SFxFaultContractDuplicateDetailType, operationName, fault.DetailType))); 1217throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxMultipleUnknownHeaders, methodInfo, methodInfo.DeclaringType))); 1258throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidMessageContractException(SRP.Format(SRP.SFxDuplicateMessageParts, partDescription.Name, partDescription.Namespace))); 1329throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxMessageContractBaseTypeNotValid, baseType, typedMessageType))); 1609throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidMessageContractException(SRP.Format(SRP.SFxDuplicateMessageParts, partDescription.Name, partDescription.Namespace)));
System\ServiceModel\Description\XmlSerializerOperationBehavior.cs (8)
578throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxRpcMessageMustHaveASingleBody, Operation.Name, message.MessageName))); 590throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxBodyObjectTypeCannotBeInterface, bodyObjectType.FullName, typeof(IEnumerable).FullName))); 595throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxBodyObjectTypeCannotBeInterface, bodyObjectType.FullName, typeof(IXmlSerializable).FullName))); 692throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxFaultTypeAnonymous, Operation.Name, fault.DetailType.FullName))); 1062throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxMultiplePartsNotAllowedInEncoded, elementName.DecodedName, ns))); 1114throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxInvalidSoapAttribute, invalidAttributeType, elementName.DecodedName))); 1163throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(isWrapped ? SRP.SFxInvalidXmlAttributeInWrapped : SRP.SFxInvalidXmlAttributeInBare, invalidAttributeType, elementName.DecodedName))); 1168throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxXmlArrayNotAllowedForMultiple, elementName.DecodedName, ns)));
System\ServiceModel\Dispatcher\ChannelDispatcher.cs (1)
476return new InvalidOperationException(SRP.Format(SRP.SFxChannelDispatcherUnableToOpen2, _listener.Uri, endpointContractNames), e);
System\ServiceModel\Dispatcher\ChannelHandler.cs (1)
260throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxNoEndpointMatchingAddressForConnectionOpeningMessage, message.Headers.Action, "Open")));
System\ServiceModel\Dispatcher\DataContractSerializerOperationFormatter.cs (2)
526SRP.Format(SRP.SFxInvalidMessageBodyErrorDeserializingParameter, part.Description.Namespace, part.Description.Name), e)); 531SRP.Format(SRP.SFxInvalidMessageBodyErrorDeserializingParameter, part.Description.Namespace, part.Description.Name), e));
System\ServiceModel\Dispatcher\DispatchOperationRuntime.cs (1)
258string message = SRP.Format(SRP.SFxNullReplyFromFormatter2, Formatter.GetType().ToString(), (Name ?? ""));
System\ServiceModel\Dispatcher\DuplexChannelBinder.cs (1)
240return new TimeoutException(SRP.Format(SRP.SFxRequestTimedOut2, address, timeout));
System\ServiceModel\Dispatcher\ImmutableClientRuntime.cs (1)
172(SRP.Format(SRP.SFxNeedProxyBehaviorOperationSelector2,
System\ServiceModel\Dispatcher\ImmutableDispatchRuntime.cs (1)
155string message = SRP.Format(SRP.SFxNullReplyFromExtension2, _messageInspectors[i].GetType().ToString(), (rpc.Operation.Name ?? ""));
System\ServiceModel\Dispatcher\OperationFormatter.cs (6)
151SRP.Format(SRP.SFxErrorDeserializingReplyBodyMore, _operationName, xe.Message), xe)); 156SRP.Format(SRP.SFxErrorDeserializingReplyBodyMore, _operationName, fe.Message), fe)); 161SRP.Format(SRP.SFxErrorDeserializingReplyBodyMore, _operationName, se.Message), se)); 218SRP.Format(SRP.SFxErrorDeserializingRequestBodyMore, _operationName, xe.Message), 225SRP.Format(SRP.SFxErrorDeserializingRequestBodyMore, _operationName, fe.Message), 231SRP.Format(SRP.SFxErrorDeserializingRequestBodyMore, _operationName, se.Message),
System\ServiceModel\Dispatcher\PrimitiveOperationFormatter.cs (7)
376throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxMessagePartDescriptionMissingType, bodyDescription.Name, bodyDescription.Namespace))); 506SRP.Format(SRP.SFxErrorDeserializingReplyBodyMore, _operation.Name, xe.Message), xe)); 511SRP.Format(SRP.SFxErrorDeserializingReplyBodyMore, _operation.Name, fe.Message), fe)); 516SRP.Format(SRP.SFxErrorDeserializingReplyBodyMore, _operation.Name, se.Message), se)); 555SRP.Format(SRP.SFxErrorDeserializingRequestBodyMore, _operation.Name, xe.Message), 562SRP.Format(SRP.SFxErrorDeserializingRequestBodyMore, _operation.Name, fe.Message), 568SRP.Format(SRP.SFxErrorDeserializingRequestBodyMore, _operation.Name, se.Message),
System\ServiceModel\Dispatcher\ProxyOperationRuntime.cs (1)
182throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ProtocolException(SRP.Format(SRP.SFxHeaderNotUnderstood, headersNotUnderstood[0].Name, headersNotUnderstood[0].Namespace)));
System\ServiceModel\Dispatcher\SyncMethodInvoker.cs (2)
84throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxInputParametersToServiceInvalid, _inputParameterCount, inputs.Length))); 138ServiceModelActivity.Start(activity, SRP.Format(SRP.ActivityExecuteMethod, Method.DeclaringType.FullName, Method.Name), ActivityType.ExecuteUserCode);
System\ServiceModel\Dispatcher\TaskMethodInvoker.cs (2)
145new InvalidOperationException(SRP.Format(SRP.SFxInputParametersToServiceInvalid, _inputParameterCount, 201SRP.Format(SRP.ActivityExecuteMethod, Method.DeclaringType.FullName, Method.Name),
System\ServiceModel\Dispatcher\XmlSerializerOperationFormatter.cs (2)
140SRP.Format(SRP.SFxErrorSerializingHeader, messageDescription.MessageName, e.Message), e)); 364SRP.Format(SRP.SFxErrorSerializingBody, messageDescription.MessageName, e.Message), e));
System\ServiceModel\DnsEndpointIdentity.cs (1)
32throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SRP.Format(SRP.UnrecognizedClaimTypeForIdentity, identity.ClaimType, ClaimTypes.Dns));
System\ServiceModel\EndpointAddress.cs (4)
632throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(CreateXmlException(reader, SRP.Format(SRP.UnexpectedDuplicateElement, XD.AddressingDictionary.Identity.Value, XD.AddressingDictionary.IdentityExtensionNamespace.Value))); 639throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(CreateXmlException(reader, SRP.Format(SRP.AddressingExtensionInBadNS, reader.LocalName, reader.NamespaceURI))); 1051throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(CreateXmlException(reader, SRP.Format(SRP.AddressingExtensionInBadNS, reader.LocalName, reader.NamespaceURI))); 1108throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(CreateXmlException(reader, SRP.Format(SRP.AddressingExtensionInBadNS, reader.LocalName, reader.NamespaceURI)));
System\ServiceModel\EndpointIdentity.cs (3)
151throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.UnexpectedEmptyElementExpectingClaim, XD.AddressingDictionary.Identity.Value, XD.AddressingDictionary.IdentityExtensionNamespace.Value))); 181throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.UnrecognizedIdentityType, reader.Name, reader.NamespaceURI))); 190throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.UnrecognizedIdentityType, reader.Name, reader.NamespaceURI)));
System\ServiceModel\MustUnderstandSoapException.cs (1)
37FaultReason reason = new FaultReason(SRP.Format(SRP.SFxHeaderNotUnderstood, name, ns), CultureInfo.CurrentCulture);
System\ServiceModel\RsaEndpointIdentity.cs (1)
39throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SRP.Format(SRP.UnrecognizedClaimTypeForIdentity, identity.ClaimType, ClaimTypes.Rsa));
System\ServiceModel\Security\IdentityVerifier.cs (5)
74throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new MessageSecurityException(SRP.Format(errorString, identity, serviceReference))); 122result = new MessageSecurityException(SRP.Format(SRP.DnsIdentityCheckFailedForIncomingMessage, expectedDnsName, actualDnsName)); 133result = new MessageSecurityException(SRP.Format(SRP.DnsIdentityCheckFailedForOutgoingMessage, expectedDnsName, actualDnsName)); 138result = new MessageSecurityException(SRP.Format(errorString, identity, serviceReference)); 143result = new MessageSecurityException(SRP.Format(errorString, identity, serviceReference));
System\ServiceModel\Security\IssuanceTokenProviderBase.cs (3)
114throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value), SRP.Format(SRP.ValueMustBeInRange, 1, 100))); 250Exception e = new InvalidOperationException(SRP.Format(SRP.CommunicationObjectCannotBeUsed, GetType().ToString(), state.ToString())); 666e = new SecurityNegotiationException(SRP.Format(SRP.SoapSecurityNegotiationFailedForIssuerAndTarget, issuerUri, targetUri), e);
System\ServiceModel\Security\SecurityAlgorithmSuite.cs (1)
123throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SigningTokenHasNoKeysSupportingTheAlgorithmSuite, token, this)));
System\ServiceModel\Security\SecurityAppliedMessage.cs (1)
45return new InvalidOperationException(SRP.Format(SRP.MessageBodyOperationNotValidInBodyState, operation, _state));
System\ServiceModel\Security\SecurityHeaderTokenResolver.cs (1)
186throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MessageSecurityException(SRP.Format(SRP.UnableToDeriveKeyFromKeyInfoClause, keyIdentifierClause, resolvedToken)));
System\ServiceModel\Security\SecurityProtocolFactory.cs (1)
535SRP.Format(SRP.PropertySettingErrorOnProtocolFactory, propertyName, this),
System\ServiceModel\Security\SecuritySessionClientSettings.cs (2)
447throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.ProtocolMisMatch, nameof(IInitiatorSecuritySessionProtocol), GetType().ToString()))); 1355throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.SessionTokenIsNotGenericXmlToken, sessionToken, typeof(GenericXmlSecurityToken))));
System\ServiceModel\Security\SecurityTimestamp.cs (1)
159throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MessageSecurityException(SRP.Format(SRP.TimeStampHasCreationAheadOfExpiry, CreationTimeUtc.ToString(DefaultFormat, CultureInfo.CurrentCulture), ExpiryTimeUtc.ToString(DefaultFormat, CultureInfo.CurrentCulture))));
System\ServiceModel\Security\SecurityVerifiedMessage.cs (1)
112return new InvalidOperationException(SRP.Format(SRP.MessageBodyOperationNotValidInBodyState,
System\ServiceModel\Security\Tokens\BinarySecretSecurityToken.cs (1)
32throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(keySizeInBits), SRP.Format(SRP.ValueMustBeInRange, 0, 512)));
System\ServiceModel\Security\Tokens\DerivedKeySecurityToken.cs (2)
197throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SRP.Format(SRP.DerivedKeyLengthTooLong, Length, maxKeyLength)); 218throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new MessageSecurityException(SRP.Format(SRP.DerivedKeyTokenOffsetTooHigh, offset, maxOffset)));
System\ServiceModel\Security\Tokens\SecurityTokenParameters.cs (2)
86SRP.Format(SRP.TokenDoesNotSupportKeyIdentifierClauseCreation, token.GetType().Name, referenceStyle))); 135SRP.Format(SRP.TokenDoesNotSupportKeyIdentifierClauseCreation, token.GetType().Name, referenceStyle)));
System\ServiceModel\Security\WindowsClientCredential.cs (1)
48throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SRP.Format(SRP.UnsupportedTokenImpersonationLevel, "AllowedImpersonationLevel", value.ToString())));
System\ServiceModel\Security\WSSecureConversation.cs (3)
196throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new MessageSecurityException(SRP.Format(SRP.DerivedKeyTokenLabelTooLong, label.Length, _maxKeyDerivationLabelLength))); 206throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new MessageSecurityException(SRP.Format(SRP.DerivedKeyTokenNonceTooLong, nonce.Length, _maxKeyDerivationNonceLength))); 462throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new SecurityContextTokenValidationException(SRP.Format(SRP.SecurityContextNotRegistered, contextId, generation)));
System\ServiceModel\Security\WSSecurityOneDotZeroSendSecurityHeader.cs (2)
551SRP.Format(SRP.UnableToCreateKeyedHashAlgorithm, symmetricKey, algorithmName))); 567SRP.Format(SRP.UnableToCreateHashAlgorithmFromAsymmetricCrypto, algorithmName,
System\ServiceModel\Security\WSSecurityTokenSerializer.cs (1)
470throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.RequiredAttributeMissing, idAttributeLocalName, issuedTokenXml.LocalName)));
System\ServiceModel\Security\WSTrust.cs (2)
125throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MessageSecurityException(SRP.Format(SRP.UnexpectedBinarySecretType, _parent.SerializerDictionary.SymmetricKeyBinarySecret.Value, secretType))); 615throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.BadIssuedTokenType, rstr.TokenType, expectedTokenType)));
System\ServiceModel\Security\XmlHelper.cs (5)
171throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.ChildNodeTypeMissing, parentName, expectedNodeType))); 176throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.ChildNodeTypeMissing, parent.Name, expectedNodeType))); 201throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.RequiredAttributeMissing, attrName, elementName))); 206throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.ExpectedElementMissing, elementName, elementNamespace))); 260new XmlException(SRP.Format(SRP.EmptyBase64Attribute, name, ns)));
System\ServiceModel\SpnEndpointIdentity.cs (1)
33throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SRP.Format(SRP.UnrecognizedClaimTypeForIdentity, identity.ClaimType, ClaimTypes.Spn));
System\ServiceModel\SynchronizedCollection.cs (3)
83SRP.Format(SRP.ValueMustBeInRange, 0, Items.Count - 1))); 147SRP.Format(SRP.ValueMustBeInRange, 0, Items.Count))); 190SRP.Format(SRP.ValueMustBeInRange, 0, Items.Count - 1)));
System\ServiceModel\SynchronizedKeyedCollection.cs (1)
48SRP.Format(SRP.ValueMustBeInRange, -1, int.MaxValue)));
System\ServiceModel\SynchronizedReadOnlyCollection.cs (1)
273string message = SRP.Format(SRP.SFxCollectionWrongType2, type.ToString(), typeof(T).ToString());
System\ServiceModel\UpnEndpointIdentity.cs (1)
36throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SRP.Format(SRP.UnrecognizedClaimTypeForIdentity, identity.ClaimType, ClaimTypes.Upn));
System\ServiceModel\X509CertificateEndpointIdentity.cs (2)
58throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.UnexpectedEmptyElementExpectingClaim, XD.AddressingDictionary.X509v3Certificate.Value, XD.AddressingDictionary.IdentityExtensionNamespace.Value))); 80throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.UnexpectedEmptyElementExpectingClaim, XD.AddressingDictionary.X509v3Certificate.Value, XD.AddressingDictionary.IdentityExtensionNamespace.Value)));
System\ServiceModel\XmlUtil.cs (2)
158throw new XmlException(SRP.Format(SRP.XmlInvalidConversion, string.Empty, "DateTime"), exception); 162throw new XmlException(SRP.Format(SRP.XmlInvalidConversion, string.Empty, "DateTime"), exception);