PiotrMachowski / Home-Assistant-Taskbar-Menu

This application is a simple Home Assistant client for Windows. It can display Lovelace views, control entities and show persistent notifications.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Not starting on Windows 11

vsxed opened this issue · comments

Seems like the application does not start correctly on Windows 11.

Configuration seems fine, config file is created, nothing stated in the logs.

Websocket API is active in my HA setup.

When i click on the application icon, simply nothing happens

Can you try starting "DEBUG" exe?

The debug exe does not start aswell.

Here's the log:

Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'CefSharp.Core.dll' or one of its dependencies. The specified module could not be found.
   at Home_Assistant_Taskbar_Menu.Views.BrowserWindow..ctor(Configuration configuration)
   at Home_Assistant_Taskbar_Menu.MainWindow..ctor(Configuration configuration, ViewConfiguration viewConfiguration) in D:\Files\Programowanie\PycharmProjects\Home Assistant\Other\Home Assistant Taskbar Menu\Home Assistant Taskbar Menu\Views\MainWindow.xaml.cs:line 40
   at Home_Assistant_Taskbar_Menu.AuthWindow.SaveButtonClick(Object sender, RoutedEventArgs e) in D:\Files\Programowanie\PycharmProjects\Home Assistant\Other\Home Assistant Taskbar Menu\Home Assistant Taskbar Menu\Views\AuthWindow.xaml.cs:line 37
   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   at System.Windows.UIElement.RaiseEvent(RoutedEventArgs e)
   at System.Windows.Controls.Primitives.ButtonBase.OnClick()
   at System.Windows.Controls.Button.OnClick()
   at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
   at System.Windows.UIElement.OnMouseLeftButtonUpThunk(Object sender, MouseButtonEventArgs e)
   at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
   at System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e)
   at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
   at System.Windows.Input.InputManager.ProcessStagingArea()
   at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
   at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
   at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
   at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   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)
   at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
   at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
   at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
   at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
   at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
   at System.Windows.Application.RunDispatcher(Object ignore)
   at System.Windows.Application.RunInternal(Window window)
   at System.Windows.Application.Run(Window window)
   at Home_Assistant_Taskbar_Menu.App.Main()

[process exited with code 3762504530]

Can you try to install Microsoft .NET Framework 4.6.1 and check again?

Looks like it is already installed:

image

Have you used the exe installer or zip archive?

I used the exe installer (with admin privileges)

Can you verify that all files are present? (compared to zip version)

Thanks for your help so far @PiotrMachowski!

As far as i can see, the files are the same in both directories (installation vs zip).
Also tried to run the application from the unzipped version, but the errors are the same as with the installer version (also the debug variant, same exception).

Edit: also the mentioned file in the exception exists in the directories

Edit 2:
Some more info about the system:

Edition	Windows 11 Pro
Version	21H2
Installed on	‎6 ‎Oct ‎2021
OS build	22000.194
Experience	Windows Feature Experience Pack 1000.22000.194.0

The OS has been freshly installed yesterday

Is there anything else i could do to identify the issue?

Can you install Microsoft Visual C++ 2015+ and try again?

Nice!

At first it didn't work because i installed the x64 version.
After installing the x86 distributable, it now starts.

Thanks so much!

Thank you for your cooperation!

hi, I am still facing this issue after installing the Visual C++ 2015 distributable linked above.

Just FYI. although the Homeassistant window was not appearing on screen when clicking on the system tray icon, it would still show in the task switcher screen.

EDIT:
The system tray pop-up menu is available and i can perform actions. just the on screen window is not appearing. It did appear after fresh install where I was able to ender configuration information and login.

Same here

@fernandex00 so you got it working?

@fernandex00 so you got it working?

No, i have the same problem, even after installing c++, the app is in the taskbar, but im not able to enter

Which version have you installed?