Professional UI Solutions
Site Map   /  Register


Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Elegant Ribbon Tech Support » Strange error on my first simple ui. Collapse All
Subject Author Date
skylar wheaton Apr 19, 2009 - 6:29 PM

Basically all im trying to do is create a simple window and fill it with some components, but im getting weird errors when all im trying to do is construct my lables and buttons...

so i delcared my first lable,

 private Elegant.Ui.Label label37;


then in my constructor method i am trying to construct it like this.


this.label37 = new Elegant.Ui.Label();

but strangly enough im getting this weird error

’System.TypeInitializationException’ occurred in Elegant.Ui.Common.dll 

The type initializer for ’Elegant.Ui.Control’ threw an exception.

i honestly dont understand what is going wrong....


Petros Petrou Aug 27, 2009 - 5:45 AM


You need to add References to the following too. I had the same problem and it resolved by doing this.

Elegant.Ui.Common.Theme.XXX, Elegant.Ui.Ribbon.Theme.XXX


Technical Support Apr 23, 2009 - 5:50 AM

It looks like the component cannot find an assembly with a theme. Make sure that all needed Elegant.Ui.Common.Theme.XXX and Elegant.Ui.Ribbon.Theme.XXX assemblies are installed to the GAC or available in the application directory. If you still have the problem, please, send us a detailed description about the type of exception and error message(any inner exception is also important).

Michael Dausmann Apr 20, 2009 - 6:37 AM

Odd, I tried same and had no problem Ill put down my steps so theres no confusion.....

1) Installed Elegant Ribbon (includes elegant.ui.common  i’m using 3.1)

2) New - Windows forms application (I’m using vs2008 but 2005 should be ok.. 2003 does not work btw)

3) add reference to Elegant.Ui.Common

4) Modify form1 code as follows

      public partial class Form1 : Form


        private Elegant.Ui.Label label37;

        public Form1()


            this.label37 = new Elegant.Ui.Label();

            this.label37.Text = "Hello Elegant.Ui";





 Sorry i can’t be more help, mebe post some more info about your error.