VS2022 throws an error "The 'VsPackage' package did not load correctly"
See original GitHub issueDescribe the bug
When starting VS 2022 I get this error message:
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:
- Created 2 years ago
- Comments:9
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
OK, I’ll make an official release from this
Figures it should be something so silly! Thanks a heap 😃