Results 1 to 5 of 5

Thread: App Settings Problem

Threaded View

  1. #1

    Thread Starter
    PowerPoster VBDT's Avatar
    Join Date
    Sep 2005
    Location
    CA - USA
    Posts
    2,922

    App Settings Problem

    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:
    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)
    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.

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width