This is a migrated thread and some comments may be shown as answers.

RibbonBar - FileNotFoundException

2 Answers 233 Views
RibbonBar
This is a migrated thread and some comments may be shown as answers.
GlenP
Top achievements
Rank 1
GlenP asked on 01 Dec 2006, 05:40 AM
Hi,

When I create a new project, add the Telerik references, and then put a Ribbon bar on my main form and run the program I get an exception throw when the QuickAccessMenuHeight is set (designer generator code).  The exception and a stack trace are below.  What am I missing?

Thanks



"A first chance exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll

Additional information: Could not load file or assembly 'Telerik.WinControls.XmlSerializers, Version=1.0.1.0, Culture=neutral, PublicKeyToken=5bb2a467cbec794e' or one of its dependencies. The system cannot find the file specified.
"

     mscorlib.dll!System.Reflection.Assembly.InternalLoad(System.Reflection.AssemblyName assemblyRef, System.Security.Policy.Evidence assemblySecurity, ref System.Threading.StackCrawlMark stackMark, bool forIntrospection) + 0xd4 bytes   
     mscorlib.dll!System.Reflection.Assembly.Load(System.Reflection.AssemblyName assemblyRef) + 0x1a bytes   
     System.Xml.dll!System.Xml.Serialization.TempAssembly.LoadGeneratedAssembly(System.Type type = {Name = "XmlTheme" FullName = "Telerik.WinControls.XmlTheme"}, string defaultNamespace = null, out System.Xml.Serialization.XmlSerializerImplementation contract = null) + 0xb0 bytes   
     System.Xml.dll!System.Xml.Serialization.XmlSerializer.XmlSerializer(System.Type type = {Name = "XmlTheme" FullName = "Telerik.WinControls.XmlTheme"}, string defaultNamespace = null) + 0x111 bytes   
     System.Xml.dll!System.Xml.Serialization.XmlSerializer.XmlSerializer(System.Type type) + 0x7 bytes   
     Telerik.WinControls.dll!Telerik.WinControls.ThemeSource.ReloadThemeFromStorage() + 0x26e bytes   
     Telerik.WinControls.dll!Telerik.WinControls.ThemeSource.OnThemeLocationChanged(Telerik.WinControls.RadPropertyChangedEventArgs e) + 0x37 bytes   
     Telerik.WinControls.dll!Telerik.WinControls.ThemeSource.OnThemeLocationChanged(Telerik.WinControls.RadObject d, Telerik.WinControls.RadPropertyChangedEventArgs e) + 0x3e bytes   
     Telerik.WinControls.dll!Telerik.WinControls.RadObject.OnPropertyChanged(Telerik.WinControls.RadPropertyChangedEventArgs e) + 0x53 bytes   
     Telerik.WinControls.dll!Telerik.WinControls.RadObject.UpdateEffectiveValue(Telerik.WinControls.RadProperty dp = {Telerik.WinControls.RadProperty}, Telerik.WinControls.RadPropertyMetadata metadata, bool isCoerceValue, bool isOldValueValid, object oldValue, Telerik.WinControls.ValueSource oldValueSource, bool oldValueIsDeferred, bool coerceWithDeferredReference) + 0x34c bytes   
     Telerik.WinControls.dll!Telerik.WinControls.RadObject.SetValueCommon(Telerik.WinControls.RadProperty dp, object value = "Telerik.WinControls.UI.Resources.RibbonBarThemes.Telerik.xml", Telerik.WinControls.RadPropertyMetadata metadata, bool coerceWithDeferredReference) + 0x2e7 bytes   
     Telerik.WinControls.dll!Telerik.WinControls.RadObject.SetValue(Telerik.WinControls.RadProperty dp, object value) + 0x54 bytes   
     Telerik.WinControls.dll!Telerik.WinControls.ThemeSource.ThemeLocation.set(string value) + 0x2f bytes   
     Telerik.WinControls.dll!Telerik.WinControls.ThemeResolutionService.RegisterThemeFromStorage(Telerik.WinControls.ThemeStorageType storageType, string themeLocation) + 0x50 bytes   
     Telerik.WinControls.UI.dll!Telerik.WinControls.UI.RadRibbonBarElement.RadRibbonBarElement() + 0x71 bytes   
     [Native to Managed Transition]   
     [Managed to Native Transition]   
     Telerik.WinControls.UI.dll!Telerik.WinControls.UI.RadRibbonBar.CreateChildItems(Telerik.WinControls.RadElement parent) + 0x20 bytes   
     Telerik.WinControls.dll!Telerik.WinControls.RadControl.EnsureChildItems() + 0x62 bytes   
     Telerik.WinControls.UI.dll!Telerik.WinControls.UI.RadRibbonBar.QuickAccessMenuHeight.set(int value = 20) + 0xd bytes   

2 Answers, 1 is accepted

Sort by
0
Chris
Telerik team
answered on 01 Dec 2006, 12:30 PM
Hi Glen,
We tried to reproduce this problem and we couldn't. Could you please give us some more information about whether you set some additional properties (except the QuickAccessMenuHeight property). Are you trying to run the RibbonBar control with some of its default themes or you have created a custom theme?
Thanks in advance for helping us find the problem.

All the best,
Chris
the telerik team
0
GlenP
Top achievements
Rank 1
answered on 03 Dec 2006, 04:37 AM
Hi Chris,

I reinstalled the rad controls from the setup. I no longer have the problem.
I tried a few things that I thought might have been the cause of the problem but I am no longer able to reproduce it.

If it happens again I will let you know.

Thanks
Glen
Tags
RibbonBar
Asked by
GlenP
Top achievements
Rank 1
Answers by
Chris
Telerik team
GlenP
Top achievements
Rank 1
Share this question
or