[Mono-bugs] [Bug 480297] New: "Unhandled Exception: System.InvalidOperationException: Visual Styles are not enabled" on program startup

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Feb 27 05:47:26 EST 2009


https://bugzilla.novell.com/show_bug.cgi?id=480297


           Summary: "Unhandled Exception:
                    System.InvalidOperationException: Visual Styles are
                    not enabled" on program startup
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.4.x
          Platform: x86-64
        OS/Version: openSUSE 11.1
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Windows.Forms
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: seeker.k at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


User-Agent:       Mozilla/5.0 (X11; U; Linux x86_64; ru; rv:1.9.0.6)
Gecko/2009012700 SUSE/3.0.6-0.1.2 Firefox/3.0.6

My program uses TreeGridView library
(http://blogs.msdn.com/markrideout/archive/2006/01/18/new-link-for-treegridview.aspx).
Here contains test samples. I build it on MonoDevelop 2.0 Beta1 (1.9.2). On MS
Windows XP it's work correctly. On Linux I get the following Exception:

Unhandled Exception: System.InvalidOperationException: Visual Styles are not
enabled.
  at System.Windows.Forms.VisualStyles.VisualStyleRenderer.SetParameters
(System.String className, Int32 part, Int32 state) [0x00000] 
  at System.Windows.Forms.VisualStyles.VisualStyleRenderer..ctor (System.String
className, Int32 part, Int32 state) [0x00000] 
  at System.Windows.Forms.VisualStyles.VisualStyleRenderer..ctor
(System.Windows.Forms.VisualStyles.VisualStyleElement element) [0x00000] 
  at AdvancedDataGridView.TreeGridView..ctor () [0x00000] 
  at (wrapper remoting-invoke-with-check)
AdvancedDataGridView.TreeGridView:.ctor ()
  at AdvancedDataGridView.Form1.InitializeComponent () [0x00000] 
  at AdvancedDataGridView.Form1..ctor () [0x00000] 
  at (wrapper remoting-invoke-with-check) AdvancedDataGridView.Form1:.ctor ()
  at AdvancedDataGridView.EntryPoint.Main () [0x00000] 

Reproducible: Always

Steps to Reproduce:
1. Load project
2. Build project
3. Run Test samples ("Simple Test App" or "TreeGridView Test App")
Actual Results:  
Unhandled Exception: System.InvalidOperationException: Visual Styles are not
enabled.
  at System.Windows.Forms.VisualStyles.VisualStyleRenderer.SetParameters
(System.String className, Int32 part, Int32 state) [0x00000] 
  at System.Windows.Forms.VisualStyles.VisualStyleRenderer..ctor (System.String
className, Int32 part, Int32 state) [0x00000] 
  at System.Windows.Forms.VisualStyles.VisualStyleRenderer..ctor
(System.Windows.Forms.VisualStyles.VisualStyleElement element) [0x00000] 
  at AdvancedDataGridView.TreeGridView..ctor () [0x00000] 
  at (wrapper remoting-invoke-with-check)
AdvancedDataGridView.TreeGridView:.ctor ()
  at AdvancedDataGridView.Form1.InitializeComponent () [0x00000] 
  at AdvancedDataGridView.Form1..ctor () [0x00000] 
  at (wrapper remoting-invoke-with-check) AdvancedDataGridView.Form1:.ctor ()
  at AdvancedDataGridView.EntryPoint.Main () [0x00000] 

Expected Results:  
The window with Grid.

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list