Wox-launcher / Wox

A cross-platform launcher that simply works
http://wox-launcher.github.io/Wox/
GNU General Public License v3.0
24.53k stars 2.37k forks source link

System.TypeLoadException #2079

Closed onlinelei closed 4 years ago

onlinelei commented 6 years ago

Steps to reproduce

1.wpm install Wox.Plugin.SimpleClock 2.clock add 19:30 post card

Wox Error Window text

Wox version: 1.3.524 OS Version: Microsoft Windows NT 10.0.16299.0 IntPtr Length: 8 x64: True

Python Path: Everything SDK Path: C:\Users\Administrator\AppData\Roaming\Wox\Settings\Plugins\Wox.Plugin.Everything\EverythingSDK\x64\Everything.dll Date: 06/27/2018 10:22:36 Exception: System.TypeLoadException: 未能从程序集“Wox.Infrastructure, Version=1.3.524.0, Culture=neutral, PublicKeyToken=null”中加载类型“Wox.Infrastructure.Storage.Storage1”。 在 Wox.Plugin.SimpleClock.Commands.Alarm.AlarmAddCommand.CommandExecution(List1 args) 在 Wox.Plugin.Boromak.CommandHandlerBase.Execute(List`1 args) 位置 C:\Users\Boris\Documents\SourceControl\Wox\Wox.Plugin.SimpleClock\Wox.Plugin.Boromak\Wox.Plugin.Boromak\CommandHandlerBase.cs:行号 166 在 Wox.ViewModel.MainViewModel.b__16_6(Object index) 位置 C:\projects\wox\Wox\ViewModel\MainViewModel.cs:行号 146 在 System.Windows.Input.CommandManager.TranslateInput(IInputElement targetElement, InputEventArgs inputEventArgs) 在 System.Windows.UIElement.OnKeyDownThunk(Object sender, KeyEventArgs e) 在 System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target) 在 System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs) 在 System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised) 在 System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args) 在 System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args) 在 System.Windows.Input.InputManager.ProcessStagingArea() 在 System.Windows.Input.InputManager.ProcessInput(InputEventArgs input) 在 System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport) 在 System.Windows.Interop.HwndKeyboardInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawKeyboardActions actions, Int32 scanCode, Boolean isExtendedKey, Boolean isSystemKey, Int32 virtualKey) 在 System.Windows.Interop.HwndKeyboardInputProvider.ProcessKeyAction(MSG& msg, Boolean& handled) 在 System.Windows.Interop.HwndSource.CriticalTranslateAccelerator(MSG& msg, ModifierKeys modifiers) 在 System.Windows.Interop.HwndSource.OnPreprocessMessage(Object param) 在 System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) 在 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

Detailed logs

System.TypeLoadException: 未能从程序集“Wox.Infrastructure, Version=1.3.524.0, Culture=neutral, PublicKeyToken=null”中加载类型“Wox.Infrastructure.Storage.Storage`1”。
   Source: Wox.Plugin.SimpleClock
   TargetAssembly: Wox.Plugin.SimpleClock, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
   TargetModule: Wox.Plugin.SimpleClock.dll
   TargetSite: Boolean CommandExecution(System.Collections.Generic.List`1[System.String])
   在 Wox.Plugin.SimpleClock.Commands.Alarm.AlarmAddCommand.CommandExecution(List`1 args)
   在 Wox.Plugin.Boromak.CommandHandlerBase.Execute(List`1 args) 位置 C:\Users\Boris\Documents\SourceControl\Wox\Wox.Plugin.SimpleClock\Wox.Plugin.Boromak\Wox.Plugin.Boromak\CommandHandlerBase.cs:行号 166
   在 Wox.ViewModel.MainViewModel.<InitializeKeyCommands>b__16_6(Object index) 位置 C:\projects\wox\Wox\ViewModel\MainViewModel.cs:行号 146
   在 System.Windows.Input.CommandManager.TranslateInput(IInputElement targetElement, InputEventArgs inputEventArgs)
   在 System.Windows.UIElement.OnKeyDownThunk(Object sender, KeyEventArgs e)
   在 System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   在 System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   在 System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   在 System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   在 System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
   在 System.Windows.Input.InputManager.ProcessStagingArea()
   在 System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
   在 System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
   在 System.Windows.Interop.HwndKeyboardInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawKeyboardActions actions, Int32 scanCode, Boolean isExtendedKey, Boolean isSystemKey, Int32 virtualKey)
   在 System.Windows.Interop.HwndKeyboardInputProvider.ProcessKeyAction(MSG& msg, Boolean& handled)
   在 System.Windows.Interop.HwndSource.CriticalTranslateAccelerator(MSG& msg, ModifierKeys modifiers)
   在 System.Windows.Interop.HwndSource.OnPreprocessMessage(Object param)
   在 System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   在 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

Environment

Assemblies - Wox.exe

2018-06-27 10:23:43.5534|ERROR|App.RegisterAppDomainExceptions|-------------------------- Begin exception -------------------------- 2018-06-27 10:23:43.5534|ERROR|App.RegisterAppDomainExceptions|First Chance Exception: 2018-06-27 10:23:43.5594|ERROR|App.RegisterAppDomainExceptions|Exception fulle name:

2018-06-27 10:23:43.5594|ERROR|App.RegisterAppDomainExceptions|Exception message: <未能从程序集“Wox.Infrastructure, Version=1.3.524.0, Culture=neutral, PublicKeyToken=null”中加载类型“Wox.Infrastructure.Storage.Storage`1”。> 2018-06-27 10:23:43.5594|ERROR|App.RegisterAppDomainExceptions|Exception stack trace: < 在 Wox.Plugin.SimpleClock.Commands.AlarmCommand.AlarmTimer_Elapsed(Object sender, ElapsedEventArgs e) 在 System.Timers.Timer.MyTimerCallback(Object state)> 2018-06-27 10:23:43.5594|ERROR|App.RegisterAppDomainExceptions|Exception source: 2018-06-27 10:23:43.5594|ERROR|App.RegisterAppDomainExceptions|Exception target site: 2018-06-27 10:23:43.5594|ERROR|App.RegisterAppDomainExceptions|Exception HResult: <-2146233054> 2018-06-27 10:23:43.5730|ERROR|App.RegisterAppDomainExceptions|-------------------------- End exception -------------------------- 2018-06-27 10:23:48.5527|ERROR|App.RegisterAppDomainExceptions|-------------------------- Begin exception -------------------------- 2018-06-27 10:23:48.5527|ERROR|App.RegisterAppDomainExceptions|First Chance Exception: 2018-06-27 10:23:48.5527|ERROR|App.RegisterAppDomainExceptions|Exception fulle name: 2018-06-27 10:23:48.5527|ERROR|App.RegisterAppDomainExceptions|Exception message: <未能从程序集“Wox.Infrastructure, Version=1.3.524.0, Culture=neutral, PublicKeyToken=null”中加载类型“Wox.Infrastructure.Storage.Storage`1”。> 2018-06-27 10:23:48.5527|ERROR|App.RegisterAppDomainExceptions|Exception stack trace: < 在 Wox.Plugin.SimpleClock.Commands.AlarmCommand.AlarmTimer_Elapsed(Object sender, ElapsedEventArgs e) 在 System.Timers.Timer.MyTimerCallback(Object state)> 2018-06-27 10:23:48.5577|ERROR|App.RegisterAppDomainExceptions|Exception source: 2018-06-27 10:23:48.5577|ERROR|App.RegisterAppDomainExceptions|Exception target site: 2018-06-27 10:23:48.5577|ERROR|App.RegisterAppDomainExceptions|Exception HResult: <-2146233054> 2018-06-27 10:23:48.5577|ERROR|App.RegisterAppDomainExceptions|-------------------------- End exception -------------------------- 2018-06-27 10:23:53.5531|ERROR|App.RegisterAppDomainExceptions|-------------------------- Begin exception -------------------------- 2018-06-27 10:23:53.5531|ERROR|App.RegisterAppDomainExceptions|First Chance Exception: 2018-06-27 10:23:53.5531|ERROR|App.RegisterAppDomainExceptions|Exception fulle name: 2018-06-27 10:23:53.5531|ERROR|App.RegisterAppDomainExceptions|Exception message: <未能从程序集“Wox.Infrastructure, Version=1.3.524.0, Culture=neutral, PublicKeyToken=null”中加载类型“Wox.Infrastructure.Storage.Storage`1”。> 2018-06-27 10:23:53.5531|ERROR|App.RegisterAppDomainExceptions|Exception stack trace: < 在 Wox.Plugin.SimpleClock.Commands.AlarmCommand.AlarmTimer_Elapsed(Object sender, ElapsedEventArgs e) 在 System.Timers.Timer.MyTimerCallback(Object state)> 2018-06-27 10:23:53.5581|ERROR|App.RegisterAppDomainExceptions|Exception source: 2018-06-27 10:23:53.5581|ERROR|App.RegisterAppDomainExceptions|Exception target site: 2018-06-27 10:23:53.5581|ERROR|App.RegisterAppDomainExceptions|Exception HResult: <-2146233054> 2018-06-27 10:23:53.5581|ERROR|App.RegisterAppDomainExceptions|-------------------------- End exception -------------------------- ### Screenshots (optional) nothing i can do
bao-qian commented 4 years ago

Please try new release with tons of bug fix and 100 times speedup. https://github.com/Wox-launcher/Wox/releases

If problem still exist, try reset by delete %APPDATA%Wox directory. Reopen if above method won't help.