151 references to XmlException
Microsoft.Build (3)
BackEnd\Components\SdkResolution\SdkResolverManifest.cs (3)
93
throw new
XmlException
(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("UnrecognizedElement", reader.Name));
136
throw new
XmlException
(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("UnrecognizedElement", reader.Name));
146
throw new
XmlException
(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("UnrecognizedElement", reader.Name));
PresentationFramework (20)
MS\Internal\IO\Packaging\XamlFilter.cs (1)
786
throw new
XmlException
(SR.XamlFilterNestedFixedPage);
System\Windows\Annotations\Annotation.cs (8)
333
throw new
XmlException
(SR.Format(SR.InvalidXmlContent, AnnotationXmlConstants.Elements.Annotation));
348
throw new
XmlException
(SR.Format(SR.InvalidXmlContent, AnnotationXmlConstants.Elements.Annotation));
558
throw new
XmlException
(SR.Format(SR.UnexpectedAttribute, reader.LocalName, elementName));
668
throw new
XmlException
(SR.Format(SR.UnexpectedAttribute, reader.LocalName, AnnotationXmlConstants.Elements.Annotation));
676
throw new
XmlException
(SR.Format(SR.RequiredAttributeMissing, AnnotationXmlConstants.Attributes.Id, AnnotationXmlConstants.Elements.Annotation));
680
throw new
XmlException
(SR.Format(SR.RequiredAttributeMissing, AnnotationXmlConstants.Attributes.CreationTime, AnnotationXmlConstants.Elements.Annotation));
684
throw new
XmlException
(SR.Format(SR.RequiredAttributeMissing, AnnotationXmlConstants.Attributes.LastModificationTime, AnnotationXmlConstants.Elements.Annotation));
688
throw new
XmlException
(SR.Format(SR.RequiredAttributeMissing, AnnotationXmlConstants.Attributes.TypeName, AnnotationXmlConstants.Elements.Annotation));
System\Windows\Annotations\AnnotationResource.cs (3)
200
throw new
XmlException
(SR.Format(SR.InvalidXmlContent, AnnotationXmlConstants.Elements.Resource));
465
throw new
XmlException
(SR.Format(SR.UnexpectedAttribute, reader.LocalName, AnnotationXmlConstants.Elements.Resource));
472
throw new
XmlException
(SR.Format(SR.RequiredAttributeMissing, AnnotationXmlConstants.Attributes.Id, AnnotationXmlConstants.Elements.Resource));
System\Windows\Annotations\LocatorGroup.cs (1)
152
throw new
XmlException
(SR.Format(SR.InvalidXmlContent, AnnotationXmlConstants.Elements.ContentLocatorGroup));
System\Windows\Annotations\LocatorPartList.cs (6)
229
throw new
XmlException
(SR.Format(SR.InvalidXmlContent, AnnotationXmlConstants.Elements.ContentLocator));
262
throw new
XmlException
(SR.Format(SR.UnexpectedAttribute, reader.LocalName, AnnotationXmlConstants.Elements.Item));
269
throw new
XmlException
(SR.Format(SR.RequiredAttributeMissing, AnnotationXmlConstants.Attributes.ItemName, AnnotationXmlConstants.Elements.Item));
273
throw new
XmlException
(SR.Format(SR.RequiredAttributeMissing, AnnotationXmlConstants.Attributes.ItemValue, AnnotationXmlConstants.Elements.Item));
289
throw new
XmlException
(SR.Format(SR.InvalidXmlContent, AnnotationXmlConstants.Elements.Item));
300
throw new
XmlException
(SR.Format(SR.InvalidXmlContent, part.PartType.Name));
System\Windows\Annotations\Storage\XmlStreamStore.cs (1)
578
throw new
XmlException
(SR.Format(SR.RequiredAttributeMissing, AnnotationXmlConstants.Attributes.Id, AnnotationXmlConstants.Elements.Annotation));
System.IO.Packaging (1)
System\IO\Packaging\InternalRelationshipCollection.cs (1)
616
throw new
XmlException
(SR.Format(SR.NotAUniqueRelationshipId, id));
System.Private.DataContractSerialization (99)
System\Runtime\Serialization\ExtensionDataReader.cs (4)
160
throw new
XmlException
(SR.InvalidXmlDeserializingExtensionData);
251
throw new
XmlException
(SR.InvalidXmlDeserializingExtensionData);
325
throw new
XmlException
(SR.InvalidXmlDeserializingExtensionData);
652
throw new
XmlException
(SR.Format(SR.InvalidDataNode, DataContract.GetClrTypeFullName(type)));
System\Runtime\Serialization\Json\ByteArrayHelperWithString.cs (1)
47
throw 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),
323
throw new
XmlException
(SR.JsonEncodingNotSupported);
341
throw new
XmlException
(SR.JsonInvalidBytes);
351
throw new
XmlException
(SR.Format(SR.JsonExpectedEncoding, GetEncodingName(expEnc), GetEncodingName(actualEnc)));
366
throw new
XmlException
(SR.JsonUnexpectedEndOfFile);
389
throw new
XmlException
(SR.JsonUnexpectedEndOfFile);
System\Runtime\Serialization\Json\JsonObjectDataContract.cs (1)
70
throw new
XmlException
(SR.Format(SR.XmlInvalidConversion, value, Globals.TypeOfInt));
System\Runtime\Serialization\Json\JsonReaderDelegator.cs (4)
95
throw new
XmlException
(SR.Format(SR.XmlStartElementExpected, "EndElement"));
266
throw new
XmlException
(XmlObjectSerializer.TryAddLineInfo(this, SR.Format(SR.XmlInvalidConversion, value, "UInt64")));
292
throw new
XmlException
(SR.Format(SR.XmlStartElementExpected, "EndElement"));
299
throw new
XmlException
(XmlObjectSerializer.TryAddLineInfo(this, SR.Format(SR.XmlInvalidConversion, value, "UInt64")));
System\Runtime\Serialization\Json\XmlJsonReader.cs (11)
492
new
XmlException
(SR.Format(SR.JsonEncounteredUnexpectedCharacter, (char)ch)));
549
new
XmlException
(SR.Format(SR.JsonEncounteredUnexpectedCharacter,
590
new
XmlException
(SR.Format(SR.JsonEncounteredUnexpectedCharacter,
678
new
XmlException
(SR.Format(SR.JsonEncounteredUnexpectedCharacter, (char)ch)));
1162
new
XmlException
(SR.Format(SR.JsonEncounteredUnexpectedCharacter, (char)nextByte)));
1181
new
XmlException
(SR.Format(SR.JsonEncounteredUnexpectedCharacter, (char)nextByte)));
1213
new
XmlException
(SR.Format(SR.XmlInvalidLowSurrogate, bufferAsString)));
1263
new
XmlException
(SR.Format(SR.JsonEncounteredUnexpectedCharacter, (char)ch)));
1306
XmlExceptionHelper.ThrowXmlException(this, new
XmlException
(SR.JsonInvalidFFFE));
1573
XmlExceptionHelper.ThrowXmlException(this, new
XmlException
(SR.Format(SR.JsonEncounteredUnexpectedCharacter, val[i])));
1602
new
XmlException
(SR.Format(SR.JsonEncounteredUnexpectedCharacter, val[i])));
System\Runtime\Serialization\Json\XmlJsonWriter.cs (28)
431
throw new
XmlException
(SR.JsonNoMatchingStartAttribute);
477
throw new
XmlException
(SR.Format(SR.JsonUnexpectedAttributeValue, _attributeText));
544
throw new
XmlException
(SR.JsonEndElementNoOpenNodes);
548
throw new
XmlException
(SR.Format(SR.JsonOpenAttributeMustBeClosedFirst, "WriteEndElement"));
581
throw new
XmlException
(SR.Format(SR.JsonMustSpecifyDataType, JsonGlobals.typeString, JsonGlobals.objectString, JsonGlobals.serverTypeString));
588
throw new
XmlException
(SR.Format(SR.JsonMustSpecifyDataType, JsonGlobals.itemString, string.Empty, JsonGlobals.itemString));
666
throw new
XmlException
(SR.JsonXmlInvalidDeclaration);
752
throw new
XmlException
(SR.JsonAttributeMustHaveElement);
756
throw new
XmlException
(SR.Format(SR.JsonOpenAttributeMustBeClosedFirst, "WriteStartAttribute"));
766
throw new
XmlException
(SR.Format(SR.JsonAttributeAlreadyWritten, JsonGlobals.typeString));
775
throw new
XmlException
(SR.Format(SR.JsonAttributeAlreadyWritten, JsonGlobals.serverTypeString));
780
throw new
XmlException
(SR.Format(SR.JsonServerTypeSpecifiedForInvalidDataType,
790
throw new
XmlException
(SR.Format(SR.JsonAttributeAlreadyWritten, JsonGlobals.itemString));
797
throw new
XmlException
(SR.JsonEndElementNoOpenNodes);
823
throw new
XmlException
(SR.Format(SR.JsonInvalidWriteState, "WriteStartDocument", WriteState.ToString()));
855
throw new
XmlException
(SR.Format(SR.JsonOpenAttributeMustBeClosedFirst, "WriteStartElement"));
859
throw new
XmlException
(SR.JsonMultipleRootElementsNotAllowedOnWriter);
868
throw new
XmlException
(SR.Format(SR.JsonInvalidRootElementName, localName, JsonGlobals.rootString));
877
throw new
XmlException
(SR.JsonNodeTypeArrayOrObjectNotSpecified);
893
throw new
XmlException
(SR.Format(SR.JsonInvalidItemNameForArrayElement, localName, JsonGlobals.itemString));
918
throw new
XmlException
(SR.Format(SR.JsonInvalidItemNameForArrayElement, localName, JsonGlobals.itemString));
924
throw new
XmlException
(SR.JsonInvalidStartElementCall);
1119
throw new
XmlException
(SR.JsonCannotWriteStandaloneTextAfterQuotedText);
1191
throw new
XmlException
(SR.Format(SR.JsonMustSpecifyDataType, JsonGlobals.typeString, JsonGlobals.objectString, JsonGlobals.serverTypeString));
1198
throw new
XmlException
(SR.Format(SR.JsonMustSpecifyDataType, JsonGlobals.itemString, string.Empty, JsonGlobals.itemString));
1227
throw new
XmlException
(SR.Format(SR.JsonInvalidDataTypeSpecifiedForServerType, JsonGlobals.typeString, dataTypeSpecified, JsonGlobals.serverTypeString, JsonGlobals.objectString));
1235
throw new
XmlException
(SR.JsonInvalidMethodBetweenStartEndAttribute);
1239
throw new
XmlException
(SR.Format(SR.JsonCannotWriteTextAfterNonTextAttribute, _dataType.ToString().ToLowerInvariant()));
System\Runtime\Serialization\XmlReaderDelegator.cs (2)
338
throw new
XmlException
(XmlObjectSerializer.TryAddLineInfo(this, SR.Format(SR.XmlInvalidConversion, value, type)));
344
throw new
XmlException
(SR.Format(SR.XmlStartElementExpected, "EndElement"));
System\Xml\EncodingStreamWrapper.cs (20)
105
throw new
XmlException
(SR.XmlDeclarationRequired);
129
_ => throw new
XmlException
(SR.XmlEncodingNotSupported),
138
_ => throw new
XmlException
(SR.XmlEncodingNotSupported),
147
_ => throw new
XmlException
(SR.XmlEncodingNotSupported),
161
throw new
XmlException
(SR.XmlEncodingNotSupported);
200
throw new
XmlException
(SR.UnexpectedEndOfFile);
254
throw new
XmlException
(SR.XmlDeclMissing);
262
throw new
XmlException
(SR.XmlDeclMissing);
269
throw new
XmlException
(SR.XmlBadBOM);
351
throw new
XmlException
(SR.XmlDeclarationRequired);
356
throw new
XmlException
(SR.XmlMalformedDecl);
365
throw new
XmlException
(SR.XmlDeclarationRequired);
374
throw new
XmlException
(SR.XmlMalformedDecl);
381
throw new
XmlException
(SR.XmlMalformedDecl);
435
throw new
XmlException
(SR.UnexpectedEndOfFile);
485
throw new
XmlException
(SR.XmlDeclarationRequired);
499
throw new
XmlException
(SR.Format(SR.XmlExpectedEncoding, GetEncodingName(expEnc), GetEncodingName(actualEnc)));
509
throw new
XmlException
(SR.Format(SR.XmlEncodingMismatch, declEnc, docEnc));
642
throw new
XmlException
(SR.UnexpectedEndOfFile);
663
throw new
XmlException
(SR.UnexpectedEndOfFile);
System\Xml\XmlBaseReader.cs (11)
130
XmlExceptionHelper.ThrowXmlException(this, new
XmlException
(SR.XmlDeclMissingVersion));
133
XmlExceptionHelper.ThrowXmlException(this, new
XmlException
(SR.XmlMalformedDecl));
137
XmlExceptionHelper.ThrowXmlException(this, new
XmlException
(SR.XmlDeclMissingVersion));
146
XmlExceptionHelper.ThrowXmlException(this, new
XmlException
(SR.XmlMalformedDecl));
150
XmlExceptionHelper.ThrowXmlException(this, new
XmlException
(SR.XmlMalformedDecl));
163
XmlExceptionHelper.ThrowXmlException(this, new
XmlException
(SR.XmlMalformedDecl));
169
XmlExceptionHelper.ThrowXmlException(this, new
XmlException
(SR.XmlInvalidStandalone));
178
XmlExceptionHelper.ThrowXmlException(this, new
XmlException
(SR.XmlMalformedDecl));
184
XmlExceptionHelper.ThrowXmlException(this, new
XmlException
(SR.Format(valueSR)));
349
XmlExceptionHelper.ThrowXmlException(this, new
XmlException
(SR.Format(SR.XmlSpecificBindingPrefix, "xml", xmlNamespace)));
353
XmlExceptionHelper.ThrowXmlException(this, new
XmlException
(SR.Format(SR.XmlSpecificBindingPrefix, "xmlns", xmlnsNamespace)));
System\Xml\XmlConverter.cs (1)
459
throw new
XmlException
(SR.Format(SR.XmlInvalidQualifiedName, qname));
System\Xml\XmlDictionaryWriter.cs (1)
197
throw new
XmlException
(SR.XmlInvalidStream);
System\Xml\XmlExceptionHelper.cs (2)
39
throw new
XmlException
(s);
50
throw new
XmlException
(s);
System\Xml\XmlUTF8TextReader.cs (6)
866
XmlExceptionHelper.ThrowXmlException(this, new
XmlException
(SR.XmlSpaceBetweenAttributes));
899
XmlExceptionHelper.ThrowXmlException(this, new
XmlException
(SR.XmlInvalidFFFE));
1035
XmlExceptionHelper.ThrowXmlException(this, new
XmlException
(SR.XmlInvalidCommentChars));
1168
XmlExceptionHelper.ThrowXmlException(this, new
XmlException
(SR.XmlInvalidFFFE));
1326
XmlExceptionHelper.ThrowXmlException(this, new
XmlException
(SR.XmlCDATAInvalidAtTopLevel));
1369
XmlExceptionHelper.ThrowXmlException(this, new
XmlException
(SR.XmlCloseCData));
System.Private.Xml (16)
System\Xml\BinaryXml\XmlBinaryReader.cs (1)
2789
throw new
XmlException
(SR.XmlBin_MissingEndCDATA);
System\Xml\Core\XmlTextReaderImpl.cs (1)
9013
throw new
XmlException
(SR.Xml_NametableMismatch);
System\Xml\Core\XmlTextReaderImplAsync.cs (1)
3455
throw new
XmlException
(SR.Xml_InternalError);
System\Xml\Resolvers\XmlPreloadedResolver.cs (3)
33
throw new
XmlException
(SR.Xml_UnsupportedClass);
237
throw new
XmlException
(SR.Format(SR.Xml_CannotResolveUrl, absoluteUri));
250
throw new
XmlException
(SR.Xml_UnsupportedClass);
System\Xml\Resolvers\XmlPreloadedResolverAsync.cs (2)
30
throw new
XmlException
(SR.Format(SR.Xml_CannotResolveUrl, absoluteUri));
43
throw new
XmlException
(SR.Xml_UnsupportedClass);
System\Xml\Serialization\Xmlcustomformatter.cs (2)
75
throw new
XmlException
(SR.Format(SR.XmlUnsupportedDefaultType, type.FullName));
254
throw new
XmlException
(SR.Format(SR.XmlUnsupportedDefaultValue, formatter));
System\Xml\ValidateNames.cs (1)
374
throw new
XmlException
(SR.Format(SR.Xml_EmptyName, string.Empty));
System\Xml\XmlException.cs (1)
85
public XmlException() :
this
(null)
System\Xml\XmlResolver.ThrowingResolver.cs (2)
40
throw new
XmlException
(SR.Format(SR.Xml_NullResolver, absoluteUri));
45
throw new
XmlException
(SR.Format(SR.Xml_NullResolver, absoluteUri));
System\Xml\Xsl\Xslt\XPathPatternBuilder.cs (2)
325
throw new
XmlException
(SR.Xml_InternalError);
330
throw new
XmlException
(SR.Xml_InternalError);
System.Security.Cryptography.Xml (1)
System\Security\Cryptography\Xml\CryptoSignedXmlRecursionException.cs (1)
21
public CryptoSignedXmlRecursionException(string message) :
base
(message) { }
System.ServiceModel.Syndication (11)
System\ServiceModel\Syndication\Atom10FeedFormatter.cs (2)
110
throw new
XmlException
(SR.Format(SR.UnknownFeedXml, reader.LocalName, reader.NamespaceURI));
561
_ => throw new
XmlException
(FeedUtils.AddLineInfo(reader, SR.Format(SR.Atom10SpecRequiresTextConstruct, context, type))),
System\ServiceModel\Syndication\Atom10ItemFormatter.cs (1)
102
throw new
XmlException
(SR.Format(SR.UnknownItemXml, reader.LocalName, reader.NamespaceURI));
System\ServiceModel\Syndication\AtomPub10CategoriesDocumentFormatter.cs (1)
109
throw new
XmlException
(SR.Format(SR.UnknownDocumentXml, reader.LocalName, reader.NamespaceURI));
System\ServiceModel\Syndication\AtomPub10ServiceDocumentFormatter.cs (1)
96
throw new
XmlException
(SR.Format(SR.UnknownDocumentXml, reader.LocalName, reader.NamespaceURI));
System\ServiceModel\Syndication\Rss20FeedFormatter.cs (1)
110
throw new
XmlException
(SR.Format(SR.UnknownFeedXml, reader.LocalName, reader.NamespaceURI));
System\ServiceModel\Syndication\Rss20ItemFormatter.cs (1)
125
throw new
XmlException
(SR.Format(SR.UnknownItemXml, reader.LocalName, reader.NamespaceURI));
System\ServiceModel\Syndication\SyndicationFeed.cs (1)
432
throw new
XmlException
(SR.Format(SR.UnknownFeedXml, reader.LocalName, reader.NamespaceURI));
System\ServiceModel\Syndication\SyndicationFeedFormatter.cs (2)
469
throw new
XmlException
(FeedUtils.AddLineInfo(reader, SR.ErrorParsingDateTime));
586
throw new
XmlException
(s);
System\ServiceModel\Syndication\SyndicationItem.cs (1)
178
throw new
XmlException
(SR.Format(SR.UnknownItemXml, reader.LocalName, reader.NamespaceURI));