microsoft / PowerToys

Windows system utilities to maximize productivity
MIT License
109.89k stars 6.48k forks source link

Unable to Enable Powertoys Run #21454

Open ashwikum opened 1 year ago

ashwikum commented 1 year ago

Microsoft PowerToys version

0.63.0

Installation method

WinGet

Running as admin

No

Area(s) with issue?

PowerToys Run

Steps to reproduce

Enabling Powertoys Run after boot (or if already enabled then the error comes up on boot)

✔️ Expected Behavior

Powertoys Run should enable without this error

❌ Actual Behavior

Enabling Powertoys Run throws the below Error:

Uninstalling > Deleting the Powertoys folder in Program Files and resinstalling did not fix the problem either

System.BadImageFormatException: Could not load file or assembly 'System.Runtime.Loader, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. Format of the executable (.exe) or library (.dll) is invalid. Source: Wox.Plugin TargetAssembly: Wox.Plugin, Version=0.63.0.0, Culture=neutral, PublicKeyToken=null TargetModule: Wox.Plugin.dll TargetSite: Boolean CreatePluginInstance() at Wox.Plugin.PluginPair.CreatePluginInstance() at Wox.Plugin.PluginPair.LoadPlugin() at Wox.Plugin.PluginPair..ctor(PluginMetadata metadata) at PowerLauncher.Plugin.PluginManager.<>c.b7_3(PluginMetadata x) at System.Linq.Utilities.<>c__DisplayClass2_0`3.b0(TSource x) at System.Linq.Enumerable.SelectEnumerableIterator2.ToList() at System.Linq.Enumerable.ToList[TSource](IEnumerable1 source) at PowerLauncher.Plugin.PluginManager.get_AllPlugins() at PowerLauncher.Plugin.PluginManager.GetPluginsForInterface[T]() at PowerLauncher.ViewModel.MainViewModel.RegisterResultsUpdatedEvent() at PowerLauncher.ViewModel.MainViewModel..ctor(PowerToysRunSettings settings, CancellationToken nativeThreadCancelToken) at PowerLauncher.App.<>c__DisplayClass18_0.b0() at Wox.Infrastructure.Stopwatch.Normal(String message, Action action) at PowerLauncher.App.OnStartup(Object sender, StartupEventArgs e) at System.Windows.Application.OnStartup(StartupEventArgs e) at System.Windows.Application.<.ctor>b1_0(Object unused) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

Other Software

None

taras-janea commented 1 year ago

/bugreport

ghost commented 1 year ago

Hi there!

We need a bit more information to really debug this issue. Can you add a "Report Bug" zip file here? You right click on our system tray icon and just go to report bug. Then drag the zipfile from your desktop onto the GitHub comment box in this issue. Thanks!
Report Bug

ashwikum commented 1 year ago

PowerToysReport_2022-10-27-03-47-00.zip

ashwikum commented 1 year ago

I am getting the same error post upgrade to 64.0.0

Version: 0.64.0.0 OS Version: Microsoft Windows NT 10.0.22623.0 IntPtr Length: 8 x64: True Date: 03-11-2022 18:17:38 Exception: System.BadImageFormatException: Could not load file or assembly 'System.Runtime.Loader, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. Format of the executable (.exe) or library (.dll) is invalid. File name: 'System.Runtime.Loader, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' at Wox.Plugin.PluginPair.CreatePluginInstance() at Wox.Plugin.PluginPair.LoadPlugin() at Wox.Plugin.PluginPair..ctor(PluginMetadata metadata) at PowerLauncher.Plugin.PluginManager.<>c.b7_3(PluginMetadata x) at System.Linq.Utilities.<>c__DisplayClass2_0`3.b0(TSource x) at System.Linq.Enumerable.SelectEnumerableIterator2.ToList() at System.Linq.Enumerable.ToList[TSource](IEnumerable1 source) at PowerLauncher.Plugin.PluginManager.get_AllPlugins() at PowerLauncher.Plugin.PluginManager.GetPluginsForInterface[T]() at PowerLauncher.ViewModel.MainViewModel.RegisterResultsUpdatedEvent() at PowerLauncher.ViewModel.MainViewModel..ctor(PowerToysRunSettings settings, CancellationToken nativeThreadCancelToken) at PowerLauncher.App.<>c__DisplayClass18_0.b0() at Wox.Infrastructure.Stopwatch.Normal(String message, Action action) at PowerLauncher.App.OnStartup(Object sender, StartupEventArgs e) at System.Windows.Application.OnStartup(StartupEventArgs e) at System.Windows.Application.<.ctor>b1_0(Object unused) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

ashwikum commented 1 year ago

PowerToysReport_2022-11-03-18-18-59.zip