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

Visual Studio 2017 fails to load like in #23

Open PatPeter opened this issue 4 years ago • 4 comments

Bug description:

Here's the error report from ActivityLog.xml:

  <entry>
    <record>1549</record>
    <time>2021/02/17 21:52:54.580</time>
    <type>Error</type>
    <source>VisualStudio</source>
    <description>SetSite failed for package [DiscordRPCVSPackage]Source: &apos;discord-rpc-vs&apos; Description: Could not load file or assembly &apos;Microsoft.VisualStudio.Threading, Version=15.8.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.Threading, Version=15.8.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a&apos; or one of its dependencies. The system cannot find the file specified.&#x000D;&#x000A;File name: &apos;Microsoft.VisualStudio.Threading, Version=15.8.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a&apos;&#x000D;&#x000A;   at discord_rpc_vs.DiscordRPCVSPackage.InitializeAsync(CancellationToken cancellationToken, IProgress`1 progress)&#x000D;&#x000A;   at Microsoft.VisualStudio.Shell.AsyncPackage.&lt;&gt;c__DisplayClass17_0.&lt;&lt;Microsoft-VisualStudio-Shell-Interop-IAsyncLoadablePackageInitialize-Initialize&gt;b__1&gt;d.MoveNext()&#x000D;&#x000A;--- End of stack trace from previous location where exception was thrown ---&#x000D;&#x000A;   at Microsoft.VisualStudio.Services.VsTask.RethrowException(AggregateException e)&#x000D;&#x000A;   at Microsoft.VisualStudio.Services.VsTask.InternalGetResult(Boolean ignoreUIThreadCheck)&#x000D;&#x000A;   at Microsoft.VisualStudio.Services.VsTask.GetResult()&#x000D;&#x000A;&#x000D;&#x000A;WRN: Assembly binding logging is turned OFF.&#x000D;&#x000A;To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.&#x000D;&#x000A;Note: There is some performance penalty associated with assembly bind failure logging.&#x000D;&#x000A;To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].&#x000D;&#x000A;</description>
    <guid>{EA99CD90-97EA-40A5-BE3C-2F3377242800}</guid>
    <hr>80070002</hr>
    <errorinfo></errorinfo>
  </entry>

Reproduction steps:

Steps to reproduce the behavior:

  1. Install from here https://marketplace.visualstudio.com/items?itemName=1TheNikita.drpcvs2019
  2. Load Visual Studio 2017.
  3. Enable Discord Rich Presence.

Expected behavior:

No error on startup.

Screenshots:

![https://i.imgur.com/jOGJzVB.png](Visual Studio Error)

Desktop (please complete the following information):

  • OS: Windows 10
  • Visual Studio 2017
  • Extension Version: 5.3

Additional context

None.

PatPeter avatar Feb 17 '21 22:02 PatPeter

Hi! Thanks for writing about the bug.

Try committing these items:

  1. Reinstall the extension
  2. Reinstall Discord
  3. Reset VIsual Studio

1thenikita avatar Feb 18 '21 17:02 1thenikita

Same issue here as of version 5.5 (not sure if this is the exact version this started happening though); reinstalling the extension, Discord, and reinstalling VS entirely didn't help.

osyu avatar Mar 01 '21 06:03 osyu

Try downloading the version that downloads via file here. Have you uninstalled all versions of the plugin before updating? Because of the transfer of the plugin to me, there may be conflicts with the old version.

Same issue here as of version 5.5 (not sure if this is the exact version this started happening though); reinstalling the extension, Discord, and reinstalling VS entirely didn't help.

1thenikita avatar Mar 08 '21 11:03 1thenikita

I too had this issue.

Reinstalling fixed it.

ItsJunction avatar Mar 10 '21 18:03 ItsJunction