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