I have a strange issue which I'm hoping someone knows how to fix...
I have a winforms custom control that uses the RadScheduler and RadCalender controls. I originally had a couple of the Office 2010 themes added to the project and these have been removed as the built in colors work just fine. As far as I can see I have removed all references to these themes.
My project copies the Telerik DLLs locally as the clients will not have the Telerik controls instaleld on them.
However, I have built my control in release mode in VS 2010 and copied all the files to a test client machine, and when my control comes to load, I get the following error, and the the application closes:
"The type initializer for 'Telerik.Controls.ThemeResolutionService' threw an exception"
I am doing a tiny bit of custom coloring on the calendar control, but nothing involving styles or themes. Only when I reset the control do I do anything that might call this. This section of code is shown below...
Can anyone tell me how I get around this, or have any suggestions as to what I could do to try to fix it? I've already searched for why this could be happening, but can't seem to find anything I haven't already tried.
sender, RenderElementEventArgs e)
e.Element.NumberOfColors = 1;
e.Element.BackColor = Color.Orange;
e.Element.BorderColor = Color.DarkBlue;