Visual-Studio icon indicating copy to clipboard operation
Visual-Studio copied to clipboard

Extension fails to load

Open Lufou opened this issue 3 years ago • 5 comments

Bug description:

The extension fails to load on VS startup.

Here is the stacktrace from ActivityLog.xml:

  <entry>
    <record>717</record>
    <time>2021/03/06 12:46:21.918</time>
    <type>Error</type>
    <source>VisualStudio</source>
    <description>CreateInstance failed for package [DiscordRPforVSPackage]Source: &apos;mscorlib&apos; Description: Could not load file or assembly &apos;Microsoft.VisualStudio.Shell.15.0, Version=16.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a&apos; or one of its dependencies. The system cannot find the file specified.&#x000D;&#x000A;System.IO.FileNotFoundException: Could not load file or assembly &apos;Microsoft.VisualStudio.Shell.15.0, Version=16.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a&apos; ou une de ses d&#x00E9;pendances. Le fichier sp&#x00E9;cifi&#x00E9; est introuvable.&#x000D;&#x000A;Nom de fichier&#x00A0;: &apos;Microsoft.VisualStudio.Shell.15.0, Version=16.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a&apos;&#x000D;&#x000A;   &#x00E0; System.Reflection.RuntimeAssembly.GetType(RuntimeAssembly assembly, String name, Boolean throwOnError, Boolean ignoreCase, ObjectHandleOnStack type)&#x000D;&#x000A;   &#x00E0; System.Reflection.RuntimeAssembly.GetType(String name, Boolean throwOnError, Boolean ignoreCase)&#x000D;&#x000A;   &#x00E0; System.Activator.CreateInstanceFromInternal(String assemblyFile, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityInfo)&#x000D;&#x000A;   &#x00E0; System.AppDomain.CreateInstanceFrom(String assemblyFile, String typeName)&#x000D;&#x000A;&#x000D;&#x000A;AVT&#x00A0;: la journalisation de liaison d&apos;assembly est d&#x00E9;sactiv&#x00E9;e.&#x000D;&#x000A;Pour activer la journalisation des &#x00E9;checs de liaison d&apos;assembly, attribuez la valeur 1 &#x00E0; la valeur de Registre [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD).&#x000D;&#x000A;Remarque&#x00A0;: une certaine perte de performance est associ&#x00E9;e &#x00E0; l&apos;enregistrement dans le journal des &#x00E9;checs de liaison d&apos;assembly.&#x000D;&#x000A;Pour d&#x00E9;sactiver cette fonctionnalit&#x00E9;, supprimez la valeur de Registre [HKLM\Software\Microsoft\Fusion!EnableLog].&#x000D;&#x000A;</description>
    <guid>{AB4ABBBF-2C58-4FB3-8D6F-651811A796AA}</guid>
    <hr>80004005 - E_FAIL</hr>
    <errorinfo></errorinfo>
  </entry>

Reproduction steps:

Steps to reproduce the behavior:

  1. Have the extension installed
  2. Launch Visual Studio 2017

Expected behavior:

The rich presence is showing on Discord and no error on startup.

Screenshots:

https://i.imgur.com/jOGJzVB.png

Desktop (please complete the following information):

  • OS: Windows 10 Professional Build 19042]
  • Visual Studio Professional 2017 Version 15.9.33
  • Extension Version 5.5

Additional context

None.

Lufou avatar Mar 06 '21 13:03 Lufou

After checking ActivityLog.xml it turns out I actually have the error in this issue, rather than the one in issue #23 (whoops).

I tried uninstalling the previous version and then installing the VSIX from the GitHub release, but it still results in the same crash.

osyu avatar Mar 08 '21 15:03 osyu

I've got the same issue as well

NotKyoyo avatar Jul 15 '21 13:07 NotKyoyo

me too

ghost avatar Jul 30 '21 12:07 ghost

me too

VDoring avatar Jul 31 '21 13:07 VDoring

the same... this is broken is about 4 months ago for me.

PoweredByAndrox avatar Jul 31 '21 18:07 PoweredByAndrox