Cause 1: Typo in the manifest XML — 'standalone' is misspelled or has wrong attribute
What's actually happening here is the Windows side-by-side (SxS) loader is parsing the application manifest and hitting the <?xml?> processing instruction. The standalone attribute inside that PI can only take "yes" or "no" as values — and it must be spelled exactly standalone, lowercase, no hyphens, no extra characters.
The exact error code 0x000036F6 translates to ERROR_SXS_XML_E_INVALID_STANDALONE. The error message literally says: "The stand-alone attribute must have the value 'yes' or 'no'" — note that Microsoft's own error message uses a hyphen, but the actual attribute in XML is standalone (no hyphen). That mismatch has confused a lot of people. Don't trust the hyphen in the error text; the attribute name in the XML file is standalone.
This usually happens when someone hand-edited a manifest file, or a third-party installer patched it badly. I've seen this most often after running a game mod installer or a cracked DLL wrapper on Windows 10 22H2 and Windows 11 23H2.
Fix: Locate and repair the manifest file
- Find the application that's crashing. Right-click its shortcut → Open file location.
- Look for a
.manifestfile with the same base name as the .exe. Example: forgame.exe, look forgame.exe.manifestin the same folder. - Open the manifest with Notepad (or any text editor). Don't use Word or WordPad — they can add invisible BOM characters that break things.
- Look at the very first line. It should look like:
Or withstandalone="no". Both are valid. - Check for these common mistakes:
stand-alone="yes"— hyphen is wrongstandlone="yes"— missing 'a'stand alone="yes"— space is wrongstandalone=yes— missing quotes (must have double quotes)standalone="true"— must be 'yes' or 'no', not 'true' or 'false'
- Correct the attribute and save. Restart the application.
If you can't find a standalone .manifest file, the manifest might be embedded inside the .exe as a resource. That's trickier — you'll need a resource editor like Resource Hacker. But 90% of the time, it's an external manifest file.
Cause 2: Corrupted manifest from a failed update or disk write error
The reason Cause 1 is most common is that humans make typos. But sometimes the manifest file gets corrupted at the byte level — a power loss during a write, a failing hard drive, or a bad sector can flip a byte. In that case, the manifest might have looked correct when you opened it in Notepad, but the file on disk contains a null byte or a garbled character that the XML parser rejects.
Fix: Check file integrity and replace with a known-good copy
- Open Command Prompt as Administrator.
- Run
sfc /scannowto check system files. This won't touch third-party manifests, but it's worth ruling out system corruption. - If the manifest belongs to a program you installed, reinstall the program. The installer should overwrite the messy manifest with a clean one.
- Alternatively, download a fresh copy of the manifest from the software publisher's site — if they provide it separately.
I've also seen this happen when antivirus software (looking at you, McAfee) quarantines part of the manifest and leaves a stub file that's only half-written. In that case, disable real-time scanning temporarily, reinstall the app, then re-enable the AV.
Cause 3: Manifest references a missing or broken XML declaration entirely
Less common, but I've seen it: the manifest file starts with a blank line, or with a comment, before the <?xml?> declaration. XML standards are strict — the declaration must be the very first thing in the file. No BOM, no whitespace, no blank line before it.
Fix: Strip leading bytes
- Open the manifest in a hex editor (like HxD, free).
- Check the first three bytes. For UTF-8 without BOM, they should be
3C 3F 78— that's the ASCII for. If you seeEF BB BFat the start, that's a UTF-8 BOM. Some XML parsers choke on it. - If you see a BOM, delete those three bytes and save as UTF-8 without BOM.
- If the file starts with a newline (
0D 0Aor0A), delete those too.
This is rare, but when it hits, you'll pull your hair out because Notepad shows the file looking fine — the BOM is invisible in most editors.
Quick-reference summary table
| Cause | Diagnosis | Fix |
|---|---|---|
| Typo in standalone attribute | Open manifest in text editor, inspect first line | Correct to standalone="yes" or standalone="no" |
| Corrupted file from bad write | Check file size vs expected size; run sfc /scannow | Reinstall app or restore from backup |
| BOM or leading junk bytes | Open in hex editor, check first 3 bytes | Delete BOM/whitespace, save as UTF-8 without BOM |