{"action":"created","issue":{"url":"https://api.github.com/repos/github/VisualStudio/issues/484","repository_url":"https://api.github.com/repos/github/VisualStudio","labels_url":"https://api.github.com/repos/github/VisualStudio/issues/484/labels{/name}","comments_url":"https://api.github.com/repos/github/VisualStudio/issues/484/comments","events_url":"https://api.github.com/repos/github/VisualStudio/issues/484/events","html_url":"https://github.com/github/VisualStudio/issues/484","id":170129077,"number":484,"title":"Microsoft.VisualStudio.Composition.CompositionFailedException","user":{"login":"cookston","id":2190792,"avatar_url":"https://avatars.githubusercontent.com/u/2190792?v=3","gravatar_id":"","url":"https://api.github.com/users/cookston","html_url":"https://github.com/cookston","followers_url":"https://api.github.com/users/cookston/followers","following_url":"https://api.github.com/users/cookston/following{/other_user}","gists_url":"https://api.github.com/users/cookston/gists{/gist_id}","starred_url":"https://api.github.com/users/cookston/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cookston/subscriptions","organizations_url":"https://api.github.com/users/cookston/orgs","repos_url":"https://api.github.com/users/cookston/repos","events_url":"https://api.github.com/users/cookston/events{/privacy}","received_events_url":"https://api.github.com/users/cookston/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/github/VisualStudio/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-08-09T10:06:49Z","updated_at":"2016-08-09T14:41:30Z","closed_at":null,"body":"Issue occurs regularly, perhaps once or twice day, an exception is displayed in Team Explorer when launching Visual Studio.\r\nCurrent workaround is to uninstall and re-install GitHub Extension (but currently having to do this often) Extension then works without problem for a few hours.\r\n\r\n![image](https://cloud.githubusercontent.com/assets/2190792/17512421/a4cd8f70-5e1f-11e6-9eae-5f856581be43.png)\r\n\r\n```\r\nMicrosoft.VisualStudio.Composition.CompositionFailedException: An exception was thrown while initializing part \"GitHub.VisualStudio.TeamExplorer.Connect.GitHubConnectSection0\". ---> System.Windows.Markup.XamlParseException: Set property 'GitHub.VisualStudio.Helpers.SharedDictionaryManager.Source' threw an exception. ---> System.IO.FileNotFoundException: Could not load file or assembly 'GitHub.UI, Culture=neutral' or one of its dependencies. The system cannot find the file specified.\r\n   at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)\r\n   at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)\r\n   at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)\r\n   at System.Reflection.Assembly.Load(AssemblyName assemblyRef)\r\n   at System.Windows.Navigation.BaseUriHelper.GetLoadedAssembly(String assemblyName, String assemblyVersion, String assemblyKey)\r\n   at MS.Internal.AppModel.ResourceContainer.GetResourceManagerWrapper(Uri uri, String& partName, Boolean& isContentFile)\r\n   at MS.Internal.AppModel.ResourceContainer.GetPartCore(Uri uri)\r\n   at System.IO.Packaging.Package.GetPartHelper(Uri partUri)\r\n   at System.IO.Packaging.Package.GetPart(Uri partUri)\r\n   at System.IO.Packaging.PackWebResponse.CachedResponse.GetResponseStream()\r\n   at System.IO.Packaging.PackWebResponse.GetResponseStream()\r\n   at System.IO.Packaging.PackWebResponse.get_ContentType()\r\n   at MS.Internal.WpfWebRequestHelper.GetContentType(WebResponse response)\r\n   at MS.Internal.WpfWebRequestHelper.GetResponseStream(WebRequest request, ContentType& contentType)\r\n   at System.Windows.ResourceDictionary.set_Source(Uri value)\r\n   at GitHub.VisualStudio.Helpers.SharedDictionaryManager.set_Source(Uri value) in Y:\\jenkins\\workspace\\GitHub for Visual Studio speakeasy jenkinskeep\\src\\common\\SharedDictionaryManager.cs:line 54\r\n   --- End of inner exception stack trace ---\r\n   at System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri)\r\n   at System.Windows.Markup.WpfXamlLoader.LoadBaml(XamlReader xamlReader, Boolean skipJournaledProperties, Object rootObject, XamlAccessLevel accessLevel, Uri baseUri)\r\n   at System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream)\r\n   at System.Windows.Application.LoadComponent(Object component, Uri resourceLocator)\r\n   at GitHub.VisualStudio.UI.Views.GitHubConnectContent.InitializeComponent() in Y:\\jenkins\\workspace\\GitHub for Visual Studio speakeasy jenkinskeep\\src\\GitHub.VisualStudio.UI\\UI\\Views\\GitHubConnectContent.xaml:line 1\r\n   at GitHub.VisualStudio.UI.Views.GitHubConnectContent..ctor() in Y:\\jenkins\\workspace\\GitHub for Visual Studio speakeasy jenkinskeep\\src\\GitHub.VisualStudio.UI\\UI\\Views\\GitHubConnectContent.xaml.cs:line 16\r\n   at GitHub.VisualStudio.TeamExplorer.Connect.GitHubConnectSection.OnPropertyChange(Object sender, PropertyChangedEventArgs e) in Y:\\jenkins\\workspace\\GitHub for Visual Studio speakeasy jenkinskeep\\src\\GitHub.TeamFoundation.14\\Connect\\GitHubConnectSection.cs:line 198\r\n   at GitHub.Primitives.NotificationAwareObject.RaisePropertyChanged(String propertyName) in Y:\\jenkins\\workspace\\GitHub for Visual Studio speakeasy jenkinskeep\\src\\GitHub.Exports\\Helpers\\NotificationAwareObject.cs:line 12\r\n   at GitHub.VisualStudio.Base.TeamExplorerItemBase.set_IsVisible(Boolean value) in Y:\\jenkins\\workspace\\GitHub for Visual Studio speakeasy jenkinskeep\\src\\GitHub.VisualStudio.UI\\Base\\TeamExplorerItemBase.cs:line 141\r\n   at GitHub.VisualStudio.TeamExplorer.Connect.GitHubConnectSection.Refresh(IConnection connection) in Y:\\jenkins\\workspace\\GitHub for Visual Studio speakeasy jenkinskeep\\src\\GitHub.TeamFoundation.14\\Connect\\GitHubConnectSection.cs:line 160\r\n   at GitHub.VisualStudio.TeamExplorer.Connect.GitHubConnectSection.UpdateConnection() in Y:\\jenkins\\workspace\\GitHub for Visual Studio speakeasy jenkinskeep\\src\\GitHub.TeamFoundation.14\\Connect\\GitHubConnectSection.cs:line 190\r\n   at GitHub.VisualStudio.TeamExplorer.Connect.GitHubConnectSection..ctor(ISimpleApiClientFactory apiFactory, ITeamExplorerServiceHolder holder, IConnectionManager manager, IPackageSettings packageSettings, Int32 index) in Y:\\jenkins\\workspace\\GitHub for Visual Studio speakeasy jenkinskeep\\src\\GitHub.TeamFoundation.14\\Connect\\GitHubConnectSection.cs:line 108\r\n   at GitHub.VisualStudio.TeamExplorer.Connect.GitHubConnectSection0..ctor(ISimpleApiClientFactory apiFactory, ITeamExplorerServiceHolder holder, IConnectionManager manager, IPackageSettings settings) in Y:\\jenkins\\workspace\\GitHub for Visual Studio speakeasy jenkinskeep\\src\\GitHub.TeamFoundation.14\\Connect\\GitHubConnectSection0.cs:line 21\r\n   --- End of inner exception stack trace ---\r\n   at Microsoft.VisualStudio.Composition.RuntimeExportProviderFactory.RuntimeExportProvider.RuntimePartLifecycleTracker.CreateValue()\r\n   at Microsoft.VisualStudio.Composition.ExportProvider.PartLifecycleTracker.Create()\r\n   at Microsoft.VisualStudio.Composition.ExportProvider.PartLifecycleTracker.MoveNext(PartLifecycleState nextState)\r\n   at Microsoft.VisualStudio.Composition.ExportProvider.PartLifecycleTracker.MoveToState(PartLifecycleState requiredState)\r\n   at Microsoft.VisualStudio.Composition.ExportProvider.PartLifecycleTracker.GetValueReadyToExpose()\r\n   at Microsoft.VisualStudio.Composition.ExportProvider.<>c__DisplayClass53_0.<CreateExport>b__0()\r\n   at Microsoft.VisualStudio.Composition.ExportProvider.<>c__DisplayClass55_0.<CreateExportFactoryExport>b__1()\r\n   at Microsoft.VisualStudio.Composition.ExportProvider.<>c__DisplayClass54_0.<CreateExportFactory>b__0()\r\n   at Microsoft.VisualStudio.Composition.DelegateServices.<>c__DisplayClass2_0`1.<As>b__0()\r\n   at System.ComponentModel.Composition.ExportFactory`1.CreateExport()\r\n   at Microsoft.VisualStudio.Composition.NetFxAdapters.MefV1ExportProvider.ComposablePartDefinitionForExportFactory.CreatePart()\r\n   at System.ComponentModel.Composition.ReflectionModel.ExportFactoryCreator.LifetimeContext.GetExportLifetimeContextFromExport[T](Export export)\r\n   at System.ComponentModel.Composition.ReflectionModel.ExportFactoryCreator.<>c__DisplayClass6_0`2.<CreateStronglyTypedExportFactoryOfTM>b__0()\r\n   at System.ComponentModel.Composition.ExportFactory`1.CreateExport()\r\n   at Microsoft.TeamFoundation.Controls.WPF.TeamExplorer.Framework.TeamExplorerSectionHost.Create()\r\n```\r\n\r\n\r\nVisual Studio 14.0.254.25.01 Update 3\r\n![image](https://cloud.githubusercontent.com/assets/2190792/17512561/4bb1967e-5e20-11e6-9f93-4b88d9de5066.png)\r\n\r\n\r\nGit Hub Extension\r\n1.0.18.6\r\n![image](https://cloud.githubusercontent.com/assets/2190792/17512489/f4e4c62c-5e1f-11e6-9c6f-0a97d9525f0e.png)\r\n\r\nLogs from:\r\n%appdata%\\Microsoft\\VisualStudio\\14.0\\ActivityLog.xml \r\n%localappdata%\\temp\\extension.log \r\n%localappdata%\\GitHubVisualStudio\\extension.log \r\n\r\n[logs.zip](https://github.com/github/VisualStudio/files/408670/logs.zip)\r\n"},"comment":{"url":"https://api.github.com/repos/github/VisualStudio/issues/comments/238574869","html_url":"https://github.com/github/VisualStudio/issues/484#issuecomment-238574869","issue_url":"https://api.github.com/repos/github/VisualStudio/issues/484","id":238574869,"user":{"login":"shana","id":310137,"avatar_url":"https://avatars.githubusercontent.com/u/310137?v=3","gravatar_id":"","url":"https://api.github.com/users/shana","html_url":"https://github.com/shana","followers_url":"https://api.github.com/users/shana/followers","following_url":"https://api.github.com/users/shana/following{/other_user}","gists_url":"https://api.github.com/users/shana/gists{/gist_id}","starred_url":"https://api.github.com/users/shana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shana/subscriptions","organizations_url":"https://api.github.com/users/shana/orgs","repos_url":"https://api.github.com/users/shana/repos","events_url":"https://api.github.com/users/shana/events{/privacy}","received_events_url":"https://api.github.com/users/shana/received_events","type":"User","site_admin":true},"created_at":"2016-08-09T14:41:30Z","updated_at":"2016-08-09T14:41:30Z","body":"I suspect this got introduced in 1.0.18.3. If that's the case, then you can try downgrading to  https://github.com/github/VisualStudio/releases/tag/v1.0.18.2 while we investigate."}}
{"actor":{"display_login":"shana"}}