94 references to XmlException
dotnet-svcutil-lib (94)
FrameworkFork\Microsoft.Xml\Xml\BinaryXml\XmlBinaryReader.cs (1)
2810throw new XmlException(ResXml.XmlBin_MissingEndCDATA);
FrameworkFork\Microsoft.Xml\Xml\Core\XmlTextReaderImpl.cs (1)
9133throw new XmlException(ResXml.Xml_NametableMismatch);
FrameworkFork\Microsoft.Xml\Xml\Resolvers\XmlPreloadedResolver.cs (3)
36throw new XmlException(ResXml.Xml_UnsupportedClass); 238throw new XmlException(string.Format(ResXml.Xml_CannotResolveUrl, absoluteUri.ToString())); 251throw new XmlException(ResXml.Xml_UnsupportedClass);
FrameworkFork\Microsoft.Xml\Xml\Resolvers\XmlPreloadedResolverAsync.cs (2)
35throw new XmlException(string.Format(ResXml.Xml_CannotResolveUrl, absoluteUri.ToString())); 48throw new XmlException(ResXml.Xml_UnsupportedClass);
FrameworkFork\Microsoft.Xml\Xml\XmlException.cs (1)
33public XmlException() : this(null)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\ExtensionDataReader.cs (3)
159throw new XmlException(SRSerialization.InvalidXmlDeserializingExtensionData); 254throw new XmlException(SRSerialization.InvalidXmlDeserializingExtensionData); 328throw new XmlException(SRSerialization.InvalidXmlDeserializingExtensionData);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlReaderDelegator.cs (2)
223throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(XmlObjectSerializer.TryAddLineInfo(this, string.Format(SRSerialization.XmlInvalidConversion, value, type)))); 228throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(string.Format(SRSerialization.XmlStartElementExpected, "EndElement")));
FrameworkFork\System.Runtime.Serialization\System\Xml\EncodingStreamWrapper.cs (20)
105throw new XmlException(SRSerialization.XmlDeclarationRequired); 136throw new XmlException(SRSerialization.XmlEncodingNotSupported); 154throw new XmlException(SRSerialization.XmlEncodingNotSupported); 172throw new XmlException(SRSerialization.XmlEncodingNotSupported); 187throw new XmlException(SRSerialization.XmlEncodingNotSupported); 225throw new XmlException(SRSerialization.UnexpectedEndOfFile); 279throw new XmlException(SRSerialization.XmlDeclMissing); 287throw new XmlException(SRSerialization.XmlDeclMissing); 294throw new XmlException(SRSerialization.XmlBadBOM); 379throw new XmlException(SRSerialization.XmlDeclarationRequired); 384throw new XmlException(SRSerialization.XmlMalformedDecl); 393throw new XmlException(SRSerialization.XmlDeclarationRequired); 402throw new XmlException(SRSerialization.XmlMalformedDecl); 409throw new XmlException(SRSerialization.XmlMalformedDecl); 473throw new XmlException(SRSerialization.UnexpectedEndOfFile); 523throw new XmlException(SRSerialization.XmlDeclarationRequired); 537throw new XmlException(string.Format(SRSerialization.XmlExpectedEncoding, GetEncodingName(expEnc), GetEncodingName(actualEnc))); 547throw new XmlException(string.Format(SRSerialization.XmlEncodingMismatch, declEnc, docEnc)); 666throw new XmlException(SRSerialization.UnexpectedEndOfFile); 687throw new XmlException(SRSerialization.UnexpectedEndOfFile);
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlBaseReader.cs (11)
142XmlExceptionHelper.ThrowXmlException(this, new XmlException(string.Format(SRSerialization.XmlDeclMissingVersion))); 145XmlExceptionHelper.ThrowXmlException(this, new XmlException(string.Format(SRSerialization.XmlMalformedDecl))); 149XmlExceptionHelper.ThrowXmlException(this, new XmlException(string.Format(SRSerialization.XmlDeclMissingVersion))); 158XmlExceptionHelper.ThrowXmlException(this, new XmlException(string.Format(SRSerialization.XmlMalformedDecl))); 162XmlExceptionHelper.ThrowXmlException(this, new XmlException(string.Format(SRSerialization.XmlMalformedDecl))); 178XmlExceptionHelper.ThrowXmlException(this, new XmlException(string.Format(SRSerialization.XmlMalformedDecl))); 184XmlExceptionHelper.ThrowXmlException(this, new XmlException(string.Format(SRSerialization.XmlInvalidStandalone))); 193XmlExceptionHelper.ThrowXmlException(this, new XmlException(string.Format(SRSerialization.XmlMalformedDecl))); 199XmlExceptionHelper.ThrowXmlException(this, new XmlException(string.Format(valueSR))); 373XmlExceptionHelper.ThrowXmlException(this, new XmlException(string.Format(SRSerialization.XmlSpecificBindingPrefix, "xml", xmlNamespace))); 377XmlExceptionHelper.ThrowXmlException(this, new XmlException(string.Format(SRSerialization.XmlSpecificBindingPrefix, "xmlns", xmlnsNamespace)));
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlConverter.cs (1)
493throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(string.Format(SRSerialization.XmlInvalidQualifiedName, qname)));
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlExceptionHelper.cs (2)
38throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(s)); 49throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(s));
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlUTF8TextReader.cs (6)
887XmlExceptionHelper.ThrowXmlException(this, new XmlException(string.Format(SRSerialization.XmlSpaceBetweenAttributes))); 920XmlExceptionHelper.ThrowXmlException(this, new XmlException(string.Format(SRSerialization.XmlInvalidFFFE))); 1056XmlExceptionHelper.ThrowXmlException(this, new XmlException(string.Format(SRSerialization.XmlInvalidCommentChars))); 1189XmlExceptionHelper.ThrowXmlException(this, new XmlException(string.Format(SRSerialization.XmlInvalidFFFE))); 1349XmlExceptionHelper.ThrowXmlException(this, new XmlException(string.Format(SRSerialization.XmlCDATAInvalidAtTopLevel))); 1392XmlExceptionHelper.ThrowXmlException(this, new XmlException(string.Format(SRSerialization.XmlCloseCData)));
FrameworkFork\System.ServiceModel\System\IdentityModel\Tokens\KeyInfoSerializer.cs (3)
178throw /*System.ServiceModel.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(string.Format(SR_IdentityModel.ErrorDeserializingKeyIdentifierClause))); 229throw new XmlException(SRServiceModel.StandardsManagerCannotWriteObject); 272throw /*System.ServiceModel.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(string.Format(SR_IdentityModel.CannotReadKeyIdentifierClause, reader.LocalName, reader.NamespaceURI)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\AddressHeader.cs (1)
118throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(string.Format(SRServiceModel.ExpectedElementMissing, Name, Namespace)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\WindowsStreamSecurityBindingElement.cs (1)
118throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\StreamFormatter.cs (2)
377throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRServiceModel.XmlInvalidStream)); 413throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRServiceModel.XmlInvalidStream));
FrameworkFork\System.ServiceModel\System\ServiceModel\EndpointAddress.cs (3)
898throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(string.Format(SRServiceModel.InvalidUriValue, address, XD.AddressingDictionary.Address.Value, AddressingVersion.WSAddressingAugust2004.Namespace))); 966throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(string.Format(SRServiceModel.InvalidUriValue, address, XD.AddressingDictionary.Address.Value, XD.Addressing10Dictionary.Namespace.Value))); 980return new XmlException(message);
FrameworkFork\System.ServiceModel\System\ServiceModel\EndpointIdentity.cs (4)
121throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(string.Format(SRServiceModel.UnexpectedEmptyElementExpectingClaim, XD.AddressingDictionary.Identity.Value, XD.AddressingDictionary.IdentityExtensionNamespace.Value))); 144throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(string.Format(SRServiceModel.UnrecognizedIdentityType, reader.Name, reader.NamespaceURI))); 153throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(string.Format(SRServiceModel.UnrecognizedIdentityType, reader.Name, reader.NamespaceURI))); 160throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRServiceModel.InvalidIdentityElement));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\WSSecureConversation.cs (3)
157throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRServiceModel.DerivedKeyTokenRequiresTokenReference)); 169throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(string.Format(SRServiceModel.DerivedKeyInvalidGenerationSpecified, generation))); 179throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(string.Format(SRServiceModel.DerivedKeyInvalidOffsetSpecified, offset)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\WSSecurityJan2004.cs (2)
435throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(string.Format(SRServiceModel.CantInferReferenceForToken, EncryptedKey.ElementName.Value))); 480throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(string.Format(SRServiceModel.CantInferReferenceForToken, ValueTypeAbsoluteUri)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\WSSecurityTokenSerializer.cs (3)
244throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(string.Format(SRServiceModel.CannotReadToken, reader.LocalName, reader.NamespaceURI, localReader.GetAttribute(XD.SecurityJan2004Dictionary.ValueType, null)))); 440throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(string.Format(SRServiceModel.CannotReadToken, element.LocalName, element.NamespaceURI, element.GetAttribute(SecurityJan2004Strings.ValueType, null)))); 489throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(string.Format(SRServiceModel.RequiredAttributeMissing, idAttributeLocalName, issuedTokenXml.LocalName)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\WSTrust.cs (2)
248throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRServiceModel.NoRequestSecurityTokenResponseElements)); 599throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(string.Format(SRServiceModel.ExpectedOneOfTwoElementsFromNamespace,
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\XmlHelper.cs (12)
119throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(string.Format(SRServiceModel.CouldNotFindNamespaceForPrefix, prefix))); 170throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(string.Format(SRServiceModel.ChildNodeTypeMissing, parentName, expectedNodeType))); 175throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(string.Format(SRServiceModel.ChildNodeTypeMissing, parent.Name, expectedNodeType))); 180throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(string.Format(SRServiceModel.EmptyXmlElementError, r.Name))); 185throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(string.Format(SRServiceModel.EmptyXmlElementError, e.Name))); 190throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRServiceModel.UnexpectedEndOfFile)); 195throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(string.Format(SRServiceModel.CouldNotFindNamespaceForPrefix, prefix))); 200throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(string.Format(SRServiceModel.RequiredAttributeMissing, attrName, elementName))); 205throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(string.Format(SRServiceModel.ExpectedElementMissing, elementName, elementNamespace))); 210throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(string.Format(SRServiceModel.UnexpectedXmlChildNode, r.Name, r.NodeType, parentName))); 215throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(string.Format(SRServiceModel.UnexpectedXmlChildNode, n.Name, n.NodeType, parent.Name))); 259new XmlException(string.Format(SRServiceModel.EmptyBase64Attribute, name, ns)));
FrameworkFork\System.ServiceModel\System\ServiceModel\X509CertificateEndpointIdentity.cs (2)
54throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(string.Format(SRServiceModel.UnexpectedEmptyElementExpectingClaim, XD.AddressingDictionary.X509v3Certificate.Value, XD.AddressingDictionary.IdentityExtensionNamespace.Value))); 73throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(string.Format(SRServiceModel.UnexpectedEmptyElementExpectingClaim, XD.AddressingDictionary.X509v3Certificate.Value, XD.AddressingDictionary.IdentityExtensionNamespace.Value)));
FrameworkFork\System.ServiceModel\System\ServiceModel\XmlUtil.cs (3)
29throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRServiceModel.XmlLangAttributeMissing)); 115throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(string.Format(SRServiceModel.InvalidXmlQualifiedName, qname))); 121throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(string.Format(SRServiceModel.UnboundPrefixInQName, qname)));