Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

CompositionContractMismatchException when I open GitHubVS.sln directly #976

@jcansdale

Description

@jcansdale
  • GitHub Extension for Visual Studio version: 2.2.1.0 (experimental)
  • Visual Studio version: 2015

What happened (with steps, logs and screenshots, if possible)

I opened the GitHubVS.sln and started experiencing random exceptions similar to this:

System.ComponentModel.Composition.CompositionContractMismatchException:
    Cannot cast the underlying exported value of type
    'Microsoft.VisualStudio.Composition.NetFxAdapters+MefV1ExportProvider+
      ComposablePartForExportFactory' to type 'Microsoft.TeamFoundation.Controls.ITeamExplorerSection'.
   at System.ComponentModel.Composition.ExportServices.CastExportedValue[T](ICompositionElement element, Object exportedValue)
   at System.ComponentModel.Composition.ReflectionModel.ExportFactoryCreator.LifetimeContext.GetExportLifetimeContextFromExport[T](Export export)
   at System.ComponentModel.Composition.ReflectionModel.ExportFactoryCreator.<>c__DisplayClass6_0`2.<CreateStronglyTypedExportFactoryOfTM>b__0()
   at System.ComponentModel.Composition.ExportFactory`1.CreateExport()
   at Microsoft.TeamFoundation.Controls.WPF.TeamExplorer.Framework.TeamExplorerSectionHost.Create()

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions