What does Windows error code 14068 (ERROR_SXS_XML_E_INVALIDSWITCH) mean?

 
Previous Next
ERROR_SXS_XML_E_INVALIDENCODING ERROR_SXS_XML_E_BADXMLCASE

ERROR_SXS_XML_E_INVALIDSWITCH

ERROR_SXS_XML_E_INVALIDSWITCH (0x000036F4) is a Windows Side-by-Side XML parser status for application, assembly, policy, or configuration manifest processing.

XML processors can inspect initial bytes and an encoding declaration, but the declaration does not magically transcode bytes that were written in another encoding. This status indicates that the parser cannot switch from the current detected decoding state to the specified encoding.

Parser boundary

The XML encoding declaration identifies the character encoding of the entity. The document bytes, byte-order mark when present, and declaration must describe a coherent representation; editing only the word after encoding= can make that relationship worse.

What to inspect

  • Examine the raw file encoding and byte-order mark with a tool that reports bytes rather than relying on an editor display.
  • Compare the declared encoding with the actual output encoding configured in the manifest generator or resource compiler.
  • When converting the file, rewrite the complete document in the target encoding and then update the declaration consistently.

Use sxstrace to identify the exact manifest because an application can load several manifests with different producers; test the traced file’s bytes and declaration together.

References


Looking for a different code? Search another status or error code.