This is a dupe of #1625 but the problem just recently started happening for me. GitHub extension is 2.5.4.3349. I'm on VS 2017 Professional, currently on 15.8 Preview 5. I believe the problem also happened with Preview 4. I get a popup error message every time I open a solution that uses git, whether it uses GitHub or not. The log is below.
<entry>
<record>915</record>
<time>2018/07/27 19:48:11.911</time>
<type>Warning</type>
<source>VisualStudio</source>
<description>Unexpected system error mode before loading package [GitHubPackage]</description>
<guid>{C3D3DC68-C977-411F-B3E8-03B0DCCF7DFC}</guid>
</entry>
<entry>
<record>916</record>
<time>2018/07/27 19:48:11.911</time>
<type>Information</type>
<source>VisualStudio</source>
<description>Begin package load [GitHubPackage]</description>
<guid>{C3D3DC68-C977-411F-B3E8-03B0DCCF7DFC}</guid>
</entry>
<entry>
<record>917</record>
<time>2018/07/27 19:48:11.953</time>
<type>Error</type>
<source>VisualStudio</source>
<description>SetSite failed for package [GitHubPackage]Source: 'System.ComponentModel.Composition' Description: No exports were found that match the constraint: 
	ContractName	GitHub.Commands.IOpenFromUrlCommand
	RequiredTypeIdentity	GitHub.Commands.IOpenFromUrlCommand
</description>
<guid>{C3D3DC68-C977-411F-B3E8-03B0DCCF7DFC}</guid>
<hr>80131500</hr>
<errorinfo></errorinfo>
</entry>
<entry>
<record>918</record>
<time>2018/07/27 19:48:11.959</time>
<type>Error</type>
<source>VisualStudio</source>
<description>End package load [GitHubPackage]</description>
<guid>{C3D3DC68-C977-411F-B3E8-03B0DCCF7DFC}</guid>
<hr>80131500</hr>
<errorinfo></errorinfo>
</entry>
I have had this for the past couple of days after updating to the latest Visual Studio, but after reading @vaindil latest post - I reverted back GitHub extension, then loaded Visual Studio and upgraded GitHub extension to the latest (same as it was) and I have not seen the error since.... [fingers crossed]
All 38 comments
It's started happening at the same time as yours on mine as well. Vs2017 Version 15.7.3 .
{C3D3DC68-C977-411F-B3E8-03B0DCCF7DFC}
It hit me today! Suddenly today I was hit with this error while opening a solution in Visual Studio. Was working just fine until yesterday night.
VS Community Edition v15.6.6
Github Extension v2.5.4.3349
These are the last entries in my activitylog.xml:
<entry>
<record>752</record>
<time>2018/08/01 06:39:39.501</time>
<type>Information</type>
<source>VisualStudio</source>
<description>End package load [RestoreManagerPackage]</description>
<guid>{2B52AC92-4551-426D-BD34-C6D7D9FDD1C5}</guid>
</entry>
<entry>
<record>753</record>
<time>2018/08/01 06:39:39.519</time>
<type>Error</type>
<source>VisualStudio</source>
<description>SetSite failed for package [GitHubPackage]Source: 'System.ComponentModel.Composition' Description: No exports were found that match the constraint: 
	ContractName	GitHub.Commands.IOpenFromUrlCommand
	RequiredTypeIdentity	GitHub.Commands.IOpenFromUrlCommand
