80 instantiations of XmlException
PresentationBuildTasks (1)
Base\System\Windows\Markup\XmlCompatibilityReader.cs (1)
1482throw new XmlException(string.Format(CultureInfo.InvariantCulture, message, args), null, info == null ? 1 : info.LineNumber,
SMDiagnostics (1)
System\ServiceModel\Diagnostics\ExceptionUtility.cs (1)
231return this.ThrowHelperError(new XmlException(
System.Data.Entity.Design (4)
System\Data\Entity\Design\AspNet\EntityDesignerBuildProvider.cs (3)
65throw new XmlException("No Conceptual Schema node to embed as a resource", null, 0, 0); 70throw new XmlException("No Storage Schema node to embed as a resource", null, 0, 0); 75throw new XmlException("No Mapping node to embed as a resource", null, 0, 0);
System\Data\Entity\Design\AspNet\EntityModelBuildProvider.cs (1)
95outer = new XmlException(error.Message, inner, error.Line, error.Column);
System.IdentityModel (1)
System\IdentityModel\DiagnosticUtilityExtensions.cs (1)
123return ExceptionUtility.ThrowHelperError(new XmlException(
System.Runtime.Serialization (8)
System\Runtime\Serialization\Json\JsonReaderDelegator.cs (2)
311throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(XmlObjectSerializer.TryAddLineInfo(this, SR.GetString(System.Runtime.Serialization.SR.XmlInvalidConversion, value, "UInt64")))); 349throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(XmlObjectSerializer.TryAddLineInfo(this, System.Runtime.Serialization.SR.GetString(System.Runtime.Serialization.SR.XmlInvalidConversion, value, "UInt64"))));
System\Runtime\Serialization\XmlReaderDelegator.cs (1)
346throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(XmlObjectSerializer.TryAddLineInfo(this, SR.GetString(SR.XmlInvalidConversion, value, type))));
System\Xml\ValueHandle.cs (1)
475throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(exception.Message, exception.InnerException));
System\Xml\XmlBaseReader.cs (1)
1628throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(exception.Message, exception.InnerException));
System\Xml\XmlExceptionHelper.cs (2)
42throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(s)); 53throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(s));
System\Xml\XmlMtomReader.cs (1)
1277throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(e.Message, e));
System.ServiceModel (28)
System\ServiceModel\Channels\CreateSequenceResponse.cs (1)
113throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(reason));
System\ServiceModel\Channels\MessageHeader.cs (1)
273throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(exception.Message, null));
System\ServiceModel\Channels\WsrmMessageInfo.cs (5)
751throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(reason)); 812throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(reason)); 1011throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(reason)); 1078throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(reason)); 1142throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(reason));
System\ServiceModel\EndpointAddress.cs (2)
979return new XmlException(message, null, lineInfo.LineNumber, lineInfo.LinePosition); 982return new XmlException(message);
System\ServiceModel\Syndication\Atom10FeedFormatter.cs (7)
594throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(FeedUtils.AddLineInfo(reader, SR.GetString(SR.Atom10SpecRequiresTextConstruct, context, type)))); 661new XmlException(FeedUtils.AddLineInfo(reader, 689new XmlException(FeedUtils.AddLineInfo(reader, 892throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(FeedUtils.AddLineInfo(reader, SR.ErrorParsingFeed), e)); 896throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(FeedUtils.AddLineInfo(reader, SR.ErrorParsingFeed), e)); 980throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(FeedUtils.AddLineInfo(reader, SR.ErrorParsingItem), e)); 984throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(FeedUtils.AddLineInfo(reader, SR.ErrorParsingItem), e));
System\ServiceModel\Syndication\AtomPub10CategoriesDocumentFormatter.cs (2)
239throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(FeedUtils.AddLineInfo(reader, SR.ErrorParsingDocument), e)); 243throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(FeedUtils.AddLineInfo(reader, SR.ErrorParsingDocument), e));
System\ServiceModel\Syndication\AtomPub10ServiceDocumentFormatter.cs (2)
630throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(FeedUtils.AddLineInfo(reader, SR.ErrorParsingDocument), e)); 634throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(FeedUtils.AddLineInfo(reader, SR.ErrorParsingDocument), e));
System\ServiceModel\Syndication\Rss20FeedFormatter.cs (7)
268new XmlException(FeedUtils.AddLineInfo(reader, 290new XmlException(FeedUtils.AddLineInfo(reader, 326new XmlException(FeedUtils.AddLineInfo(reader, 751throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(FeedUtils.AddLineInfo(reader, SR.ErrorParsingItem), e)); 755throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(FeedUtils.AddLineInfo(reader, SR.ErrorParsingItem), e)); 1044throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(FeedUtils.AddLineInfo(reader, SR.ErrorParsingFeed), e)); 1048throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(FeedUtils.AddLineInfo(reader, SR.ErrorParsingFeed), e));
System\ServiceModel\Syndication\SyndicationFeedFormatter.cs (1)
568throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(s));
System.ServiceModel.Discovery (5)
System\ServiceModel\Discovery\SerializationUtility.cs (5)
101throw FxTrace.Exception.AsError(new XmlException(notFoundExceptionString)); 110throw FxTrace.Exception.AsError(new XmlException(exceptionString, fe)); 114throw FxTrace.Exception.AsError(new XmlException(exceptionString, oe)); 253throw FxTrace.Exception.AsError(new XmlException(exceptionString, fe)); 257throw FxTrace.Exception.AsError(new XmlException(exceptionString, oe));
System.Web (4)
UI\WebParts\WebPartManager.cs (4)
2670throw new XmlException(); 2678throw new XmlException(); 2687throw new XmlException(); 3004throw new XmlException();
System.Windows.Forms (6)
winforms\Managed\System\Resources\ResXDataNode.cs (3)
497XmlException xml = new XmlException(newMessage, null, dataNodeInfo.ReaderPosition.Y, dataNodeInfo.ReaderPosition.X); 525XmlException xml = new XmlException(newMessage, nse, dataNodeInfo.ReaderPosition.Y, dataNodeInfo.ReaderPosition.X); 537XmlException xml = new XmlException(newMessage, null, dataNodeInfo.ReaderPosition.Y, dataNodeInfo.ReaderPosition.X);
winforms\Managed\System\Resources\ResXResourceReader.cs (3)
408XmlException xml = new XmlException(newMessage, se, pt.Y, pt.X); 416XmlException xml = new XmlException(newMessage, tie.InnerException, pt.Y, pt.X); 429XmlException xmlEx = new XmlException(e.Message, e, pt.Y, pt.X);
System.Xml (21)
System\Xml\BinaryXml\XmlBinaryReader.cs (4)
851throw new XmlException(e.Message, e); 2271throw new XmlException(err, (string[])null); 3975return new XmlException(res, (string[])null); 3986return new XmlException(res, new string[] { arg1, arg2 });
System\Xml\Core\XmlCharCheckingReader.cs (2)
520throw new XmlException( res, arg, (IXmlLineInfo)null ); 525throw new XmlException( res, args, (IXmlLineInfo)null );
System\Xml\Core\XmlTextReaderImpl.cs (9)
2472Throw( new XmlException( res, string.Empty, lineNo, linePos, ps.baseUriStr ) ); 2476Throw( new XmlException( res, arg, ps.LineNo, ps.LinePos, ps.baseUriStr ) ); 2480Throw( new XmlException( res, arg, lineNo, linePos, ps.baseUriStr ) ); 2484Throw( new XmlException( res, args, ps.LineNo, ps.LinePos, ps.baseUriStr ) ); 2492Throw( new XmlException( res, args, innerException, ps.LineNo, ps.LinePos, ps.baseUriStr ) ); 2505Throw( new XmlException( e.Message, (Exception)null, lineNo, linePos, ps.baseUriStr ) ); 2509Throw( new XmlException( res, string.Empty, ps.baseUriStr ) ); 2513Throw( new XmlException( res, arg, ps.baseUriStr ) ); 2517Throw( new XmlException( res, args, innerException, 0, 0, ps.baseUriStr ) );
System\Xml\Schema\DtdParser.cs (3)
3274readerAdapter.Throw( new XmlException( res, arg, (int)LineNo, (int)LinePos, baseUri == null ? null : baseUri.ToString() ) ); 3279readerAdapter.Throw( new XmlException( res, args, (int)LineNo, (int)LinePos, baseUri == null ? null : baseUri.ToString() ) ); 3284readerAdapter.Throw( new XmlException( res, arg, (int)lineNo, (int)linePos, baseUri == null ? null : baseUri.ToString() ) );
System\Xml\XmlConvert.cs (3)
1597return new XmlException( res, string.Empty, lineNo, linePos ); 1611return new XmlException( res, arg, lineNo, linePos ); 1625return new XmlException( res, args, lineNo, linePos );
WindowsBase (1)
Base\System\Windows\Markup\XmlCompatibilityReader.cs (1)
1482throw new XmlException(string.Format(CultureInfo.InvariantCulture, message, args), null, info == null ? 1 : info.LineNumber,
279 references to XmlException
PresentationBuildTasks (6)
BuildTasks\MS\Internal\Tasks\CompilerWrapper.cs (1)
325if (e is System.Xml.XmlException)
Framework\System\Windows\Markup\XamlParser.cs (3)
224if (e is XmlException) 226XmlException xmlEx = (XmlException)e;
Framework\System\Windows\Markup\XamlReaderHelper.cs (2)
425catch (XmlException e) 1397!typeof(System.Xml.XmlException).IsAssignableFrom(innerException.GetType()))
PresentationCore (1)
Core\CSharp\MS\Internal\FontFace\CompositeFontParser.cs (1)
203catch (XmlException x)
PresentationFramework (10)
src\Framework\MS\Internal\Globalization\BamlTreeMap.cs (1)
378}catch (XmlException)
src\Framework\MS\Internal\Globalization\BamlTreeUpdater.cs (1)
456catch (XmlException)
src\Framework\MS\Internal\IO\Packaging\XamlFilter.cs (1)
263catch (XmlException xmlException)
src\Framework\System\Windows\Annotations\Storage\XmlStreamStore.cs (3)
81/// <exception cref="XmlException">stream contains invalid XML</exception> 108/// <exception cref="XmlException">stream contains invalid XML</exception> 752/// <exception cref="XmlException">if the stream contains invalid XML</exception>
src\Framework\System\Windows\Data\XmlDataProvider.cs (1)
495catch (XmlException xmle)
src\Framework\System\Windows\Markup\XamlReader.cs (3)
435else if (e is XmlException) 437XmlException xe = (XmlException)e;
System.Activities.Presentation (3)
System.Activities.Presentation\System\Activities\Presentation\View\VBIdentifierName.cs (1)
113catch (XmlException)
System.Activities.Presentation\System\Activities\Presentation\WorkflowDesigner.SerializationHelpers.cs (2)
144XmlException xmlEx = e as XmlException;
System.Configuration (3)
System\Configuration\BaseConfigurationRecord.cs (1)
648catch (XmlException e) {
System\Configuration\ExceptionUtil.cs (2)
72XmlException xe = e as XmlException;
System.Data (3)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\VBIdentifierName.cs (1)
113catch (XmlException)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\WorkflowDesigner.SerializationHelpers.cs (2)
144XmlException xmlEx = e as XmlException;
System.Data.Entity (3)
System\Data\EntityModel\SchemaObjectModel\Schema.cs (1)
244catch (XmlException ex)
System\Data\EntityModel\SchemaObjectModel\Utils.cs (1)
246catch (System.Xml.XmlException)
System\Data\Mapping\StorageMappingItemLoader.cs (1)
215catch (XmlException xmlException)
System.Data.Entity.Design (2)
System\Data\Entity\Design\AspNet\EntityModelBuildProvider.cs (2)
91XmlException inner = null; 92XmlException outer = null;
System.Data.Services (2)
System\Data\Services\Serializers\SyndicationDeserializer.cs (2)
145catch (XmlException exception) 167catch (XmlException exception)
System.Data.SqlXml (10)
System\Xml\Xsl\Runtime\XmlExtensionFunction.cs (1)
262if (!XmlException.IsCatchableException(e)) {
System\Xml\Xsl\Runtime\XmlQueryContext.cs (1)
142if (!XmlException.IsCatchableException(e)) {
System\Xml\Xsl\Xslt\Compiler.cs (3)
195catch (XmlException e) { 209catch (XmlException e) { 225catch (XmlException e) {
System\Xml\Xsl\Xslt\QilGenerator.cs (1)
165if (!XmlException.IsCatchableException(e)) {
System\Xml\Xsl\Xslt\XsltLoader.cs (3)
233if (!XmlException.IsCatchableException(e)) { 238XmlException ex = e as XmlException;
System\Xml\Xsl\XsltOld\XsltCompileContext.cs (1)
697if (!XmlException.IsCatchableException(e)) {
System.IdentityModel (21)
System\IdentityModel\Tokens\RsaSecurityTokenHandler.cs (1)
82/// <exception cref="XmlException">The 'reader' is not positioned at a RSA token.
System\IdentityModel\Tokens\Saml2Id.cs (1)
48catch (XmlException e)
System\IdentityModel\Tokens\Saml2SecurityTokenHandler.cs (1)
4680/// <exception cref="XmlException">The 'reader' is not positioned at an 'EncryptedID' element.</exception>
System\IdentityModel\Tokens\SamlSecurityTokenHandler.cs (16)
1563/// <exception cref="XmlException">The saml:Action element contains unknown elements.</exception> 1627/// <exception cref="XmlException">The reder is not positioned at a saml:Advice element.</exception> 1730/// <exception cref="XmlException">The XmlReader is not positioned at a saml:Assertion element or the Assertion 1912/// <exception cref="XmlException">The reader is not positioned at saml:Conditions element or contains 2015/// <exception cref="XmlException">XmlReader is positioned at an unknown element.</exception> 2075/// <exception cref="XmlException">The XmlReader is not positioned at saml:AudienceRestrictionCondition.</exception> 2164/// <exception cref="XmlException">The XmlReader is not positioned at saml:DoNotCacheCondition.</exception> 2222/// <exception cref="XmlException">The XmlReader is not positioned at recognized SamlStatement. By default, 2300/// <exception cref="XmlException">The reader is not positioned at a SamlSubject.</exception> 2454/// <exception cref="XmlException">XmlReader is not positioned at a valid SecurityKeyIdentifier.</exception> 2503/// <exception cref="XmlException">XmlReader is not positioned at a saml:AttributeStatement element or 2592/// <exception cref="XmlException">The XmlReader is not positioned on a valid saml:Attribute element.</exception> 2841/// <exception cref="XmlException">The XmlReader is not positioned on a saml:AuthenticationStatement 2979/// <exception cref="XmlException">XmlReader is not positioned at a saml:AuthorityBinding element or 3135/// <exception cref="XmlException">The XmlReader is not positioned at a saml:AuthorizationDecisionStatement or 3265/// <exception cref="XmlException">The XmlReader is not positioned at a saml:Evidence element or
System\IdentityModel\Tokens\UserNameSecurityTokenHandler.cs (1)
92/// <exception cref="XmlException">The token cannot be read.</exception>
System\IdentityModel\Tokens\X509SecurityTokenHandler.cs (1)
416/// <exception cref="XmlException">XmlReader is not pointing to an valid X509SecurityToken as
System.Runtime.Serialization (13)
System\Runtime\Serialization\DataContract.cs (1)
1403catch (XmlException)
System\Runtime\Serialization\PrimitiveDataContract.cs (1)
712catch (XmlException xes)
System\Runtime\Serialization\XmlObjectSerializer.cs (6)
85catch (XmlException ex) 138catch (XmlException ex) 172catch (XmlException ex) 189catch (XmlException ex) 316catch (XmlException ex) 333catch (XmlException ex)
System\Xml\XmlExceptionHelper.cs (4)
45static public void ThrowXmlException(XmlDictionaryReader reader, XmlException exception) 271static public XmlException CreateConversionException(string value, string type, Exception exception) 276static public XmlException CreateEncodingException(byte[] buffer, int offset, int count, Exception exception) 281static public XmlException CreateEncodingException(string value, Exception exception)
System\Xml\XmlUTF8TextReader.cs (1)
421catch (XmlException exception)
System.ServiceModel (46)
System\ServiceModel\Channels\CallbackContextMessageHeader.cs (1)
118catch (XmlException e)
System\ServiceModel\Channels\ChannelDemuxer.cs (2)
622catch (XmlException e) 2273catch (XmlException e)
System\ServiceModel\Channels\ContextMessageHeader.cs (1)
150catch (XmlException e)
System\ServiceModel\Channels\CreateSequence.cs (1)
159catch (XmlException e)
System\ServiceModel\Channels\HttpChannelHelpers.cs (6)
171catch (XmlException xmlException) 216catch (XmlException xmlException) 231catch (XmlException xmlException) 262catch (XmlException e) 282catch (XmlException e) 347catch (XmlException e)
System\ServiceModel\Channels\HttpChannelListener.cs (1)
1193else if (e is XmlException)
System\ServiceModel\Channels\Message.cs (1)
515catch (XmlException e)
System\ServiceModel\Channels\MessageFault.cs (1)
104catch (XmlException e)
System\ServiceModel\Channels\MsmqDecodeHelper.cs (2)
135catch (XmlException e) 348catch (XmlException e)
System\ServiceModel\Channels\MtomMessageEncoder.cs (2)
570catch (XmlException xe) 681catch (XmlException xe)
System\ServiceModel\Channels\OneWayChannelFactory.cs (1)
230e is XmlException ||
System\ServiceModel\Channels\PeerFlooder.cs (1)
339catch (XmlException e)
System\ServiceModel\Channels\PeerHelpers.cs (2)
819catch (XmlException e) 862catch (XmlException e)
System\ServiceModel\Channels\PeerNodeImplementation.cs (1)
1496catch (XmlException e)
System\ServiceModel\Channels\PeerSecurityHelpers.cs (1)
167catch (XmlException e)
System\ServiceModel\Channels\SessionConnectionReader.cs (2)
1060catch (XmlException xmlException) 1616catch (XmlException xmlException)
System\ServiceModel\Channels\SingletonConnectionReader.cs (1)
1247catch (XmlException xmlException)
System\ServiceModel\Channels\WsrmMessageInfo.cs (1)
656catch (XmlException exception)
System\ServiceModel\Description\ServiceReflector.cs (2)
206catch (XmlException) 264catch (XmlException e)
System\ServiceModel\Dispatcher\OperationFormatter.cs (2)
139catch (XmlException xe) 205catch (XmlException xe)
System\ServiceModel\Dispatcher\PrimitiveOperationFormatter.cs (2)
434catch (XmlException xe) 473catch (XmlException xe)
System\ServiceModel\EndpointAddress.cs (1)
974static XmlException CreateXmlException(XmlDictionaryReader reader, string message)
System\ServiceModel\Security\IssuanceTokenProviderBase.cs (1)
684|| e is XmlException
System\ServiceModel\Security\SecuritySessionClientSettings.cs (1)
1047return ((e is FormatException) || (e is XmlException));
System\ServiceModel\Security\SecuritySessionFilter.cs (1)
66return ((e is XmlException)
System\ServiceModel\Security\SecuritySessionServerSettings.cs (1)
1736return ((e is FormatException) || (e is XmlException));
System\ServiceModel\Security\WSSecurityTokenSerializer.cs (1)
437catch (XmlException e)
System\ServiceModel\Security\WSTrust.cs (2)
921catch (XmlException) 937catch (XmlException e)
System\ServiceModel\Security\WSTrustFeb2005.cs (1)
163catch (XmlException)
System\ServiceModel\Transactions\OletxTransactionHeader.cs (1)
101catch (XmlException xe)
System\ServiceModel\Transactions\WsatRegistrationHeader.cs (1)
120catch (XmlException e)
System\ServiceModel\Transactions\WsatTransactionFormatter.cs (1)
103catch (XmlException e)
System.ServiceModel.Activation (1)
System\ServiceModel\Activities\Activation\WorkflowServiceHostFactory.cs (1)
199if (e is XmlException)
System.ServiceModel.Channels (2)
System\ServiceModel\Channels\UdpUtility.cs (2)
408else if (ex is XmlException) 552catch (XmlException error)
System.ServiceModel.Discovery (4)
System\ServiceModel\Discovery\DiscoveryMessageSequence.cs (1)
140[Fx.Tag.Throws(typeof(XmlException), "throws on incorrect xml data")]
System\ServiceModel\Discovery\EndpointDiscoveryMetadata.cs (1)
334[Fx.Tag.Throws(typeof(XmlException), "throws on incorrect xml data")]
System\ServiceModel\Discovery\FindCriteria.cs (1)
284[Fx.Tag.Throws(typeof(XmlException), "throws on incorrect xml data")]
System\ServiceModel\Discovery\ResolveCriteria.cs (1)
86[Fx.Tag.Throws(typeof(XmlException), "throws on incorrect xml data")]
System.ServiceModel.Web (1)
System\ServiceModel\Description\WebScriptEnablingBehavior.cs (1)
143catch (XmlException exception)
System.Web (10)
Compilation\AssemblyBuilder.cs (1)
483catch (XmlException e) {
Compilation\BaseResourcesBuildProvider.cs (1)
71(e.InnerException is XmlException || e.InnerException is XmlSchemaException)) {
Compilation\WsdlBuildProvider.cs (2)
41XmlException xmlException = e.InnerException as XmlException;
Configuration\BrowserCapabilitiesCodeGenerator.cs (2)
481catch (XmlException e) { 590catch (XmlException e) {
UI\WebControls\xml.cs (1)
71catch (XmlException e) {
UI\WebParts\ImportCatalogPart.cs (1)
293catch (XmlException) {
UI\WebParts\WebPartManager.cs (1)
2913catch (XmlException) {
XmlSiteMapProvider.cs (1)
264catch (XmlException e) {
System.Web.DataVisualization (1)
WebForm\ChartWebControl.cs (1)
2845 catch(XmlException)
System.Web.Extensions (8)
Compilation\WCFModel\MapFileLoader.cs (2)
256XmlException xmlException = ex.InnerException as XmlException;
Compilation\WCFModel\MetadataFile.cs (1)
456catch (XmlException)
Compilation\WCFModel\ProxyGenerationError.cs (1)
94public ProxyGenerationError(GeneratorState generatorState, string fileName, XmlException errorException)
Compilation\WCFModel\VSWCFServiceContractGenerator.cs (4)
1466else if (ex is XmlException) 1468generationError = new ProxyGenerationError(ProxyGenerationError.GeneratorState.LoadMetadata, metadataItem.FileName, (XmlException)ex); 1479System.Xml.XmlException xmlException = ex.InnerException as System.Xml.XmlException;
System.Web.Services (5)
System\Web\Services\Protocols\SoapClientProtocol.cs (3)
312catch (XmlException e) { 380catch (XmlException e) { 402catch (XmlException e) {
System\Web\Services\Protocols\SoapServerProtocol.cs (2)
584catch (XmlException e) { 942if (inner is XmlException) {
System.Windows.Forms (7)
winforms\Managed\System\Resources\ResXDataNode.cs (3)
497XmlException xml = new XmlException(newMessage, null, dataNodeInfo.ReaderPosition.Y, dataNodeInfo.ReaderPosition.X); 525XmlException xml = new XmlException(newMessage, nse, dataNodeInfo.ReaderPosition.Y, dataNodeInfo.ReaderPosition.X); 537XmlException xml = new XmlException(newMessage, null, dataNodeInfo.ReaderPosition.Y, dataNodeInfo.ReaderPosition.X);
winforms\Managed\System\Resources\ResXResourceReader.cs (4)
408XmlException xml = new XmlException(newMessage, se, pt.Y, pt.X); 416XmlException xml = new XmlException(newMessage, tie.InnerException, pt.Y, pt.X); 421catch (XmlException e) { 429XmlException xmlEx = new XmlException(e.Message, e, pt.Y, pt.X);
System.Workflow.ComponentModel (1)
AuthoringOM\Serializer\WorkflowMarkupSerializer.cs (1)
141catch (XmlException xmlException)
System.Xml (91)
System\Xml\Core\XmlCharCheckingReader.cs (2)
280Throw( Res.Xml_InvalidCharacter, XmlException.BuildCharExceptionArgs( str, i ) ); 531Throw( Res.Xml_InvalidWhitespaceCharacter, XmlException.BuildCharExceptionArgs( value, i ) );
System\Xml\Core\XmlCharCheckingReaderAsync.cs (1)
148Throw( Res.Xml_InvalidCharacter, XmlException.BuildCharExceptionArgs( str, i ) );
System\Xml\Core\XmlCharCheckingWriter.cs (3)
214throw new ArgumentException( Res.GetString( Res.Xml_InvalidWhitespaceCharacter, XmlException.BuildCharExceptionArgs( ws, i ) ) ); 308throw new ArgumentException(Res.GetString(len == 0 ? Res.Xml_BadStartNameChar : Res.Xml_BadNameChar, XmlException.BuildCharExceptionArgs(ncname, len))); 320throw new ArgumentException( Res.GetString( res, XmlException.BuildCharExceptionArgs( name, len ) ) );
System\Xml\Core\XmlCharCheckingWriterAsync.cs (1)
133throw new ArgumentException( Res.GetString( Res.Xml_InvalidWhitespaceCharacter, XmlException.BuildCharExceptionArgs( ws, i ) ) );
System\Xml\Core\XmlEncodedRawTextWriter.cs (1)
1596error = Res.GetString( Res.Xml_InvalidCharacter, XmlException.BuildCharExceptionArgs( chars, i ) );
System\Xml\Core\XmlTextReaderImpl.cs (22)
2324catch ( XmlException e ) { 2497XmlException xmlEx = e as XmlException; 2521Throw( invCharPos, Res.Xml_InvalidCharacter, XmlException.BuildCharExceptionArgs( data, length, invCharPos ) ); 3951Throw( pos, Res.Xml_BadNameChar, XmlException.BuildCharExceptionArgs( ':', '\0' ) ); 4043Throw( pos, Res.Xml_BadNameChar, XmlException.BuildCharExceptionArgs( chars, ps.charsUsed, pos ) ); 4344Throw( pos, Res.Xml_BadStartNameChar, XmlException.BuildCharExceptionArgs( chars, ps.charsUsed, pos ) ); 4395Throw( pos, Res.Xml_BadNameChar, XmlException.BuildCharExceptionArgs( ':', '\0' )); 4731Throw( pos, Res.Xml_BadAttributeChar, XmlException.BuildCharExceptionArgs( '<', '\0' ) ); 5457catch ( XmlException ) { 5676Throw( Res.Xml_BadNameChar, XmlException.BuildCharExceptionArgs( ps.chars, ps.charsUsed, ps.charPos ) ); 6575Throw((ps.chars[startPos + 2] == 'x') ? startPos + 3 : startPos + 2, Res.Xml_InvalidCharacter, XmlException.BuildCharExceptionArgs(ch, '\0')); 6598Throw((ps.chars[startPos + 2] == 'x') ? startPos + 3 : startPos + 2, Res.Xml_InvalidCharacter, XmlException.BuildCharExceptionArgs(high, low)); 6789Throw( pos, Res.Xml_BadStartNameChar, XmlException.BuildCharExceptionArgs( chars, ps.charsUsed, pos ) ); 6820Throw(pos, Res.Xml_BadNameChar, XmlException.BuildCharExceptionArgs(':', '\0')); 6863catch ( XmlException ) { 7354catch ( XmlException e ) { 7635catch ( XmlException e ) { 7728Throw( pos, Res.Xml_BadAttributeChar, XmlException.BuildCharExceptionArgs( '<', '\0' ) ); 7825catch ( XmlException e ) { 8359catch ( XmlException e ) { 8388catch ( XmlException e ) {
System\Xml\Core\XmlTextReaderImplAsync.cs (13)
742catch ( XmlException e ) { 1760Throw(pos, Res.Xml_BadNameChar, XmlException.BuildCharExceptionArgs(':', '\0')); 1883Throw(pos, Res.Xml_BadNameChar, XmlException.BuildCharExceptionArgs(chars, ps.charsUsed, pos)); 2219Throw( pos, Res.Xml_BadStartNameChar, XmlException.BuildCharExceptionArgs( chars, ps.charsUsed, pos ) ); 2270Throw( pos, Res.Xml_BadNameChar, XmlException.BuildCharExceptionArgs( ':', '\0' )); 2513Throw( pos, Res.Xml_BadAttributeChar, XmlException.BuildCharExceptionArgs( '<', '\0' ) ); 3520catch ( XmlException ) { 3667Throw( Res.Xml_BadNameChar, XmlException.BuildCharExceptionArgs( ps.chars, ps.charsUsed, ps.charPos ) ); 4622Throw(pos, Res.Xml_BadStartNameChar, XmlException.BuildCharExceptionArgs(chars, ps.charsUsed, pos)); 4663Throw(pos, Res.Xml_BadNameChar, XmlException.BuildCharExceptionArgs(':', '\0')); 4716catch ( XmlException ) { 4994catch ( XmlException e ) { 5029catch ( XmlException e ) {
System\Xml\Core\XmlUtf8RawTextWriter.cs (1)
1496error = Res.GetString( Res.Xml_InvalidCharacter, XmlException.BuildCharExceptionArgs( chars, i ) );
System\Xml\Core\XmlWellFormedWriter.cs (5)
381throw new ArgumentException(Res.GetString(Res.Xml_InvalidCharacter, XmlException.BuildCharExceptionArgs(pubid, i)), "pubid"); 386throw new ArgumentException(Res.GetString(Res.Xml_InvalidCharacter, XmlException.BuildCharExceptionArgs(sysid, i)), "sysid"); 391throw new ArgumentException(Res.GetString(Res.Xml_InvalidCharacter, XmlException.BuildCharExceptionArgs(subset, i)), "subset"); 1585static private XmlException DupAttrException(string prefix, string localName) { 1810string[] badCharArgs = XmlException.BuildCharExceptionArgs(name, badCharIndex);
System\Xml\Core\XmlWellFormedWriterAsync.cs (3)
78throw new ArgumentException(Res.GetString(Res.Xml_InvalidCharacter, XmlException.BuildCharExceptionArgs(pubid, i)), "pubid"); 83throw new ArgumentException(Res.GetString(Res.Xml_InvalidCharacter, XmlException.BuildCharExceptionArgs(sysid, i)), "sysid"); 88throw new ArgumentException(Res.GetString(Res.Xml_InvalidCharacter, XmlException.BuildCharExceptionArgs(subset, i)), "subset");
System\Xml\Dom\XmlDocument.cs (1)
131throw new XmlException(Res.Xml_BadNameChar, XmlException.BuildCharExceptionArgs(name, endPos));
System\Xml\Schema\DataTypeImplementation.cs (3)
2233catch (XmlException e) { 2507catch (XmlException e) { 2824catch (XmlException e) {
System\Xml\Schema\DtdParser.cs (8)
1435catch (XmlException e) { 2403Throw( curPos, Res.Xml_BadAttributeChar, XmlException.BuildCharExceptionArgs( '<', '\0' ) ); 2516catch ( XmlException e ) { 2852Throw( curPos, Res.Xml_BadStartNameChar, XmlException.BuildCharExceptionArgs( chars, charsUsed, curPos ) ); 2883Throw( curPos, Res.Xml_BadNameChar, XmlException.BuildCharExceptionArgs( ':', '\0' )); 2954Throw( curPos, Res.Xml_BadNameChar, XmlException.BuildCharExceptionArgs( chars, charsUsed, curPos ) ); 3288Throw( pos, Res.Xml_InvalidCharacter, XmlException.BuildCharExceptionArgs( data, invCharPos )); 3292Throw( invCharPos, Res.Xml_InvalidCharacter, XmlException.BuildCharExceptionArgs( data, length, invCharPos ) );
System\Xml\Schema\DtdParserAsync.cs (5)
1046catch (XmlException e) { 1860Throw( curPos, Res.Xml_BadAttributeChar, XmlException.BuildCharExceptionArgs( '<', '\0' ) ); 2280Throw(curPos, Res.Xml_BadStartNameChar, XmlException.BuildCharExceptionArgs(chars, charsUsed, curPos)); 2317Throw( curPos, Res.Xml_BadNameChar, XmlException.BuildCharExceptionArgs( ':', '\0' )); 2387Throw( curPos, Res.Xml_BadNameChar, XmlException.BuildCharExceptionArgs( chars, charsUsed, curPos ) );
System\Xml\Schema\Preprocessor.cs (4)
1558catch(XmlException eInner) { 1683catch(XmlException ex) { 1709string[] invCharArgs = XmlException.BuildCharExceptionArgs(name, len); 1732catch(XmlException ex) {
System\Xml\Schema\SchemaCollectionpreProcessor.cs (1)
1392string[] invCharArgs = XmlException.BuildCharExceptionArgs(name, len);
System\Xml\Schema\XdrBuilder.cs (1)
501catch(XmlException e) {
System\Xml\Schema\XmlValueConverter.cs (2)
654catch (XmlException e) { 668catch (XmlException e) {
System\Xml\ValidateNames.cs (5)
388throw new XmlException(Res.Xml_BadStartNameChar, XmlException.BuildCharExceptionArgs(s, offsetBadChar)); 396throw new XmlException(Res.Xml_BadNameChar, XmlException.BuildCharExceptionArgs(s, offsetBadChar)); 413return new XmlException(Res.Xml_BadStartNameChar, XmlException.BuildCharExceptionArgs(s, offsetBadChar)); 417return new XmlException(Res.Xml_BadNameChar, XmlException.BuildCharExceptionArgs(s, offsetBadChar)); 611throw new ArgumentException(Res.GetString(Res.Xml_BadNameChar, XmlException.BuildCharExceptionArgs(':', '\0')), "name");
System\Xml\XmlConvert.cs (9)
346return new XmlException(endPos == 0 ? Res.Xml_BadStartNameChar : Res.Xml_BadNameChar, XmlException.BuildCharExceptionArgs(name, endPos)); 369throw CreateException(Res.Xml_BadNameChar, XmlException.BuildCharExceptionArgs(name, endPos), exceptionType, 0, endPos + 1); 457throw CreateException(Res.Xml_BadNameChar, XmlException.BuildCharExceptionArgs(name, endPos), exceptionType, 0, endPos + 1); 469return new XmlException(Res.Xml_BadNameChar, XmlException.BuildCharExceptionArgs(name, endPos)); 526throw new XmlException(Res.Xml_InvalidWhitespaceCharacter, XmlException.BuildCharExceptionArgs(content, pos), 0, pos + 1); 1662return CreateException(Res.Xml_InvalidCharacter, XmlException.BuildCharExceptionArgs(data, length, invCharPos), exceptionType, 0, invCharPos + 1); 1670return CreateException(Res.Xml_InvalidCharacter, XmlException.BuildCharExceptionArgs(data, invCharPos), exceptionType, 0, invCharPos + 1); 1678return CreateException(Res.Xml_InvalidCharacter, XmlException.BuildCharExceptionArgs(invChar, nextChar), exceptionType); 1682return CreateException(index == 0 ? Res.Xml_BadStartNameChar : Res.Xml_BadNameChar, XmlException.BuildCharExceptionArgs(name, index), exceptionType, 0, index + 1);
WindowsBase (24)
Base\MS\Internal\IO\Packaging\CustomSignedXml.cs (1)
59catch (XmlException)
Base\MS\Internal\IO\Packaging\InternalRelationshipCollection.cs (2)
216catch (XmlException exception) 281/// <exception cref="XmlException">Thrown if XML is malformed</exception>
Base\MS\Internal\IO\Packaging\XmlDigitalSignatureProcessor.cs (5)
155catch (XmlException) 300/// <exception cref="XmlException">if signature xml is malformed</exception> 314/// <exception cref="XmlException">if signature xml is malformed</exception> 724catch (System.Xml.XmlException) 1051/// <exception cref="XmlException">throws if markup does not match OPC spec</exception>
Base\MS\Internal\IO\Packaging\XmlSignatureProperties.cs (3)
154/// <exception cref="XmlException">illegal format</exception> 239/// <exception cref="XmlException">illegal format</exception> 367/// <exception cref="XmlException">Format does not match the given string</exception>
Base\System\IO\Packaging\Package.cs (5)
666/// <exception cref="System.Xml.XmlException">If parameter "id" is not a valid Xsd Id</exception> 667/// <exception cref="System.Xml.XmlException">If an id is provided in the method, and its not unique</exception> 686/// <exception cref="System.Xml.XmlException">If parameter "id" is not a valid Xsd Id</exception> 750/// <exception cref="System.Xml.XmlException">If parameter "id" is not a valid Xsd Id</exception> 772/// <exception cref="System.Xml.XmlException">If parameter "id" is not a valid Xsd Id</exception>
Base\System\IO\Packaging\PackageDigitalSignatureManager.cs (2)
440/// <exception cref="System.Xml.XmlException">Thrown if signatureId is non-null and violates the 1033catch (System.Xml.XmlException xmlException)
Base\System\IO\Packaging\PackagePart.cs (5)
438/// <exception cref="System.Xml.XmlException">If parameter "id" is not a valid Xsd Id</exception> 439/// <exception cref="System.Xml.XmlException">If an id is provided in the method, and its not unique</exception> 459/// <exception cref="System.Xml.XmlException">If parameter "id" is not a valid Xsd Id</exception> 527/// <exception cref="System.Xml.XmlException">If parameter "id" is not a valid Xsd Id</exception> 550/// <exception cref="System.Xml.XmlException">If parameter "id" is not a valid Xsd Id</exception>
Base\System\IO\Packaging\PackageRelationshipSelector.cs (1)
46/// <exception cref="System.Xml.XmlException">If PackageRelationshipSelectorType.Id and selection criteria is not valid Xsd Id</exception>
XamlBuildTask (1)
Microsoft\Build\Tasks\Xaml\PartialClassGenerationTaskInternal.cs (1)
624catch (XmlException e)