Skip to content

Instantly share code, notes, and snippets.

@atin360
Created July 31, 2013 06:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save atin360/859541b9cd4441360e51 to your computer and use it in GitHub Desktop.
Save atin360/859541b9cd4441360e51 to your computer and use it in GitHub Desktop.
System.InvalidCastException: Unable to cast object of type 'System.Reflection.RuntimeMethodInfo' to type 'System.Reflection.ConstructorInfo'.
at System.ComponentModel.Composition.Caching.AttributedModel.ReflectionCacheServices.<>c__DisplayClassf.<GetParameterFromCache>b__e()
at System.Lazy`1.CreateValue()
at System.Lazy`1.LazyInitValue()
at System.Lazy`1.get_Value()
at Microsoft.Internal.LazyServices.GetNotNullValue[T](Lazy`1 lazy, String argument)
at System.ComponentModel.Composition.ReflectionModel.ReflectionParameterImportDefinition.ToImportingItem()
at System.ComponentModel.Composition.ReflectionModel.ReflectionComposablePart.GetImportingItem(ImportDefinition definition)
at System.ComponentModel.Composition.ReflectionModel.ReflectionComposablePart.GetImportingItemFromDefinition(ImportDefinition definition)
at System.ComponentModel.Composition.ReflectionModel.ReflectionComposablePart.SetImport(ImportDefinition definition, IEnumerable`1 exports)
at System.ComponentModel.Composition.Hosting.ImportEngine.PartManager.TrySetImport(ImportDefinition import, Export[] exports)
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.CompositionServices.GetExportedValueFromComposedPart(ImportEngine engine, ComposablePart part, ExportDefinition definition)
at System.ComponentModel.Composition.Hosting.CatalogExportProvider.GetExportedValue(CatalogPart part, ExportDefinition export, Boolean isSharedPart)
at System.ComponentModel.Composition.Hosting.CatalogExportProvider.CatalogExport.GetExportedValueCore()
at System.ComponentModel.Composition.Primitives.Export.get_Value()
at System.ComponentModel.Composition.ExportServices.GetCastedExportedValue[T](Export export)
at System.ComponentModel.Composition.ExportServices.<>c__DisplayClass4`2.<CreateStronglyTypedLazyOfTM>b__1()
at System.Lazy`1.CreateValue()
at System.Lazy`1.LazyInitValue()
at System.Lazy`1.get_Value()
at Mono.VisualStudio.Extension.Commands.CommandManager.AddAll(IServiceProvider owningPackage)
at Mono.Android.VisualStudio.MonoAndroidPackage.Initialize()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment