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\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))));
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\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\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\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\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\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\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\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\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)));