242 references to XmlException
PresentationFramework (20)
MS\Internal\IO\Packaging\XamlFilter.cs (1)
779throw new XmlException(SR.XamlFilterNestedFixedPage);
System\Windows\Annotations\Annotation.cs (8)
325throw new XmlException(SR.Format(SR.InvalidXmlContent, AnnotationXmlConstants.Elements.Annotation)); 340throw new XmlException(SR.Format(SR.InvalidXmlContent, AnnotationXmlConstants.Elements.Annotation)); 550throw new XmlException(SR.Format(SR.UnexpectedAttribute, reader.LocalName, elementName)); 664throw new XmlException(SR.Format(SR.UnexpectedAttribute, reader.LocalName, AnnotationXmlConstants.Elements.Annotation)); 672throw new XmlException(SR.Format(SR.RequiredAttributeMissing, AnnotationXmlConstants.Attributes.Id, AnnotationXmlConstants.Elements.Annotation)); 676throw new XmlException(SR.Format(SR.RequiredAttributeMissing, AnnotationXmlConstants.Attributes.CreationTime, AnnotationXmlConstants.Elements.Annotation)); 680throw new XmlException(SR.Format(SR.RequiredAttributeMissing, AnnotationXmlConstants.Attributes.LastModificationTime, AnnotationXmlConstants.Elements.Annotation)); 684throw new XmlException(SR.Format(SR.RequiredAttributeMissing, AnnotationXmlConstants.Attributes.TypeName, AnnotationXmlConstants.Elements.Annotation));
System\Windows\Annotations\AnnotationResource.cs (3)
190throw new XmlException(SR.Format(SR.InvalidXmlContent, AnnotationXmlConstants.Elements.Resource)); 455throw new XmlException(SR.Format(SR.UnexpectedAttribute, reader.LocalName, AnnotationXmlConstants.Elements.Resource)); 462throw new XmlException(SR.Format(SR.RequiredAttributeMissing, AnnotationXmlConstants.Attributes.Id, AnnotationXmlConstants.Elements.Resource));
System\Windows\Annotations\LocatorGroup.cs (1)
145throw new XmlException(SR.Format(SR.InvalidXmlContent, AnnotationXmlConstants.Elements.ContentLocatorGroup));
System\Windows\Annotations\LocatorPartList.cs (6)
207throw new XmlException(SR.Format(SR.InvalidXmlContent, AnnotationXmlConstants.Elements.ContentLocator)); 240throw new XmlException(SR.Format(SR.UnexpectedAttribute, reader.LocalName, AnnotationXmlConstants.Elements.Item)); 247throw new XmlException(SR.Format(SR.RequiredAttributeMissing, AnnotationXmlConstants.Attributes.ItemName, AnnotationXmlConstants.Elements.Item)); 251throw new XmlException(SR.Format(SR.RequiredAttributeMissing, AnnotationXmlConstants.Attributes.ItemValue, AnnotationXmlConstants.Elements.Item)); 267throw new XmlException(SR.Format(SR.InvalidXmlContent, AnnotationXmlConstants.Elements.Item)); 278throw new XmlException(SR.Format(SR.InvalidXmlContent, part.PartType.Name));
System\Windows\Annotations\Storage\XmlStreamStore.cs (1)
566throw new XmlException(SR.Format(SR.RequiredAttributeMissing, AnnotationXmlConstants.Attributes.Id, AnnotationXmlConstants.Elements.Annotation));
System.IO.Packaging (1)
System\IO\Packaging\InternalRelationshipCollection.cs (1)
610throw new XmlException(SR.Format(SR.NotAUniqueRelationshipId, id));
System.Private.DataContractSerialization (99)
System\Runtime\Serialization\ExtensionDataReader.cs (4)
160throw new XmlException(SR.InvalidXmlDeserializingExtensionData); 251throw new XmlException(SR.InvalidXmlDeserializingExtensionData); 325throw new XmlException(SR.InvalidXmlDeserializingExtensionData); 652throw new XmlException(SR.Format(SR.InvalidDataNode, DataContract.GetClrTypeFullName(type)));
System\Runtime\Serialization\Json\ByteArrayHelperWithString.cs (1)
47throw new XmlException(SR.Format(SR.XmlInvalidConversion, value, type));
System\Runtime\Serialization\Json\JsonEncodingStreamWrapper.cs (7)
291_ => throw new XmlException(SR.JsonEncodingNotSupported), 300_ => throw new XmlException(SR.JsonEncodingNotSupported), 323throw new XmlException(SR.JsonEncodingNotSupported); 341throw new XmlException(SR.JsonInvalidBytes); 351throw new XmlException(SR.Format(SR.JsonExpectedEncoding, GetEncodingName(expEnc), GetEncodingName(actualEnc))); 366throw new XmlException(SR.JsonUnexpectedEndOfFile); 389throw new XmlException(SR.JsonUnexpectedEndOfFile);
System\Runtime\Serialization\Json\JsonObjectDataContract.cs (1)
70throw new XmlException(SR.Format(SR.XmlInvalidConversion, value, Globals.TypeOfInt));
System\Runtime\Serialization\Json\JsonReaderDelegator.cs (4)
95throw new XmlException(SR.Format(SR.XmlStartElementExpected, "EndElement")); 266throw new XmlException(XmlObjectSerializer.TryAddLineInfo(this, SR.Format(SR.XmlInvalidConversion, value, "UInt64"))); 292throw new XmlException(SR.Format(SR.XmlStartElementExpected, "EndElement")); 299throw new XmlException(XmlObjectSerializer.TryAddLineInfo(this, SR.Format(SR.XmlInvalidConversion, value, "UInt64")));
System\Runtime\Serialization\Json\XmlJsonReader.cs (11)
492new XmlException(SR.Format(SR.JsonEncounteredUnexpectedCharacter, (char)ch))); 549new XmlException(SR.Format(SR.JsonEncounteredUnexpectedCharacter, 590new XmlException(SR.Format(SR.JsonEncounteredUnexpectedCharacter, 678new XmlException(SR.Format(SR.JsonEncounteredUnexpectedCharacter, (char)ch))); 1162new XmlException(SR.Format(SR.JsonEncounteredUnexpectedCharacter, (char)nextByte))); 1181new XmlException(SR.Format(SR.JsonEncounteredUnexpectedCharacter, (char)nextByte))); 1213new XmlException(SR.Format(SR.XmlInvalidLowSurrogate, bufferAsString))); 1263new XmlException(SR.Format(SR.JsonEncounteredUnexpectedCharacter, (char)ch))); 1306XmlExceptionHelper.ThrowXmlException(this, new XmlException(SR.JsonInvalidFFFE)); 1573XmlExceptionHelper.ThrowXmlException(this, new XmlException(SR.Format(SR.JsonEncounteredUnexpectedCharacter, val[i]))); 1602new XmlException(SR.Format(SR.JsonEncounteredUnexpectedCharacter, val[i])));
System\Runtime\Serialization\Json\XmlJsonWriter.cs (28)
431throw new XmlException(SR.JsonNoMatchingStartAttribute); 477throw new XmlException(SR.Format(SR.JsonUnexpectedAttributeValue, _attributeText)); 544throw new XmlException(SR.JsonEndElementNoOpenNodes); 548throw new XmlException(SR.Format(SR.JsonOpenAttributeMustBeClosedFirst, "WriteEndElement")); 581throw new XmlException(SR.Format(SR.JsonMustSpecifyDataType, JsonGlobals.typeString, JsonGlobals.objectString, JsonGlobals.serverTypeString)); 588throw new XmlException(SR.Format(SR.JsonMustSpecifyDataType, JsonGlobals.itemString, string.Empty, JsonGlobals.itemString)); 666throw new XmlException(SR.JsonXmlInvalidDeclaration); 752throw new XmlException(SR.JsonAttributeMustHaveElement); 756throw new XmlException(SR.Format(SR.JsonOpenAttributeMustBeClosedFirst, "WriteStartAttribute")); 766throw new XmlException(SR.Format(SR.JsonAttributeAlreadyWritten, JsonGlobals.typeString)); 775throw new XmlException(SR.Format(SR.JsonAttributeAlreadyWritten, JsonGlobals.serverTypeString)); 780throw new XmlException(SR.Format(SR.JsonServerTypeSpecifiedForInvalidDataType, 790throw new XmlException(SR.Format(SR.JsonAttributeAlreadyWritten, JsonGlobals.itemString)); 797throw new XmlException(SR.JsonEndElementNoOpenNodes); 823throw new XmlException(SR.Format(SR.JsonInvalidWriteState, "WriteStartDocument", WriteState.ToString())); 855throw new XmlException(SR.Format(SR.JsonOpenAttributeMustBeClosedFirst, "WriteStartElement")); 859throw new XmlException(SR.JsonMultipleRootElementsNotAllowedOnWriter); 868throw new XmlException(SR.Format(SR.JsonInvalidRootElementName, localName, JsonGlobals.rootString)); 877throw new XmlException(SR.JsonNodeTypeArrayOrObjectNotSpecified); 893throw new XmlException(SR.Format(SR.JsonInvalidItemNameForArrayElement, localName, JsonGlobals.itemString)); 918throw new XmlException(SR.Format(SR.JsonInvalidItemNameForArrayElement, localName, JsonGlobals.itemString)); 924throw new XmlException(SR.JsonInvalidStartElementCall); 1119throw new XmlException(SR.JsonCannotWriteStandaloneTextAfterQuotedText); 1191throw new XmlException(SR.Format(SR.JsonMustSpecifyDataType, JsonGlobals.typeString, JsonGlobals.objectString, JsonGlobals.serverTypeString)); 1198throw new XmlException(SR.Format(SR.JsonMustSpecifyDataType, JsonGlobals.itemString, string.Empty, JsonGlobals.itemString)); 1227throw new XmlException(SR.Format(SR.JsonInvalidDataTypeSpecifiedForServerType, JsonGlobals.typeString, dataTypeSpecified, JsonGlobals.serverTypeString, JsonGlobals.objectString)); 1235throw new XmlException(SR.JsonInvalidMethodBetweenStartEndAttribute); 1239throw new XmlException(SR.Format(SR.JsonCannotWriteTextAfterNonTextAttribute, _dataType.ToString().ToLowerInvariant()));
System\Runtime\Serialization\XmlReaderDelegator.cs (2)
338throw new XmlException(XmlObjectSerializer.TryAddLineInfo(this, SR.Format(SR.XmlInvalidConversion, value, type))); 344throw new XmlException(SR.Format(SR.XmlStartElementExpected, "EndElement"));
System\Xml\EncodingStreamWrapper.cs (20)
105throw new XmlException(SR.XmlDeclarationRequired); 129_ => throw new XmlException(SR.XmlEncodingNotSupported), 138_ => throw new XmlException(SR.XmlEncodingNotSupported), 147_ => throw new XmlException(SR.XmlEncodingNotSupported), 161throw new XmlException(SR.XmlEncodingNotSupported); 200throw new XmlException(SR.UnexpectedEndOfFile); 254throw new XmlException(SR.XmlDeclMissing); 262throw new XmlException(SR.XmlDeclMissing); 269throw new XmlException(SR.XmlBadBOM); 351throw new XmlException(SR.XmlDeclarationRequired); 356throw new XmlException(SR.XmlMalformedDecl); 365throw new XmlException(SR.XmlDeclarationRequired); 374throw new XmlException(SR.XmlMalformedDecl); 381throw new XmlException(SR.XmlMalformedDecl); 435throw new XmlException(SR.UnexpectedEndOfFile); 485throw new XmlException(SR.XmlDeclarationRequired); 499throw new XmlException(SR.Format(SR.XmlExpectedEncoding, GetEncodingName(expEnc), GetEncodingName(actualEnc))); 509throw new XmlException(SR.Format(SR.XmlEncodingMismatch, declEnc, docEnc)); 642throw new XmlException(SR.UnexpectedEndOfFile); 663throw new XmlException(SR.UnexpectedEndOfFile);
System\Xml\XmlBaseReader.cs (11)
130XmlExceptionHelper.ThrowXmlException(this, new XmlException(SR.XmlDeclMissingVersion)); 133XmlExceptionHelper.ThrowXmlException(this, new XmlException(SR.XmlMalformedDecl)); 137XmlExceptionHelper.ThrowXmlException(this, new XmlException(SR.XmlDeclMissingVersion)); 146XmlExceptionHelper.ThrowXmlException(this, new XmlException(SR.XmlMalformedDecl)); 150XmlExceptionHelper.ThrowXmlException(this, new XmlException(SR.XmlMalformedDecl)); 163XmlExceptionHelper.ThrowXmlException(this, new XmlException(SR.XmlMalformedDecl)); 169XmlExceptionHelper.ThrowXmlException(this, new XmlException(SR.XmlInvalidStandalone)); 178XmlExceptionHelper.ThrowXmlException(this, new XmlException(SR.XmlMalformedDecl)); 184XmlExceptionHelper.ThrowXmlException(this, new XmlException(SR.Format(valueSR))); 349XmlExceptionHelper.ThrowXmlException(this, new XmlException(SR.Format(SR.XmlSpecificBindingPrefix, "xml", xmlNamespace))); 353XmlExceptionHelper.ThrowXmlException(this, new XmlException(SR.Format(SR.XmlSpecificBindingPrefix, "xmlns", xmlnsNamespace)));
System\Xml\XmlConverter.cs (1)
459throw new XmlException(SR.Format(SR.XmlInvalidQualifiedName, qname));
System\Xml\XmlDictionaryWriter.cs (1)
197throw new XmlException(SR.XmlInvalidStream);
System\Xml\XmlExceptionHelper.cs (2)
39throw new XmlException(s); 50throw new XmlException(s);
System\Xml\XmlUTF8TextReader.cs (6)
866XmlExceptionHelper.ThrowXmlException(this, new XmlException(SR.XmlSpaceBetweenAttributes)); 899XmlExceptionHelper.ThrowXmlException(this, new XmlException(SR.XmlInvalidFFFE)); 1035XmlExceptionHelper.ThrowXmlException(this, new XmlException(SR.XmlInvalidCommentChars)); 1168XmlExceptionHelper.ThrowXmlException(this, new XmlException(SR.XmlInvalidFFFE)); 1326XmlExceptionHelper.ThrowXmlException(this, new XmlException(SR.XmlCDATAInvalidAtTopLevel)); 1369XmlExceptionHelper.ThrowXmlException(this, new XmlException(SR.XmlCloseCData));
System.Private.Xml (16)
System\Xml\BinaryXml\XmlBinaryReader.cs (1)
2789throw new XmlException(SR.XmlBin_MissingEndCDATA);
System\Xml\Core\XmlTextReaderImpl.cs (1)
9013throw new XmlException(SR.Xml_NametableMismatch);
System\Xml\Core\XmlTextReaderImplAsync.cs (1)
3455throw new XmlException(SR.Xml_InternalError);
System\Xml\Resolvers\XmlPreloadedResolver.cs (3)
33throw new XmlException(SR.Xml_UnsupportedClass); 237throw new XmlException(SR.Format(SR.Xml_CannotResolveUrl, absoluteUri)); 250throw new XmlException(SR.Xml_UnsupportedClass);
System\Xml\Resolvers\XmlPreloadedResolverAsync.cs (2)
30throw new XmlException(SR.Format(SR.Xml_CannotResolveUrl, absoluteUri)); 43throw new XmlException(SR.Xml_UnsupportedClass);
System\Xml\Serialization\Xmlcustomformatter.cs (2)
75throw new XmlException(SR.Format(SR.XmlUnsupportedDefaultType, type.FullName)); 254throw new XmlException(SR.Format(SR.XmlUnsupportedDefaultValue, formatter));
System\Xml\ValidateNames.cs (1)
374throw new XmlException(SR.Format(SR.Xml_EmptyName, string.Empty));
System\Xml\XmlException.cs (1)
85public XmlException() : this(null)
System\Xml\XmlResolver.ThrowingResolver.cs (2)
40throw new XmlException(SR.Format(SR.Xml_NullResolver, absoluteUri)); 45throw new XmlException(SR.Format(SR.Xml_NullResolver, absoluteUri));
System\Xml\Xsl\Xslt\XPathPatternBuilder.cs (2)
325throw new XmlException(SR.Xml_InternalError); 330throw new XmlException(SR.Xml_InternalError);
System.Security.Cryptography.Xml (1)
System\Security\Cryptography\Xml\CryptoSignedXmlRecursionException.cs (1)
21public CryptoSignedXmlRecursionException(string message) : base(message) { }
System.ServiceModel.Primitives (94)
Internals\System\Xml\XmlExceptionHelper.cs (1)
31throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(s));
Internals\System\Xml\XmlMtomReader.cs (29)
95throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.MtomBufferQuotaExceeded, maxBuffer))); 155throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.MtomMessageInvalidContent)); 192throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.MtomMessageInvalidMimeVersion, header.Version, MimeVersionHeader.Default.Version))); 198throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.MtomMessageContentTypeNotFound)); 202throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.MtomMessageNotMultipart, MtomGlobals.MediaType, MtomGlobals.MediaSubtype))); 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))); 223throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.MtomRootContentTypeNotFound)); 227throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.MtomRootNotApplicationXopXml, MtomGlobals.XopMediaType, MtomGlobals.XopMediaSubtype))); 232throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.MtomRootRequiredParamNotSpecified, MtomGlobals.CharsetParam))); 277throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.MtomRootUnexpectedCharset, charset, expectedCharSetStr.ToString()))); 286throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.MtomRootRequiredParamNotSpecified, MtomGlobals.TypeParam))); 288throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.MtomRootUnexpectedType, rootType, expectedType))); 298throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.MtomContentTransferEncodingNotSupported, 308throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.MtomContentTransferEncodingNotPresent, 311throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.MtomInvalidTransferEncodingForMimePart, 322throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.MtomInvalidStartUri, startUri))); 343throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.MtomXopIncludeInvalidXopAttributes, _xmlReader.LocalName, MtomGlobals.XopIncludeNamespace))); 346throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.MtomXopIncludeHrefNotSpecified, MtomGlobals.XopIncludeHrefLocalName))); 369throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.MtomXopIncludeInvalidXopElement, _xmlReader.LocalName, MtomGlobals.XopIncludeNamespace))); 406throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.MtomInvalidEmptyURI)); 415throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.MtomInvalidCIDUri, uri))); 420throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.MtomMimePartReferencedMoreThanOnce, contentID))); 431throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.MtomMessageInvalidContentInMimePart)); 457throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.MaxMimePartsExceeded, maxMimeParts, "MtomMessageEncoderBindingElement"))); 466throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.MtomPartNotFound, uri))); 478throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.MtomRootPartNotFound)); 483throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.MtomMessageInvalidContentInMimePart));
Internals\System\Xml\XmlMtomWriter.cs (5)
244throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.MtomDataMustNotContainXopInclude, MtomGlobals.XopIncludeLocalName, MtomGlobals.XopIncludeNamespace))); 343throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.MtomExceededMaxSizeInBytes, maxSize))); 518throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.XmlInvalidStream)); 557throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.XmlInvalidStream)); 1414throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.WriteBufferOverflow));
System\IdentityModel\Tokens\KeyInfoSerializer.cs (3)
119throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.CannotReadToken, reader.LocalName, reader.NamespaceURI, localReader.GetAttribute(XD.SecurityJan2004Dictionary.ValueType, null)))); 165throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.ErrorDeserializingKeyIdentifierClause))); 266throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.CannotReadKeyIdentifierClause, reader.LocalName, reader.NamespaceURI)));
System\IdentityModel\Tokens\WSSecurityJan2004.cs (1)
210throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.CannotReadKeyIdentifierClause, reader.LocalName, reader.NamespaceURI)));
System\IdentityModel\Tokens\XmlDsigSep2000.cs (1)
76throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.ErrorDeserializingKeyIdentifierClause));
System\ServiceModel\Channels\AddressHeader.cs (1)
137throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.ExpectedElementMissing, Name, Namespace)));
System\ServiceModel\Channels\CreateSequenceResponse.cs (1)
70throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(reason));
System\ServiceModel\Channels\ReliableMessagingHelpers.cs (1)
2044throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(
System\ServiceModel\Channels\WsrmFault.cs (1)
564throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(
System\ServiceModel\Channels\WsrmMessageInfo.cs (15)
624throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(reason)); 662throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(reason)); 775throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(reason)); 819throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(reason)); 860throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(reason)); 1122new XmlException(SRP.Format(SRP.InvalidSequenceRange, lower, upper))); 1144throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException( 1157throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException( 1172throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException( 1185throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException( 1212throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException( 1223throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException( 1233throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException( 1239throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException( 1250throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(
System\ServiceModel\EndpointAddress.cs (3)
841throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.InvalidUriValue, address, XD.AddressingDictionary.Address.Value, AddressingVersion.WSAddressingAugust2004.Namespace))); 913throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.InvalidUriValue, address, XD.AddressingDictionary.Address.Value, XD.Addressing10Dictionary.Namespace.Value))); 927return new XmlException(message);
System\ServiceModel\EndpointIdentity.cs (4)
156throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.UnexpectedEmptyElementExpectingClaim, XD.AddressingDictionary.Identity.Value, XD.AddressingDictionary.IdentityExtensionNamespace.Value))); 186throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.UnrecognizedIdentityType, reader.Name, reader.NamespaceURI))); 195throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.UnrecognizedIdentityType, reader.Name, reader.NamespaceURI))); 202throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.InvalidIdentityElement));
System\ServiceModel\Security\WSSecureConversation.cs (3)
142throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.DerivedKeyTokenRequiresTokenReference)); 155throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.DerivedKeyInvalidGenerationSpecified, generation))); 167throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.DerivedKeyInvalidOffsetSpecified, offset)));
System\ServiceModel\Security\WSSecurityJan2004.cs (1)
384throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.CantInferReferenceForToken, ValueTypeAbsoluteUri)));
System\ServiceModel\Security\WSSecurityTokenSerializer.cs (3)
223throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.CannotReadToken, reader.LocalName, reader.NamespaceURI, localReader.GetAttribute(XD.SecurityJan2004Dictionary.ValueType, null)))); 423throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.CannotReadToken, element.LocalName, element.NamespaceURI, element.GetAttribute(SecurityJan2004Strings.ValueType, null)))); 470throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.RequiredAttributeMissing, idAttributeLocalName, issuedTokenXml.LocalName)));
System\ServiceModel\Security\WSTrust.cs (3)
407throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.NoRequestSecurityTokenResponseElements)); 774throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.UnsupportedBinaryEncoding, encodingUri))); 839throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.TrustDriverIsUnableToCreatedNecessaryAttachedOrUnattachedReferences, issuedTokenXml.ToString())));
System\ServiceModel\Security\WSTrustFeb2005.cs (1)
136throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.TrustDriverIsUnableToCreatedNecessaryAttachedOrUnattachedReferences, issuedTokenXml.ToString())));
System\ServiceModel\Security\XmlHelper.cs (12)
120throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.CouldNotFindNamespaceForPrefix, prefix))); 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))); 181throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.EmptyXmlElementError, r.Name))); 186throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.EmptyXmlElementError, e.Name))); 191throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.UnexpectedEndOfFile))); 196throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.CouldNotFindNamespaceForPrefix, prefix))); 201throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.RequiredAttributeMissing, attrName, elementName))); 206throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.ExpectedElementMissing, elementName, elementNamespace))); 211throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.UnexpectedXmlChildNode, r.Name, r.NodeType, parentName))); 216throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.UnexpectedXmlChildNode, n.Name, n.NodeType, parent.Name))); 260new XmlException(SRP.Format(SRP.EmptyBase64Attribute, name, ns)));
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 (3)
30throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.XmlLangAttributeMissing)); 130throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.InvalidXmlQualifiedName, qname))); 139throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.UnboundPrefixInQName, qname)));
System.ServiceModel.Syndication (11)
System\ServiceModel\Syndication\Atom10FeedFormatter.cs (2)
98throw new XmlException(SR.Format(SR.UnknownFeedXml, reader.LocalName, reader.NamespaceURI)); 534_ => throw new XmlException(FeedUtils.AddLineInfo(reader, SR.Format(SR.Atom10SpecRequiresTextConstruct, context, type))),
System\ServiceModel\Syndication\Atom10ItemFormatter.cs (1)
90throw new XmlException(SR.Format(SR.UnknownItemXml, reader.LocalName, reader.NamespaceURI));
System\ServiceModel\Syndication\AtomPub10CategoriesDocumentFormatter.cs (1)
91throw new XmlException(SR.Format(SR.UnknownDocumentXml, reader.LocalName, reader.NamespaceURI));
System\ServiceModel\Syndication\AtomPub10ServiceDocumentFormatter.cs (1)
81throw new XmlException(SR.Format(SR.UnknownDocumentXml, reader.LocalName, reader.NamespaceURI));
System\ServiceModel\Syndication\Rss20FeedFormatter.cs (1)
98throw new XmlException(SR.Format(SR.UnknownFeedXml, reader.LocalName, reader.NamespaceURI));
System\ServiceModel\Syndication\Rss20ItemFormatter.cs (1)
113throw new XmlException(SR.Format(SR.UnknownItemXml, reader.LocalName, reader.NamespaceURI));
System\ServiceModel\Syndication\SyndicationFeed.cs (1)
426throw new XmlException(SR.Format(SR.UnknownFeedXml, reader.LocalName, reader.NamespaceURI));
System\ServiceModel\Syndication\SyndicationFeedFormatter.cs (2)
367throw new XmlException(FeedUtils.AddLineInfo(reader, SR.ErrorParsingDateTime)); 481throw new XmlException(s);
System\ServiceModel\Syndication\SyndicationItem.cs (1)
172throw new XmlException(SR.Format(SR.UnknownItemXml, reader.LocalName, reader.NamespaceURI));