Troubleshooting
Introduction
This page provides troubleshooting steps you can perform when content is not loading properly.
Delete Bin/Obj
By default, Gum projects copy content to the bin folder if the content is newer in source. If a file somehow becomes newer (such as by copy/pate, or reverting) in the bin folder, then the source fill will not get copied over.
You can delete bin/obj folders and re-build your project to verify that content is loading correctly. Alternatively you can try loading the .gumj file that is in the bin folder to see if it visually matches the content in source.
Debugger Breaks on FileNotFoundException for GumCommon.XmlSerializers
When you call GumUI.Initialize with an XML project (.gumx), the debugger may stop with a System.IO.FileNotFoundException saying it could not load GumCommon.XmlSerializers. Your project is not broken, and you do not need to add that file.
.NET's XmlSerializer first looks for a pre-generated serializer assembly named <Assembly>.XmlSerializers.dll. Gum does not ship one, so the lookup fails, .NET catches the exception itself, and it generates the serializer at runtime instead. The exception only appears because the debugger is set to break when it is thrown.
To get past it, press Continue (F5). To stop it from appearing, uncheck Break when this exception type is thrown in the exception popup.
If the project still does not load after you continue, the problem is a different exception. Check the next one the debugger reports.
Clearing Browser Cache (Web)
On web targets (KNI BlazorGL and other WebAssembly hosts), the browser may serve a cached copy of your .gumj project and its files. If your content looks out of date even though the source has changed, the browser cache is a likely culprit. Performing a hard refresh or clearing the browser cache makes sure you are loading the current .gumj file rather than a stale cached version.
Last updated
Was this helpful?

