0X000036D5

SXS XML_E_MISSINGWHITESPACE 0x000036D5 Fix

Quick fix: re-encode the manifest UTF-16 BOM file. This error means a space is missing between attributes in a side-by-side manifest XML. Happens with badly encoded files.

Quick answer

Re-encode the manifest file as UTF-8 without BOM, or manually insert the missing whitespace between attributes in the XML.

What's happening here

You're seeing ERROR_SXS_XML_E_MISSINGWHITESPACE (0x000036D5) when Windows tries to load a side-by-side (SxS) assembly manifest. The SxS manifest parser, part of the Windows kernel-level activation context system, found two XML attributes smashed together with no space between them. The XML spec requires whitespace (space, tab, newline) between attributes. The parser stops dead and throws this error.

The real trigger? Most of the time it's an encoding corruption. A manifest file saved with UTF-16 BOM (Byte Order Mark) gets its whitespace bytes mangled — the BOM hides at the start, and the parser sees a character that isn't a valid space. But the root cause is almost always a tool that saved the manifest with the wrong encoding. I've also seen this from copy-pasting manifest content from a web page where HTML entities replaced spaces with non-breaking spaces (U+00A0).

Fix steps

  1. Locate the manifest file. Look for app.manifest or a file like yourapp.exe.manifest in the same folder as the failing executable. If it's a system-level assembly, check C:\Windows\WinSxS\Manifests\ — but be careful, messing with those can break Windows.
  2. Identify the encoding. Open the file in Notepad++. Look at the bottom-right corner. If it says UCS-2 LE BOM or UTF-16 LE BOM, that's your problem. A hex dump will show FF FE at byte 0.
  3. Re-encode to UTF-8 without BOM. In Notepad++, go to Encoding menu > Convert to UTF-8 without BOM. Save the file. This fixes the mangled whitespace issue because the UTF-16 BOM can confuse the SxS parser's whitespace detection.
  4. If the error persists, manually check for whitespace. Search for patterns like attribute1=\"value1\"attribute2=\"value2\". Insert a space between \" and attribute2. The parser literally expects a space character (0x20) there.
  5. Rebuild the manifest from scratch. If neither works, delete the manifest and regenerate it. Use Visual Studio's mt.exe: mt.exe -manifest your.dll.manifest -outputresource:your.dll;#1. The tool generates proper whitespace.

Alternatives if the main fix fails

Try a different editor. Notepad might have inserted its own BOM. Use VS Code with the Hex Editor extension. Check if any non-ASCII whitespace characters (U+00A0, U+200B) are present. Replace them with regular spaces (U+0020).

Check for hidden characters in attribute values. The error message says "missing whitespace" but the problem could be an extra character that broke the parser. Run this PowerShell snippet to inspect the raw bytes:

Get-Content app.manifest -Encoding Byte | Format-Hex

Look for FF FE at the start (UTF-16 BOM) or any byte > 0x7F in the attribute area. Replace those with plain ASCII spaces.

If the manifest came from a system assembly, you might have a corrupted Windows component. Run sfc /scannow and DISM /Online /Cleanup-Image /RestoreHealth to restore the original manifest.

Prevention tip

Always save manifest files as UTF-8 without BOM. If you're using Visual Studio, check the project properties: under Application > Manifest, make sure it's set to "Create application without a manifest" and embed the manifest via a resource file. That way the compiler handles encoding correctly. Never copy-paste manifest XML from a web page into a text editor — the whitespace gets mangled every time.

Related Errors in Windows Errors
0XC00D1099 Fix 0XC00D1099: WMP File Name Error in Minutes 0XC00D1520 NS_E_PUSH_DUPLICATE_PUBLISHING_POINT_NAME (0XC00D1520) Fix 0X80028016 Fix TYPE_E_BUFFERTOOSMALL (0X80028016) — Buffer too small 0XC000029B Fix STATUS_POLICY_ONLY_IN_DS (0xC000029B) in Windows

Was this solution helpful?

EP
Erropedia Team
Tech Support Editors
The Erropedia editorial team researches and documents real-world tech errors from across Windows, Linux, macOS, networking, databases, cloud platforms, and more. Every solution is reviewed for accuracy and updated as software and systems evolve.