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.

VS2022 throws an error "The 'VsPackage' package did not load correctly"

See original GitHub issue

Describe the bug When starting VS 2022 I get this error message: image

The significant part of the ActivityLog.xml:

CreateInstance failed for package [VsPackage]Source: 'mscorlib' Description: Exception has been thrown by the target of an invocation.
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IO.FileNotFoundException: Could not load file or assembly 'EnvDTE, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
   at ResXManager.VSIX.CustomToolRunner..ctor()
   at ResXManager.VSIX.VsPackage..ctor() in D:\a\1\s\src\ResXManager.VSIX\VSPackage.cs:line 61
   --- End of inner exception stack trace ---
   at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)
   at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
   at System.Activator.CreateInstance(Type type, Boolean nonPublic)
   at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark)
   at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
   at System.Activator.CreateInstanceFromInternal(String assemblyFile, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityInfo)
   at System.AppDomain.CreateInstanceFrom(String assemblyFile, String typeName)System.IO.FileNotFoundException: Could not load file or assembly 'EnvDTE, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
File name: 'EnvDTE, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
   at ResXManager.VSIX.CustomToolRunner..ctor()
   at ResXManager.VSIX.VsPackage..ctor() in D:\a\1\s\src\ResXManager.VSIX\VSPackage.cs:line 61

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

ResXResourceManager does not open. The same error pops as on the screenshot.

To Reproduce New installation of VS 2022 ver. 17.0.0 Preview 4.0

Expected behavior No error. ResXResourceManager should show up.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9

github_iconTop GitHub Comments

3reactions
tom-englertcommented, Sep 15, 2021

OK, I’ll make an official release from this

0reactions
nitzcommented, Sep 27, 2021

Figures it should be something so silly! Thanks a heap 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

visual studio 2015 - My vs package did not load correctly
Close all instances of Visual Studio; Delete everything in this folder C:\Users\%username%\AppData\Local\Microsoft\VisualStudio\14.0\ ...
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 >
'VSPackage' package did not load correctly
The 'VSPackage' package did not load correctly. The problem may have been caused by a configuration change or by the installation of another...
Read more >
Troubleshoot issues with VSPackages - Visual Studio
In this scenario, start Visual Studio in safe mode by entering devenv.exe /safemode at a command prompt. During this process, no VSPackages ......
Read more >
Visual Studio error: Package did not load correctly
The error occurs as a result of corruption of the extension cache in Visual Studio. ... After removing the folder, restart Visual Studio....
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