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

[Solved] Unable to load one or more of the requested types

2 Answers 570 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Alexander
Top achievements
Rank 1
Alexander asked on 02 Feb 2011, 02:03 PM
Hello.
When I try to open context menu on the RadRichTextBox the exception occurs:

System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information. 
   at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module) 
   at System.Reflection.RuntimeModule.GetTypes() 
   at System.Reflection.Assembly.GetTypes() 
   at System.ComponentModel.Composition.Hosting.AssemblyCatalog.get_InnerCatalog() 
   at System.ComponentModel.Composition.Hosting.AssemblyCatalog.GetExports(ImportDefinition definition) 
   at System.ComponentModel.Composition.Hosting.AggregateCatalog.GetExports(ImportDefinition definition) 
   at System.ComponentModel.Composition.Hosting.CatalogExportProvider.GetExportsCore(ImportDefinition definition, AtomicComposition atomicComposition) 
   at System.ComponentModel.Composition.Hosting.ExportProvider.TryGetExportsCore(ImportDefinition definition, AtomicComposition atomicComposition, IEnumerable`1& exports) 
   at System.ComponentModel.Composition.Hosting.ExportProvider.GetExports(ImportDefinition definition, AtomicComposition atomicComposition) 
   at System.ComponentModel.Composition.Hosting.AggregateExportProvider.GetExportsCore(ImportDefinition definition, AtomicComposition atomicComposition) 
   at System.ComponentModel.Composition.Hosting.ExportProvider.TryGetExportsCore(ImportDefinition definition, AtomicComposition atomicComposition, IEnumerable`1& exports) 
   at System.ComponentModel.Composition.Hosting.ExportProvider.TryGetExports(ImportDefinition definition, AtomicComposition atomicComposition, IEnumerable`1& exports) 
   at System.ComponentModel.Composition.Hosting.CompositionContainer.GetExportsCore(ImportDefinition definition, AtomicComposition atomicComposition) 
   at System.ComponentModel.Composition.Hosting.ExportProvider.TryGetExportsCore(ImportDefinition definition, AtomicComposition atomicComposition, IEnumerable`1& exports) 
   at System.ComponentModel.Composition.Hosting.ExportProvider.GetExports(ImportDefinition definition, AtomicComposition atomicComposition) 
   at System.ComponentModel.Composition.Hosting.ImportEngine.TryGetExports(ExportProvider provider, ComposablePart part, ImportDefinition definition, AtomicComposition atomicComposition) 
   at System.ComponentModel.Composition.Hosting.ImportEngine.TrySatisfyImportSubset(PartManager partManager, IEnumerable`1 imports, AtomicComposition atomicComposition) 
   at System.ComponentModel.Composition.Hosting.ImportEngine.TrySatisfyImportsStateMachine(PartManager partManager, ComposablePart part) 
   at System.ComponentModel.Composition.Hosting.ImportEngine.TrySatisfyImports(PartManager partManager, ComposablePart part, Boolean shouldTrackImports) 
   at System.ComponentModel.Composition.Hosting.ImportEngine.SatisfyImports(ComposablePart part) 
   at System.ComponentModel.Composition.Hosting.ComposablePartExportProvider.<>c__DisplayClass2.<Compose>b__0() 
   at System.ComponentModel.Composition.Hosting.CompositionServices.TryInvoke(Action action) 
   at System.ComponentModel.Composition.Hosting.ComposablePartExportProvider.Compose(CompositionBatch batch) 
   at System.ComponentModel.Composition.Hosting.CompositionContainer.Compose(CompositionBatch batch) 
   at System.ComponentModel.Composition.CompositionInitializer.SatisfyImports(ComposablePart part) 
   at System.ComponentModel.Composition.CompositionInitializer.SatisfyImports(Object attributedPart) 
   at Telerik.Windows.Documents.UI.Extensibility.UIExtensibilityManager.GetContextMenu() 
   at Telerik.Windows.Documents.UI.DocumentPresenterBase.Owner_MouseRightButtonUp(Object sender, MouseButtonEventArgs e) 
   at MS.Internal.CoreInvokeHandler.InvokeEventHandler(Int32 typeIndex, Delegate handlerDelegate, Object sender, Object args) 
   at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, String eventName)

What can I do wrong? Thank you in advance.

2 Answers, 1 is accepted

Sort by
0
Iva Toteva
Telerik team
answered on 03 Feb 2011, 10:24 AM
Hello Alexander,

Please refer to this forum thread, which deals with the same problem. It is mainly an assembly references issue - you need to make sure you have referenced all necessary DLLs from one and the same version.
Sometimes, cleaning the solution or even deleting the obj and bin folders is also needed. We will do our best for find workaround for this MEF exception for the next release.
If the problem persists, do not hesitate to contact us again.

Greetings,
Iva
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
0
Alexander
Top achievements
Rank 1
answered on 03 Feb 2011, 02:09 PM
Iva, Thanks.
It was our problem with references to standard Silverlight libraries.
Tags
RichTextBox
Asked by
Alexander
Top achievements
Rank 1
Answers by
Iva Toteva
Telerik team
Alexander
Top achievements
Rank 1
Share this question
or