-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Error On Project Load #1812
Comments
I have similar issue. Github Extension is the same but VS 2017 version 15.7.5
|
Could you try installing the following extension and clear the MEF component cache: The MEF component cache: sometimes becomes corrupted and prevents extensions from loaded. This is usually random and nothing to do with the extension itself. Please let us know if this fixes the issue. |
@jcansdale , I tried it and nothing changed! |
I had same issue with 15.7.5, same error in github tool window as @PurTahan even without project opened. Today after 15.7.6 upgrade got same error, this time I've just reinstalled github extension and updated it after that. BTW I tried "Revert" option for extension but thought it is not working because I didn't see that popup ended up in different monitor. It would be nice if this could be fixed though. |
Same problem here in 15.7.5 & 15.8-preview.5. Disable the GitHub extension solved this. |
@PurTahan thanks fro the report. I have a PR with a possible workaround #1831. Could you try installing this version (simply open the .vsix file): Please let me know if this improves things. |
@jcansdale I installed it and nothing changed |
@milanc just to clarify, did uninstalling the extension and reinstalling then updating fix the problem for you? This really seems to be something that's broken in Visual Studio itself. It looks like it's not loading the correct assemblies. If reinstalling and updating fixes the problem that would verify that theory. |
@PurTahan do you by any chance have BitBucket for Visual Studio. I noticed in the log from someone experiencing a similar issue that they had it installed. Could you install the ClearMEFComponentCache extension: And run the If you could upload the log here, that would be very useful to compare. Thanks for your help testing this. |
MEF Errors:
WRN: Assembly binding logging is turned OFF. System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.VisualStudio.Threading, Version=15.3.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. WRN: Assembly binding logging is turned OFF. ----- CompositionError level 1 ------ GitHub.VisualStudio.TeamExplorer.Connect.GitHubConnectSection1.ctor(holder): expected exactly 1 export of GitHub.Services.ITeamExplorerServiceHolder but found 0. GitHub.VisualStudio.TeamExplorer.Home.GraphsNavigationItem.ctor(holder): expected exactly 1 export of GitHub.Services.ITeamExplorerServiceHolder but found 0. GitHub.VisualStudio.TeamExplorer.Home.PullRequestsNavigationItem.ctor(holder): expected exactly 1 export of GitHub.Services.ITeamExplorerServiceHolder but found 0. GitHub.VisualStudio.TeamExplorer.Sync.GitHubPublishSection.ctor(holder): expected exactly 1 export of GitHub.Services.ITeamExplorerServiceHolder but found 0. GitHub.VisualStudio.TeamExplorer.Connect.GitHubConnectSection0.ctor(holder): expected exactly 1 export of GitHub.Services.ITeamExplorerServiceHolder but found 0. GitHub.VisualStudio.TeamExplorer.Home.IssuesNavigationItem.ctor(holder): expected exactly 1 export of GitHub.Services.ITeamExplorerServiceHolder but found 0. GitHub.VisualStudio.TeamExplorer.Home.WikiNavigationItem.ctor(holder): expected exactly 1 export of GitHub.Services.ITeamExplorerServiceHolder but found 0. GitHub.VisualStudio.TeamExplorer.Home.GitHubHomeSection.ctor(holder): expected exactly 1 export of GitHub.Services.ITeamExplorerServiceHolder but found 0. GitHub.VisualStudio.TeamExplorer.Home.ForkNavigationItem.ctor(holder): expected exactly 1 export of GitHub.Services.ITeamExplorerServiceHolder but found 0. ` |
It looks like we're referencing an assembly that is only compatible with Visual Studio 2017 15.3 and later. Previously I don't think we were calling it, but we started to in this last release. Could you try installing this version and see if that fixes it: I've change to using the Visual Studio 2017 15.0 assembly. |
@jcansdale I was experiencing similar problems the past few days and your latest installer seems to have cleared up the problem on my machine. |
@danielrouleau thanks for the report.
Can I just make sure that I understand what you mean my my latest installer. Was it the link I posted immediately before your reply or the one a little further up? There are two changes and I want to make sure I know which one fixed it! |
@jcansdale apologies, build 3604 was the one that resolved the issue. |
@jcansdale thanks! |
Hi @grokys , It is possible that positive outcome with new vsix is just same as reinstalling it and it might brake again after another vs update if this is related to VS as you suggested. |
I had the same error and installing the .vsix for version 2.5.5.3604 fixed it. Thank you. |
NOTE: this is 15.2.6 https://docs.microsoft.com/en-us/visualstudio/install/visual-studio-build-numbers-and-release-dates
when i load Project or solution vs shows alert with this message:
and in gitub window shows:
The text was updated successfully, but these errors were encountered: