Hi guys, in one of my applications (Screen Shot) that I posted in the UtilityBank some users complain that after installing the application it gives an error. I should note that it happens with system that has windows with German version installed. Here is the error message translated from German:
The FullScreenModeHK-Property couldn't be created from its default value. Error message: No such requested value Ctrl."
The “FullScreenModeHK” app setting’s property is a type of System.Windows.Forms.Keys and it is for holding an application hotkey. Here is the entire error text:
It is obvious that the application or system fails to deserialize the key, but I can’t find out why and what should I do. The System.Windows.Forms.Keys type is selectable for the app settings property type but it fails to deserialize for windows with German versions.Code:Screen Shot Error Report Date: 30.06.2008 09:54:53 Type: System.ArgumentException Message: Die FullScreenModeHK-Eigenschaft konnte nicht aus ihrem Standardwert erstellt werden. Fehlermeldung: Der angeforderte Wert Ctrl konnte nicht gefunden werden. Source: System Stack Trace: bei System.Configuration.SettingsPropertyValue.Deserialize() bei System.Configuration.SettingsPropertyValue.get_PropertyValue() bei System.Configuration.SettingsBase.GetPropertyValueByName(String propertyName) bei System.Configuration.SettingsBase.get_Item(String propertyName) bei System.Configuration.ApplicationSettingsBase.GetPropertyValue(String propertyName) bei System.Configuration.ApplicationSettingsBase.get_Item(String propertyName) bei Screen_Shot.MenuForm.SetHotkeys() bei Screen_Shot.MenuForm.Form1_Load(Object sender, EventArgs e) bei System.EventHandler.Invoke(Object sender, EventArgs e) bei System.Windows.Forms.Form.OnLoad(EventArgs e) bei System.Windows.Forms.Form.OnCreateControl() bei System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible) bei System.Windows.Forms.Control.CreateControl() bei System.Windows.Forms.Control.WmShowWindow(Message& m) bei System.Windows.Forms.Control.WndProc(Message& m) bei System.Windows.Forms.ScrollableControl.WndProc(Message& m) bei System.Windows.Forms.ContainerControl.WndProc(Message& m) bei System.Windows.Forms.Form.WmShowWindow(Message& m) bei System.Windows.Forms.Form.WndProc(Message& m) bei System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) bei System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) bei System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Now, one way to fix this is to change the data type to integer and convert it back to keys type but is there a better way to fix this problem leaving the type as System.Windows.Forms.Keys?
Thanks in advance.




Reply With Quote