</description>
<guid>{C3D3DC68-C977-411F-B3E8-03B0DCCF7DFC}</guid>
<hr>80131500</hr>
<errorinfo></errorinfo>
</entry>
<entry>
<record>754</record>
<time>2018/08/01 06:39:39.524</time>
<type>Error</type>
<source>VisualStudio</source>
<description>End package load [GitHubPackage]</description>
<guid>{C3D3DC68-C977-411F-B3E8-03B0DCCF7DFC}</guid>
<hr>80131500</hr>
<errorinfo></errorinfo>
</entry>
</activity>
Just got hit by this message...It was working fine yesterday.
VS Community Edition v15.6.6
Github Extension v2.5.4.3349
last entries in my activitylog.xml
` 916
Warning VisualStudio Unexpected system error mode before loading package [PullRequestStatusBarPackage] {5121BEC6-1088-4553-8453-0DDC7C8E2238}
917
Information VisualStudio Begin package load [PullRequestStatusBarPackage] {5121BEC6-1088-4553-8453-0DDC7C8E2238}
918
Information VisualStudio Entering function CVsPackageInfo::HrInstantiatePackage {C3D3DC68-C977-411F-B3E8-03B0DCCF7DFC}
919
Warning VisualStudio Unexpected system error mode before loading package [GitHubPackage] {C3D3DC68-C977-411F-B3E8-03B0DCCF7DFC}
920
Information VisualStudio Begin package load [GitHubPackage] {C3D3DC68-C977-411F-B3E8-03B0DCCF7DFC}
921
Information VisualStudio End package load [PullRequestStatusBarPackage] {5121BEC6-1088-4553-8453-0DDC7C8E2238}
922
Information VisualStudio End package load [InlineReviewsPackage] {248325BE-4A2D-4111-B122-E7D59BF73A35}
923
Error VisualStudio SetSite failed for package [GitHubPackage]Source: 'System.ComponentModel.Composition' Description: No exports were found that match the constraint:
ContractName GitHub.Commands.IOpenFromUrlCommand
RequiredTypeIdentity GitHub.Commands.IOpenFromUrlCommand
{C3D3DC68-C977-411F-B3E8-03B0DCCF7DFC} 80131500
924
Error VisualStudio End package load [GitHubPackage] {C3D3DC68-C977-411F-B3E8-03B0DCCF7DFC} 80131500
925
Information VisualStudio End package load [Tab Designer Launcher] {B4E787A4-A9FC-4579-945E-D71AFEC4DD90}
`
@tinaschrepfer does this look like something that would be caused by the VS installer?
Oh actually, i notice IOpenFromUrlCommand in the logs. That's a feature we just added. I suspect this may be caused by an out-of-date MEF cache.
Thanks @vaindil @abhitalks! That's strange. The missing export that you're both seeing is declared in GitHub.VisualStudio.dll and that is loaded into devenv.exe with the correct version. So why is VS unable to find it?
@vaindil@ManlyBoy@abhitalks@bambam88 we're struggling to reproduce the issue but the problem is obviously quite widespread.
It looks like there might be something going wrong when Visual Studio tries to initialize the MEF cache. If you used the ClearMEFComponentCache extension to clear the cache, could you use the Show MEF Errors command (also on the Tools menu) to view the log.
If you could upload it here, that would be much appreciated. I'm hoping there will be a mention if GitHub somewhere in the log. If the log is empty, could you try running the Clear MEF Component Cache... command again.
@jcansdale I've attached the log here, there's quite a bit going on.
@vaindil thanks for the log!
The line that stands out is this one.
Microsoft.VisualStudio.Composition.PartDiscoveryException: ReflectionTypeLoadException while enumerating types in assembly "C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO\PREVIEW\PROFESSIONAL\COMMON7\IDE\EXTENSIONS\1JYPEKCU.3QVGitClientVS.TeamFoundation.14.dll". Results will be incomplete. ---> System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
It shouldn't be attempting to install GitClientVS.TeamFoundation.14.dll into Visual Studio 2017!
Please let me know if the extension works and upload another MEF log. I'm hoping the extension will work, but expect to see similar errors in the log.
Thanks!
@vaindil I noticed from your log that you also have BitBucket for Visual Studio installed. I've tried installing their latest extension, but wasn't able to reproduce this issue. I think we might be using slightly different versions. Could you update to the latest BitBucket extension and see if anything changes?
Most of the errors in your log are actually from the BitBucket extension. They aren't necessarily a problem, but do make it more difficult to read.
Any chance you could disable the BitBucket extension, clear the MEF component cache and upload a new MEF log file?
It's frustrating we haven't been able to reproduce this, but I'm very keen to get to the bottom of it!
I'm hoping all of these issues come down to problems resolving Microsoft.VisualStudio.Threading version 15.3. I've changed to 15.0, which should be compatible with all versions of Visual Studio 2017. 馃
Let me know how you get on!
@jcansdale I just checked, I'm on the latest version of the Bitbucket extension (1.37.7).
I disabled the Bitbucket extension and re-ran the MEF stuff, here's the new log.
I no longer get a popup with the version of the extension from the previous comment. Just in case, I did the MEF dance yet again and grabbed this new log.
@vaindil Excellent, thanks for all the logs. I'm glad it seems to be working now! 馃帀
Create a new ClassLibrary project with the following code:
namespace VisualStudioThreadingTests
{
using System;
using System.IO;
using System.Linq;
public class ThreadingTests
{
void DumpThreadingInfo()
{
foreach (var asm in AppDomain.CurrentDomain.GetAssemblies())
{
if (asm.GetName().Name == "Microsoft.VisualStudio.Threading")
{
Console.WriteLine(asm.FullName);
}
}
var configFile = AppDomain.CurrentDomain.SetupInformation.ConfigurationFile;
var lines = File.ReadLines(configFile).ToList();
for (int i = 0; i < lines.Count; i++)
{
if (lines[i].Contains("Microsoft.VisualStudio.Threading"))
{
Console.WriteLine(lines[i].Trim());
Console.WriteLine(lines[i + 1].Trim());
}
}
}
}
}
Right click inside the DumpThreadingInfo method and Test With > In-Proc (VS SDK)
This will let me see what Microsoft.VisualStudio.Threading assembly Visual Studio is using and what binding redirects are in place (if any).
With any luck this will solve the mystery of why we can't use Microsoft.VisualStudio.Threading version 15.3 and have it redirect to whatever version Visual Studio is using (the working build uses 15.0). 馃
@vaindil don't worry about the above test. Everything appears to be in order with the Microsoft.VisualStudio.Threading binding redirects. It's a mystery what's going wrong. 馃槙
@jcansdale The one from #1839 fixed the issue for me. THANKS!
@jcansdale I have the version of the extension from #1839 installed, it was previously working but I'm now getting the popup again. Here's the latest log.
Could you try what in says in the "how to fix" section, except rename rather than delete?
Let me know how you get on. Please comment on that issue. Thanks!
@jcansdale Was MIA for a few days. Today, I upgraded my VS to 15.8.1 and the problem seems to have disappeared. Will keep fingers crossed for extension updates though.
This was working last night. A comment in another thread indicates this is a problem for Visual Studio 15.8.1 as well as 15.8.
I'm running Visual Studio 2017 15.8:
788
Error VisualStudio SetSite failed for package [GitHubPackage]Source: 'System.ComponentModel.Composition' Description: No exports were found that match the constraint:
ContractName GitHub.Commands.IOpenFromUrlCommand
RequiredTypeIdentity GitHub.Commands.IOpenFromUrlCommand
{C3D3DC68-C977-411F-B3E8-03B0DCCF7DFC} 80131500
789
Error VisualStudio End package load [GitHubPackage] {C3D3DC68-C977-411F-B3E8-03B0DCCF7DFC} 80131500
It happens to me too after updating from 15.7.x to 15.8.1
Updated to 15.8.1 this morning and it started happening to me.
One of my coworkers just told me that his has been doing it for weeks, but it hasn't actually prevented him from working or using GIT in any way.
Ditto for me on 15.8.1 (not sure if I saw it for 15.8). Just chiming in to include me as a user of a private GitHub Enterprise repo seeing this as well. And like some others here, it's annoying but at least not currently interfering with my Git Hub shell work (with which I interact after I close the solution/projects). I'll probably ignore and hope for a future fix.
Reverting GitHub Extension to Version 2.5.2.2500 worked for me
Thanks for all the reports everyone. This seems to be a problem with Visual Studio itself, we've had it happen once here and reinstalling the extension appears to fix it, so for the people who have reverted to an earlier version, you should be able to update back to the latest version and it _should_ stay fixed.
Pinging a few more MS folks for visibility on this: @AArnott@madskristensen@tinaschrepfer
I reverted back and reinstalled the newer version, the extension is working now. I'll report back in a couple days if everything is still working, or immediately if it breaks again. Thank you!
@grokys,
I've been in discussion with @dgriffen on Gitter about this. We now know what's going and I have a fix planned for when I get back on Thursday.
Does that timing work - I wouldn't want to miss a ship? //cc @meaghanlewis
I have had this for the past couple of days after updating to the latest Visual Studio, but after reading @vaindil latest post - I reverted back GitHub extension, then loaded Visual Studio and upgraded GitHub extension to the latest (same as it was) and I have not seen the error since.... [fingers crossed]
So is it supposed to be fixed? Because I just upgraded to VS 15.9.11 yesterday and seeing this error now.
Where does this thread leave off? Do we need to revert the GitHub extension version? Or is VS latest expected to just work?
I have this problem too, but on VS 14.0 (VS 2015) Community. Extension is latest, but refuses to show settings and integration in Team Explorer. ActivityLog.zip
Correction: None of the 2.9.x releases work, had to go back to the 2.8.1 to make it work again.
Hi,
The dialog was asking continue to show the error msg? What if I clicked no? would that continue show the error msg when next load?
I did some fix, but I m not sure if the fix was done. or could some let me know how this error would affect the github extension?
It hit me today! Suddenly today I was hit with this error while opening a solution in Visual Studio. Was working just fine until yesterday night.
VS Community Edition v15.6.6
Github Extension v2.5.4.3349
These are the last entries in my activitylog.xml:
<entry>
<record>752</record>
<time>2018/08/01 06:39:39.501</time>
<type>Information</type>
<source>VisualStudio</source>
<description>End package load [RestoreManagerPackage]</description>
<guid>{2B52AC92-4551-426D-BD34-C6D7D9FDD1C5}</guid>
</entry>
<entry>
<record>753</record>
<time>2018/08/01 06:39:39.519</time>
<type>Error</type>
<source>VisualStudio</source>
<description>SetSite failed for package [GitHubPackage]Source: 'System.ComponentModel.Composition' Description: No exports were found that match the constraint: 
	ContractName	GitHub.Commands.IOpenFromUrlCommand
	RequiredTypeIdentity	GitHub.Commands.IOpenFromUrlCommand
