Windows System Software -- Consulting, Training, Development -- Unique Expertise, Guaranteed Results

Before Posting... Please check out the Community Guidelines in the
Announcements and Administration Category, below.

SDV fails at build step with default KMDF example project (VS2017)

John_Smith-5John_Smith-5 Posts: 2
The error log is as follows:

staticdv /check /devenv
SDV: C:\Program Files (x86)\Windows Kits\10\TOOLS\SDV
SMV: C:\Program Files (x86)\Windows Kits\10\TOOLS\SDV\smv
SDVAP: C:\Program Files (x86)\Windows Kits\10\TOOLS\SDV\smv\analysisplugins\sdv
Build environment: msbuild
[INFO] Cleaning ...
[INFO] Setting interceptor platform to x64
[INFO] Setting platform to x86_amd64
[INFO] Validating XML against schema: C:\Program Files (x86)\Windows Kits\10\TOOLS\SDV\smv\bin\Config.xsd

Unhandled Exception: System.Xml.Schema.XmlSchemaValidationException: The '' attribute is not declared.
at System.Xml.Schema.XmlSchemaValidator.SendValidationEvent(XmlSchemaValidationException e, XmlSeverityType severity)
at System.Xml.Schema.XmlSchemaValidator.SendValidationEvent(XmlSchemaException e)
at System.Xml.Schema.XmlSchemaValidator.RecompileSchemaSet()
at System.Xml.Schema.XmlSchemaValidator.Init()
at System.Xml.Schema.XmlSchemaValidator..ctor(XmlNameTable nameTable, XmlSchemaSet schemas, IXmlNamespaceResolver namespaceResolver, XmlSchemaValidationFlags validationFlags)
at System.Xml.XsdValidatingReader.SetupValidator(XmlReaderSettings readerSettings, XmlReader reader, XmlSchemaObject partialValidationType)
at System.Xml.XsdValidatingReader..ctor(XmlReader reader, XmlResolver xmlResolver, XmlReaderSettings readerSettings, XmlSchemaObject partialValidationType)
at System.Xml.XmlReaderSettings.AddValidation(XmlReader reader)
at System.Xml.XmlReaderSettings.CreateReader(TextReader input, String baseUriString, XmlParserContext inputContext)
at System.Xml.XmlReader.Create(TextReader input, XmlReaderSettings settings, String baseUri)
at System.Xml.XmlReader.Create(TextReader input, XmlReaderSettings settings)
at SmvLibrary.Utility.ValidateXmlFile(String schemaPath, TextReader configFile)
at SmvLibrary.Utility.GetSMVConfig()
at SmvSkeleton.Program.Main(String[] args)


  • Hi John,

    This is a known issue with SDV we're looking at. The best solution is to ensure the computer you're running SDV on has an open internet connection.

    If that's not possible for whatever reason, please download locally and update C:\Program Files (x86)\Windows Kits\10\TOOLS\SDV\smv\bin\Config.xsd to point to your local copy.

  • Yep, that's fixed it, thanks
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!