Icon="pack://siteoforigin:,,,/Resources/runtime-icon.ico"
The exception means that WPF could not load or locate theicon file when parsing the XAML.
Check if file exists in same folder as your EXE
The file is not embeded in the assembly.
Maybe you used Copy to Output Directory → Copy always (or “Copy if newer”)