</description>
<guid>{C3D3DC68-C977-411F-B3E8-03B0DCCF7DFC}</guid>
<hr>80131500</hr>
<errorinfo></errorinfo>
</entry>
<entry>
<record>754</record>
<time>2018/08/01 06:39:39.524</time>
<type>Error</type>
<source>VisualStudio</source>
<description>End package load [GitHubPackage]</description>
<guid>{C3D3DC68-C977-411F-B3E8-03B0DCCF7DFC}</guid>
<hr>80131500</hr>
<errorinfo></errorinfo>
</entry>
</activity>
This was working last night. A comment in another thread indicates this is a problem for Visual Studio 15.8.1 as well as 15.8.
I'm running Visual Studio 2017 15.8:
788
2018/08/19 14:55:30.851
Error
VisualStudio
SetSite failed for package [GitHubPackage]Source: 'System.ComponentModel.Composition' Description: No exports were found that match the constraint:
ContractName GitHub.Commands.IOpenFromUrlCommand
RequiredTypeIdentity GitHub.Commands.IOpenFromUrlCommand
Most helpful comment
I have had this for the past couple of days after updating to the latest Visual Studio, but after reading @vaindil latest post - I reverted back GitHub extension, then loaded Visual Studio and upgraded GitHub extension to the latest (same as it was) and I have not seen the error since.... [fingers crossed]