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.

System.MissingMethodException: Methode nicht gefunden: "Void Community.VisualStudio.Toolkit.BaseCommand`1..ctor()"

See original GitHub issue

Last week I had to repair my VS2019 to fix some issues, now I reinstalled some extension from what I thought I had installed and now I get an error with your extension:

SetSite failed for package [TweaksterPackage]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.MissingMethodException: Methode nicht gefunden: "Void Community.VisualStudio.Toolkit.BaseCommand`1..ctor()". 
at Tweakster.ResetZoomLevel..ctor() --- 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.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) 
at System.Activator.CreateInstance[T]() at Community.VisualStudio.Toolkit.BaseCommand`1.<InitializeAsync>d__12.MoveNext() --- End of stack trace from previous location where exception was thrown --- 
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) 
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 
at Tweakster.TweaksterPackage.<InitializeAsync>d__0.MoveNext() in C:\projects\tweakster\src\TweaksterPackage.cs:line 33 --- End of stack trace from previous location where exception was thrown --- 
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) 
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 
at Microsoft.VisualStudio.Shell.AsyncPackage.<>c__DisplayClass20_0.<<Microsoft-VisualStudio-Shell-Interop-IAsyncLoadablePackageInitialize-Initialize>b__1>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- 
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) 
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 
at Microsoft.VisualStudio.Threading.JoinableTask.<JoinAsync>d__70.MoveNext() --- End of stack trace from previous location where exception was thrown --- 
at Microsoft.VisualStudio.Services.VsTask.RethrowException(AggregateException e) 
at Microsoft.VisualStudio.Services.VsTask.InternalGetResult(Boolean ignoreUIThreadCheck) 
at Microsoft.VisualStudio.Services.VsTask.GetResult()System.MissingMethodException: Methode nicht gefunden: "Void Community.VisualStudio.Toolkit.BaseCommand`1..ctor()". at Tweakster.ResetZoomLevel..ctor()

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
madskristensencommented, Apr 30, 2021

If a library doesn’t have a strongname, then VS is not registering it correctly as a dependent assembly. The fix was to add a strongname to the Tookit assembly.

1reaction
madskristensencommented, Apr 30, 2021

We found a bug in VS on how it registers dependent assemblies. We got around it in the latest Toolkit package, which now both Tweaks and KnownMonikers Explorer uses. I’ve uploaded the new versions to the Marketplace

Read more comments on GitHub >

github_iconTop Results From Across the Web

System.MissingMethodException: Method not found?
I have a generic handler as such: public class MyHandler: IHttpHandler { public void Processrequest(HttpContext context) ...
Read more >
System.MissingMethodException: Method not found: void . ...
Open Tools > Android > Android Adb Command Prompt. In the command prompt, run: adb uninstall Mono.Android.DebugRuntime; Redeploy the application ...
Read more >
Errors after updating Visual Studio 2019
MissingMethodException : Method not found: 'System. ... MoveNext() — End of stack trace from previous location where exception was thrown — at System....
Read more >
"System.MissingMethodException: Method not found ...
I'm currently in the process of updating our build tools from v141 to v142, ... For the c++ projects we use fastbuild as...
Read more >
VSIX Community Toolkit - Visual Studio (Windows)
This toolkit will help you write successful Visual Studio extensions and there's something for absolute beginners to experts alike.
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