question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

(VS'22) After installing the extension VS gives me the "package did not load correctly" error

See original GitHub issue

I read in the release note that something with the cache creates this problem but it’s already my 10th time restarting VS and clearing caches that i don’t know what to do now

Here the error window: devenv_gKpsrmpY4m

And checking the logs it seems like it’s missing some files:

  <entry>
    <record>1998</record>
    <time>2023/04/30 15:17:00.211</time>
    <type>Error</type>
    <source>VisualStudio</source>
    <description>CreateInstance failed for package [MDKPackage]Source: &apos;mscorlib&apos; Description: Could not load file or assembly &apos;System.Collections.Immutable, Version=7.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;System.Collections.Immutable, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a&apos; or one of its dependencies. The system cannot find the file specified.&#x000D;&#x000A;File name: &apos;System.Collections.Immutable, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a&apos;&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly.GetType(RuntimeAssembly assembly, String name, Boolean throwOnError, Boolean ignoreCase, ObjectHandleOnStack type)&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly.GetType(String name, Boolean throwOnError, Boolean ignoreCase)&#x000D;&#x000A;   at System.Activator.CreateInstanceFromInternal(String assemblyFile, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityInfo)&#x000D;&#x000A;   at System.AppDomain.CreateInstanceFrom(String assemblyFile, String typeName)&#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>{7B9C2D3E-B001-4A3E-86A8-00DC6F2AF032}</guid>
    <hr>0x80004005 - E_FAIL</hr>
    <errorinfo></errorinfo>
  </entry>

Full log

I thought that i might have missed some components during the installation process but it seems like I’ve got them all (it’s not only these but they are the required ones in the get started doc) Installed components:

  • .NET desktop development
  • .NET 4.6.1 targeting pack
  • .NET 4.8.1 targeting pack
  • .NET SDK

Issue Analytics

  • State:closed
  • Created 5 months ago
  • Comments:18 (11 by maintainers)

github_iconTop GitHub Comments

3reactions
malware-devcommented, Apr 30, 2023

It’s too late for me to do anything now but I have one thing I can try. Will do so tomorrow.

2reactions
JustPCodecommented, May 1, 2023

All good now 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

How can I fix the Microsoft Visual Studio error
Close all instances of Visual Studio · Go to: C:\Program Files (x86)\Microsoft SDKs\Windows · You should see a number of vX.0-like directories ( ......
Read more >
"Package did not load correctly" · Issue #87
The problem may have been caused by a configuration change or by the installation of another extension. You can get more information by ......
Read more >
Packaging Microsoft Visual Studio 2022 results in an error
Packaging Microsoft Visual Studio 2022 results in an error : "Global Hub Client Package did not load correctly caused by configuration ...
Read more >
The 'CSharpPackage' package did not load correctly.
Every time i open a existing project or new project it shows 2 error message -The 'RoslynPackage' package did not load correctly., -The...
Read more >
VS 2022 packages not loading correctly
The VA install appeared to go fine. However when I then launched Visual Studio, I received numerous 'package did not load correctly' alerts....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found