110 references to Error
System.Data.Services.Design (1)
System\Data\EntityModel\DataServiceBuildProvider.cs (1)
410
if (e.Severity == XmlSeverityType.
Error
)
System.Web.Extensions (1)
Compilation\WCFModel\MapFileLoader.cs (1)
74
bool isError = (e.Severity == XmlSeverityType.
Error
);
System.Web.Services (2)
System\Web\Services\Description\SchemaCompiler.cs (1)
159
Warnings.Add(Res.GetString(args.Severity == XmlSeverityType.
Error
? Res.SchemaValidationError : Res.SchemaValidationWarning, WarningDetails(args.Exception, args.Message)));
System\Web\Services\Description\WebReferenceOptions.cs (1)
156
if (args.Severity != XmlSeverityType.
Error
)
System.Workflow.Runtime (1)
Tracking\TrackingProfileSerializer.cs (1)
851
if (e.Severity == XmlSeverityType.
Error
)
System.Xml (104)
System\Xml\Core\XmlTextReaderImpl.cs (3)
2327
SendValidationEvent( XmlSeverityType.
Error
, Res.Sch_ParEntityRefNesting, null, ps.LineNo, ps.LinePos );
4082
SendValidationEvent( XmlSeverityType.
Error
, Res.Sch_StandAloneNormalization, attr.GetNameWPrefix( nameTable ), attr.LineNo, attr.LinePos );
4110
SendValidationEvent( XmlSeverityType.
Error
, Res.Sch_UnSpecifiedDefaultAttributeInExternalStandalone, qname, curNode.LineNo, curNode.LinePos );
System\Xml\Core\XmlTextReaderImplAsync.cs (1)
745
SendValidationEvent( XmlSeverityType.
Error
, Res.Sch_ParEntityRefNesting, null, ps.LineNo, ps.LinePos );
System\Xml\Core\XmlValidatingReaderImpl.cs (1)
60
else if (reader.ValidationType != ValidationType.None && severity == XmlSeverityType.
Error
) {
System\Xml\Dom\DocumentSchemaValidator.cs (3)
691
if (arg.Severity == XmlSeverityType.
Error
) {
697
if (arg.Severity == XmlSeverityType.
Error
) {
706
else if (arg.Severity == XmlSeverityType.
Error
) {
System\Xml\Schema\BaseProcessor.cs (9)
183
SendValidationEvent(new XmlSchemaException(code, source), XmlSeverityType.
Error
);
187
SendValidationEvent(new XmlSchemaException(code, msg, source), XmlSeverityType.
Error
);
191
SendValidationEvent(new XmlSchemaException(code, new string[] { msg1, msg2 }, source), XmlSeverityType.
Error
);
195
SendValidationEvent(new XmlSchemaException(code, args, innerException, source.SourceUri, source.LineNumber, source.LinePosition, source), XmlSeverityType.
Error
);
199
SendValidationEvent(new XmlSchemaException(code, new string[] { msg1, msg2 }, sourceUri, lineNumber, linePosition), XmlSeverityType.
Error
);
207
SendValidationEvent(e, XmlSeverityType.
Error
);
215
if (severity == XmlSeverityType.
Error
) {
221
else if (severity == XmlSeverityType.
Error
) {
227
if (severity == XmlSeverityType.
Error
) {
System\Xml\Schema\BaseValidator.cs (3)
213
SendValidationEvent(e, XmlSeverityType.
Error
);
228
else if (severity == XmlSeverityType.
Error
) {
268
eventHandling.SendEvent(e, XmlSeverityType.
Error
);
System\Xml\Schema\DtdParser.cs (22)
418
SendValidationEvent( XmlSeverityType.
Error
, new XmlSchemaException( Res.Sch_UndeclaredNotation, un.name, BaseUriStr, (int)un.lineNo, (int)un.linePos ) );
552
SendValidationEvent( curPos, XmlSeverityType.
Error
, Res.Sch_ParEntityRefNesting, string.Empty );
606
SendValidationEvent( curPos, XmlSeverityType.
Error
, Res.Sch_ParEntityRefNesting, string.Empty );
734
SendValidationEvent( XmlSeverityType.
Error
, Res.Sch_IdAttrDeclared, elementDecl.Name.ToString() );
747
SendValidationEvent( curPos - 8, XmlSeverityType.
Error
, Res.Sch_DupNotationAttribute, elementDecl.Name.ToString() ); // 8 == strlen("NOTATION")
753
SendValidationEvent( curPos - 8, XmlSeverityType.
Error
, Res.Sch_NotationAttributeOnEmptyElement, elementDecl.Name.ToString() );// 8 == strlen("NOTATION")
775
SendValidationEvent( XmlSeverityType.
Error
, new XmlSchemaException( Res.Xml_AttlistDuplNotationValue, notationName, BaseUriStr, (int)LineNo, (int)LinePos ) );
814
SendValidationEvent( XmlSeverityType.
Error
, new XmlSchemaException( Res.Xml_AttlistDuplEnumValue, nmtoken, BaseUriStr, (int)LineNo, (int)LinePos ) );
856
SendValidationEvent( curPos, XmlSeverityType.
Error
, Res.Sch_AttListPresence, string.Empty );
892
SendValidationEvent( curPos - name.Name.Length, XmlSeverityType.
Error
, Res.Sch_DupElementDecl, GetNameString() );
1166
SendValidationEvent( curPos, XmlSeverityType.
Error
, Res.Sch_ParEntityRefNesting, string.Empty );
1220
SendValidationEvent( curPos, XmlSeverityType.
Error
, Res.Sch_ParEntityRefNesting, string.Empty );
1239
SendValidationEvent( curPos, XmlSeverityType.
Error
, Res.Sch_ParEntityRefNesting, string.Empty );
1249
SendValidationEvent( XmlSeverityType.
Error
, Res.Sch_DupElement, name.ToString() );
1256
SendValidationEvent( curPos, XmlSeverityType.
Error
, Res.Sch_ParEntityRefNesting, string.Empty );
1377
SendValidationEvent( curPos - notationName.Name.Length, XmlSeverityType.
Error
, Res.Sch_DupNotation, notationName.Name );
1437
SendValidationEvent( XmlSeverityType.
Error
, Res.Sch_ParEntityRefNesting, null );
1469
SendValidationEvent( curPos, XmlSeverityType.
Error
, Res.Sch_ParEntityRefNesting, string.Empty );
1491
SendValidationEvent( curPos, XmlSeverityType.
Error
, Res.Sch_ParEntityRefNesting, string.Empty );
1500
SendValidationEvent( curPos, XmlSeverityType.
Error
, Res.Sch_ParEntityRefNesting, string.Empty );
3186
SendValidationEvent( curPos - entityName.Name.Length - 1, XmlSeverityType.
Error
, Res.Xml_UndeclaredParEntity, entityName.Name );
3194
SendValidationEvent( curPos - entityName.Name.Length - 1, XmlSeverityType.
Error
, Res.Xml_UndeclaredEntity, entityName.Name );
System\Xml\Schema\DtdParserAsync.cs (20)
61
SendValidationEvent( XmlSeverityType.
Error
, new XmlSchemaException( Res.Sch_UndeclaredNotation, un.name, BaseUriStr, (int)un.lineNo, (int)un.linePos ) );
197
SendValidationEvent( curPos, XmlSeverityType.
Error
, Res.Sch_ParEntityRefNesting, string.Empty );
251
SendValidationEvent( curPos, XmlSeverityType.
Error
, Res.Sch_ParEntityRefNesting, string.Empty );
379
SendValidationEvent( XmlSeverityType.
Error
, Res.Sch_IdAttrDeclared, elementDecl.Name.ToString() );
392
SendValidationEvent( curPos - 8, XmlSeverityType.
Error
, Res.Sch_DupNotationAttribute, elementDecl.Name.ToString() ); // 8 == strlen("NOTATION")
398
SendValidationEvent( curPos - 8, XmlSeverityType.
Error
, Res.Sch_NotationAttributeOnEmptyElement, elementDecl.Name.ToString() );// 8 == strlen("NOTATION")
420
SendValidationEvent( XmlSeverityType.
Error
, new XmlSchemaException( Res.Xml_AttlistDuplNotationValue, notationName, BaseUriStr, (int)LineNo, (int)LinePos ) );
459
SendValidationEvent( XmlSeverityType.
Error
, new XmlSchemaException( Res.Xml_AttlistDuplEnumValue, nmtoken, BaseUriStr, (int)LineNo, (int)LinePos ) );
501
SendValidationEvent( curPos, XmlSeverityType.
Error
, Res.Sch_AttListPresence, string.Empty );
537
SendValidationEvent( curPos - name.Name.Length, XmlSeverityType.
Error
, Res.Sch_DupElementDecl, GetNameString() );
790
SendValidationEvent( curPos, XmlSeverityType.
Error
, Res.Sch_ParEntityRefNesting, string.Empty );
844
SendValidationEvent( curPos, XmlSeverityType.
Error
, Res.Sch_ParEntityRefNesting, string.Empty );
863
SendValidationEvent( curPos, XmlSeverityType.
Error
, Res.Sch_ParEntityRefNesting, string.Empty );
873
SendValidationEvent( XmlSeverityType.
Error
, Res.Sch_DupElement, name.ToString() );
880
SendValidationEvent( curPos, XmlSeverityType.
Error
, Res.Sch_ParEntityRefNesting, string.Empty );
1003
SendValidationEvent( curPos - notationName.Name.Length, XmlSeverityType.
Error
, Res.Sch_DupNotation, notationName.Name );
1048
SendValidationEvent( XmlSeverityType.
Error
, Res.Sch_ParEntityRefNesting, null );
1080
SendValidationEvent( curPos, XmlSeverityType.
Error
, Res.Sch_ParEntityRefNesting, string.Empty );
1102
SendValidationEvent( curPos, XmlSeverityType.
Error
, Res.Sch_ParEntityRefNesting, string.Empty );
1111
SendValidationEvent( curPos, XmlSeverityType.
Error
, Res.Sch_ParEntityRefNesting, string.Empty );
System\Xml\Schema\DtdValidator.cs (3)
460
eventHandling.SendEvent(e, XmlSeverityType.
Error
);
498
eventHandling.SendEvent(e, XmlSeverityType.
Error
);
512
eventHandling.SendEvent(e, XmlSeverityType.
Error
);
System\Xml\Schema\SchemaAttDef.cs (1)
205
validationEventHandling.SendEvent(new XmlSchemaException(Res.Sch_XmlSpace, string.Empty), XmlSeverityType.
Error
);
System\Xml\Schema\SchemaCollectionpreProcessor.cs (1)
207
SendValidationEventNoThrow(new XmlSchemaException(Res.Sch_CannotLoadSchema, new string[] {schemaLocation, e.Message}, e.SourceUri, e.LineNumber, e.LinePosition), XmlSeverityType.
Error
);
System\Xml\Schema\ValidationEventArgs.cs (1)
20
severity = XmlSeverityType.
Error
;
System\Xml\Schema\XdrBuilder.cs (2)
1575
SendValidationEvent(new XmlSchemaException(code, msg, this._reader.BaseURI, this.positionInfo.LineNumber, this.positionInfo.LinePosition), XmlSeverityType.
Error
);
1583
else if (severity == XmlSeverityType.
Error
) {
System\Xml\Schema\XdrValidator.cs (1)
293
SendValidationEvent(Res.Sch_CannotLoadSchema, new string[] {uri, e.Message}, XmlSeverityType.
Error
);
System\Xml\Schema\XmlSchemaSet.cs (5)
550
SendValidationEvent(new XmlSchemaException(Res.Sch_SchemaNotPreprocessed, string.Empty), XmlSeverityType.
Error
);
1067
SendValidationEvent(e, XmlSeverityType.
Error
);
1200
SendValidationEvent(new XmlSchemaException(Res.Sch_MismatchTargetNamespaceEx, new string[] { targetNamespace, schema.TargetNamespace }), XmlSeverityType.
Error
);
1328
SendValidationEvent(new XmlSchemaException(code,qname.ToString()), XmlSeverityType.
Error
);
1353
if (e.Severity == XmlSeverityType.
Error
) {
System\Xml\Schema\XmlSchemaValidator.cs (19)
311
SendValidationEvent(Res.Sch_ComponentAlreadySeenForNS, tns, XmlSeverityType.
Error
);
328
SendValidationEvent(Res.Sch_ComponentAlreadySeenForNS, tns, XmlSeverityType.
Error
);
1419
severity = XmlSeverityType.
Error
;
1697
SendValidationEvent(new XmlSchemaValidationException(Res.Sch_UndeclaredId, next.Id, this.sourceUriString, next.LineNo, next.LinePos), XmlSeverityType.
Error
);
2118
SendValidationEvent(eventHandler, sender, new XmlSchemaValidationException(Res.Sch_InvalidElementContentComplex, new string[] { BuildElementName(context.LocalName, context.Namespace), BuildElementName(name), Res.GetString(Res.Sch_ComplexContentModel) }, sourceUri, lineNo, linePos), XmlSeverityType.
Error
);
2121
SendValidationEvent(eventHandler, sender, new XmlSchemaValidationException(Res.Sch_InvalidElementContent, new string[] { BuildElementName(context.LocalName, context.Namespace), BuildElementName(name) }, sourceUri, lineNo, linePos), XmlSeverityType.
Error
);
2127
SendValidationEvent(eventHandler, sender, new XmlSchemaValidationException(Res.Sch_InvalidElementContentExpectingComplex, new string[] { BuildElementName(context.LocalName, context.Namespace), BuildElementName(name), PrintExpectedElements(names, getParticles), Res.GetString(Res.Sch_ComplexContentModel) }, sourceUri, lineNo, linePos), XmlSeverityType.
Error
);
2130
SendValidationEvent(eventHandler, sender, new XmlSchemaValidationException(Res.Sch_InvalidElementContentExpecting, new string[] { BuildElementName(context.LocalName, context.Namespace), BuildElementName(name), PrintExpectedElements(names, getParticles) }, sourceUri, lineNo, linePos), XmlSeverityType.
Error
);
2136
SendValidationEvent(eventHandler, sender, new XmlSchemaValidationException(Res.Sch_InvalidElementInEmptyEx, new string[] { QNameString(context.LocalName, context.Namespace), name.ToString() }, sourceUri, lineNo, linePos), XmlSeverityType.
Error
);
2139
SendValidationEvent(eventHandler, sender, new XmlSchemaValidationException(Res.Sch_InvalidElementInTextOnlyEx, new string[] { QNameString(context.LocalName, context.Namespace), name.ToString() }, sourceUri, lineNo, linePos), XmlSeverityType.
Error
);
2159
SendValidationEvent(eventHandler, sender, new XmlSchemaValidationException(Res.Sch_IncompleteContentComplex, new string[] { BuildElementName(context.LocalName, context.Namespace), Res.GetString(Res.Sch_ComplexContentModel) }, sourceUri, lineNo, linePos), XmlSeverityType.
Error
);
2161
SendValidationEvent(eventHandler, sender, new XmlSchemaValidationException(Res.Sch_IncompleteContent, BuildElementName(context.LocalName, context.Namespace), sourceUri, lineNo, linePos), XmlSeverityType.
Error
);
2166
SendValidationEvent(eventHandler, sender, new XmlSchemaValidationException(Res.Sch_IncompleteContentExpectingComplex, new string[] { BuildElementName(context.LocalName, context.Namespace), PrintExpectedElements(names, getParticles), Res.GetString(Res.Sch_ComplexContentModel) }, sourceUri, lineNo, linePos), XmlSeverityType.
Error
);
2169
SendValidationEvent(eventHandler, sender, new XmlSchemaValidationException(Res.Sch_IncompleteContentExpecting, new string[] { BuildElementName(context.LocalName, context.Namespace), PrintExpectedElements(names, getParticles) }, sourceUri, lineNo, linePos), XmlSeverityType.
Error
);
2350
SendValidationEvent(new XmlSchemaValidationException(code, args, innerException, sourceUriString, positionInfo.LineNumber, positionInfo.LinePosition), XmlSeverityType.
Error
);
2354
SendValidationEvent(e, XmlSeverityType.
Error
);
2358
SendValidationEvent(new XmlSchemaValidationException(e.GetRes,e.Args,e.SourceUri,e.LineNumber,e.LinePosition), XmlSeverityType.
Error
);
2369
if (severity == XmlSeverityType.
Error
) {
2390
else if (severity == XmlSeverityType.
Error
) {
System\Xml\Schema\XsdBuilder.cs (3)
724
SendValidationEvent(Res.Sch_InvalidXsdAttributeDatatypeValue, new string[] {name, e.Message},XmlSeverityType.
Error
);
2342
else if (severity == XmlSeverityType.
Error
) {
2348
SendValidationEvent(e, XmlSeverityType.
Error
);
System\Xml\Schema\XsdValidator.cs (2)
146
SendValidationEvent(Res.Sch_CannotLoadSchema, new string[] {BaseUri.AbsoluteUri, e.Message}, XmlSeverityType.
Error
);
506
SendValidationEvent(Res.Sch_CannotLoadSchema, new string[] {uri, e.Message}, XmlSeverityType.
Error
);
System\Xml\Serialization\Mappings.cs (1)
1070
if (args.Severity == XmlSeverityType.
Error
)
System\Xml\Serialization\XmlReflectionImporter.cs (1)
512
if (args.Severity == XmlSeverityType.
Error
)
System\Xml\XPath\XPathNavigator.cs (2)
963
if ( args.Severity == XmlSeverityType.
Error
)
972
else if (exception != null && args.Severity == XmlSeverityType.
Error
) {
System.Xml.Linq (1)
System\Xml\Linq\XNodeValidator.cs (1)
305
else if (e.Severity == XmlSeverityType.
Error
) {