Monitor Profile Switcher Won’t Launch: Fix the XML Error
You click the tray app and nothing opens — or it dies immediately with an XML error. When Monitor Profile Switcher fails at launch, the profiles are usually innocent: its own settings file is corrupt. Here is how to find it, back it up and reset it without losing more than a few minutes.
Why a Corrupt Settings File Stops the App Cold
Monitor Profile Switcher stores its own configuration — window behaviour, hotkeys and related state — in an XML file called Settings.xml, separate from your display profiles. If the PC loses power or crashes while the app is writing that file, the write can be cut off mid-stream and leave a truncated file behind (in the classic report of this issue, the file ends up filled with null bytes). On the next launch the app tries to parse the file, the parse fails, and the app exits before the tray icon ever appears. An XML error at startup is the signature of this failure.
Step 1: Find the Right Folder (There Are Two Candidates)
Be careful here, because two similar-looking folders are involved and the web is full of instructions that mix them up:
%USERPROFILE%\AppData\Roaming\MonitorSwitcher\— this is where your display profiles live, in itsProfilessubfolder (for exampleProfiles\Gaming.xml). This is the path the project’s own wiki uses in its examples.%AppData%\MonitorProfileSwitcher\— the folder our troubleshooting hub points to forSettings.xmland theMonitorSwitcher.logfile.
Don’t guess: paste each path into the File Explorer address bar and look inside. The right folder for this fix is the one that actually contains a file named Settings.xml. While you’re there, leave the Profiles folder alone — deleting it would throw away every profile you’ve saved.
Step 2: Back Up, Delete, Relaunch
- Close the app fully. Check Task Manager and end any
MonitorSwitcherGUI.exeorMonitorSwitcher.exeprocess, so nothing rewrites the file while you work. - Back up the corrupt file. Copy
Settings.xmlto your Desktop (or rename it toSettings.xml.bakin place). If the diagnosis turns out wrong, you can put it back. - Delete the original from the app-data folder.
- Relaunch MonitorSwitcherGUI.exe. With no settings file to parse, the app starts with clean defaults and writes a fresh one.
- Rebuild what the reset forgot. Re-assign your profile hotkeys, and if a profile itself misbehaves, re-save it once from the tray. Your display profiles were never in the deleted file — but if a profile XML got corrupted the same way, the same back-up-and-delete treatment applies to that one file in the
Profilesfolder, after which you re-create just that profile.
What does the reset actually cost you? Only the app’s own preferences: things like your assigned hotkeys and tray behaviour return to defaults. Your display profiles — the valuable part — sit untouched in the Profiles folder, which is why this fix is safe to try early instead of as a last resort. If the app launches after the reset, re-assign hotkeys (the hotkey guide shows the assignment flow) and you are done.
One related trap: an XML error can also appear when a single profile file is the corrupt one and the app trips over it while listing profiles. The symptom differs — the app opens, then errors when the tray menu is built or the profile is selected — and the remedy is the same back-up-and-delete, applied to that one file in the Profiles folder instead.
Settings File or Profile File? How to Tell
- The app won’t start at all, or dies before the tray icon appears → the settings file (this page’s fix).
- The app starts fine, but one profile errors or applies nonsense → that profile’s XML. Back it up, delete just that file from the Profiles folder, and re-create the profile.
- The app starts and profiles load, but to the wrong screens → not corruption at all: the hardware IDs changed. That’s the ‘Failed to load profile’ family of problems.
One more possibility to rule out before deleting anything: if the app starts but immediately exits only when launched at logon, your autostart shortcut may point at a moved folder. The project wiki notes the GUI has to sit in the same directory as MonitorSwitcher.exe — if you moved one file without the other, put them back together.
If It Still Won’t Launch
- Check the log. The app writes a
MonitorSwitcher.login its app-data folder; open it in Notepad and look for the exception name (our hub’s Advanced Debugging section shows what to look for). - Run the CLI with -debug.
MonitorSwitcher.exe -debug -load:Profile.xmlfrom a command prompt prints what the GUI would hide; the command-line guide documents the syntax. - Re-extract a clean copy. The tool is portable — download v0.7.0.0 again from the download page, unzip it somewhere fresh, and point it at the same Profiles folder. No installer state is involved.
- Confirm .NET is healthy. The app needs .NET Framework 4.0 (per the project wiki); a broken framework install shows up as launch failures across many small utilities, not just this one.
Prevention
Once everything works, copy the whole app-data folder (both candidates above) to a backup location. That one copy contains your settings and, in the Profiles subfolder, every display profile — restoring after a reinstall or a corruption like this becomes a file copy instead of an afternoon of re-configuration. Our Windows 11 guide covers the profile backup routine in more detail.
Keep Going
- ‘Failed to load profile’ — the other classic failure — profiles that exist but won’t apply
- Troubleshooting hub — every MPS failure mode in one index
- Download Monitor Profile Switcher — a clean portable copy of v0.7.0.0
