jeffwilcox / wp-thememanager

Windows Phone ThemeManager allows for easy overriding of the Dark or Light themes
89 stars 26 forks source link

An exception of type 'System.InvalidOperationException' occurred in Unknown Module. and wasn't handled before a managed/native boundary #16

Open mrusme opened 10 years ago

mrusme commented 10 years ago

As soon as I'm adding those two lines in the public App(), right under InitializePhoneApplication(); I'm receiving the following output:

            ThemeManager.OverrideOptions = ThemeManagerOverrideOptions.SystemTrayColors;
            ThemeManager.SetCustomTheme(this.Resources.MergedDictionaries[0], Theme.Light);
An exception of type 'System.InvalidOperationException' occurred in Unknown Module. and wasn't handled before a managed/native boundary
An exception of type 'System.InvalidOperationException' occurred in System.Core.ni.dll and wasn't handled before a managed/native boundary
An exception of type 'System.InvalidOperationException' occurred in System.Core.ni.dll and wasn't handled before a managed/native boundary
An exception of type 'System.InvalidOperationException' occurred in Unknown Module. and wasn't handled before a managed/native boundary
An exception of type 'System.InvalidOperationException' occurred in System.Core.ni.dll and wasn't handled before a managed/native boundary
An exception of type 'System.InvalidOperationException' occurred in System.Core.ni.dll and wasn't handled before a managed/native boundary
An exception of type 'System.InvalidOperationException' occurred in System.Core.ni.dll and wasn't handled before a managed/native boundary
An exception of type 'System.InvalidOperationException' occurred in System.Core.ni.dll and wasn't handled before a managed/native boundary

I'm not sure what's happening there and actually everything seems to be working just fine, still those exceptions doesn't look "that good"...?

zzpbuaa commented 8 years ago

How do you resolved it?