HASS Agent keeps shutting down

I’m using the latest version of HASS Agent and for some reason it keeps shutting down on its own. My Windows 10 HTPC runs 24/7 and never goes to sleep. I use MadVR with my projector, and I have that running 24/7 and it never shuts down. Does anyone see anything in the last log I saved, that might show why it shuts down on its own?

2025-04-17 16:54:05.386 -04:00 [INF] [MAIN] HASS.Agent version: 2.1.0
2025-04-17 16:54:05.395 -04:00 [INF] [SETTINGS] Config storage path: C:\Users\HTPC\AppData\Local\HASS.Agent\Client\config
2025-04-17 16:54:05.510 -04:00 [INF] [SETTINGS] Configuration loaded
2025-04-17 16:54:05.513 -04:00 [INF] [LOCALIZATION] Selected UI culture: [en] English
2025-04-17 16:54:05.734 -04:00 [INF] [RADIOMGR] Radio management permission granted
2025-04-17 16:54:05.753 -04:00 [INF] [RADIOMGR] Ready
2025-04-17 16:54:07.797 -04:00 [INF] [INTERNALSENSORS] Ready
2025-04-17 16:54:10.237 -04:00 [ERR] [VIRTDESKT] Error initializing Virtual Desktop Manager, your Windows version may be unsupported
2025-04-17 16:54:10.295 -04:00 [INF] [AUDIOMGR] initialized
2025-04-17 16:54:10.306 -04:00 [INF] [SETTINGS_QUICKACTIONS] Config not found, no entities loaded
2025-04-17 16:54:10.308 -04:00 [INF] [SETTINGS_COMMANDS] Config not found, no entities loaded
2025-04-17 16:54:10.309 -04:00 [INF] [SETTINGS_SENSORS] Config not found, no entities loaded
2025-04-17 16:54:10.312 -04:00 [INF] [LOCALAPI] Initializing …
2025-04-17 16:54:10.313 -04:00 [INF] [MQTT] Identifying as device: DESKTOP-EI7KJFJ
2025-04-17 16:54:10.314 -04:00 [INF] [HOTKEY] Completed bind for global quickaction hotkey
2025-04-17 16:54:10.322 -04:00 [INF] [MQTT] Connecting …
2025-04-17 16:54:10.330 -04:00 [ERR] [SERVICE] Unable to retrieve install path from service, and default path not found
2025-04-17 16:54:10.357 -04:00 [WRN] [NOTIFIER] Showing notifications might fail, reason: DisabledForUser
2025-04-17 16:54:10.366 -04:00 [INF] [MEDIA] Ready
2025-04-17 16:54:10.392 -04:00 [INF] [NOTIFIER] Ready
2025-04-17 16:54:10.611 -04:00 [FTL] An unexpected error occurred when attempting to start the server
System.Net.HttpListenerException (183): Failed to listen on prefix ‘http://+:5115/’ because it conflicts with an existing registration on the machine.
at System.Net.HttpListener.AddPrefixCore(String registeredPrefix)
at System.Net.HttpListener.AddAllPrefixes()
at System.Net.HttpListener.Start()
at Grapevine.RestServer.Start()
at Grapevine.MiddlewareExtensions.Run(IRestServer server)
at HASS.Agent.API.ApiManager.Initialize() in D:\a\HASS.Agent\HASS.Agent\src\HASS.Agent\HASS.Agent\API\ApiManager.cs:line 92
2025-04-17 16:54:10.612 -04:00 [FTL] [LOCALAPI] Error trying to bind the API to port 5115: Cannot access a disposed object.
Object name: ‘System.Net.HttpListener’.
System.ObjectDisposedException: Cannot access a disposed object.
Object name: ‘System.Net.HttpListener’.
at System.Net.HttpListener.CheckDisposed()
at System.Net.HttpListener.Stop()
at Grapevine.RestServer.Start()
at Grapevine.MiddlewareExtensions.Run(IRestServer server)
at HASS.Agent.API.ApiManager.Initialize() in D:\a\HASS.Agent\HASS.Agent\src\HASS.Agent\HASS.Agent\API\ApiManager.cs:line 92
2025-04-17 16:54:10.823 -04:00 [INF] [MQTT] Connected
2025-04-17 16:54:10.825 -04:00 [INF] [HASS_API] Home Assistant version: 2025.3.4
2025-04-17 16:54:10.909 -04:00 [INF] [HASS_API] System connected with http://homeassistant.local:8123
2025-04-17 16:54:12.073 -04:00 [INF] [MQTT] Connected
2025-04-17 16:54:12.342 -04:00 [INF] [MQTT] Initial registration completed
2025-04-17 16:54:13.306 -04:00 [INF] [MQTT] Connected
2025-04-17 16:54:14.556 -04:00 [INF] [MQTT] Connected
2025-04-17 16:54:15.820 -04:00 [INF] [MQTT] Connected
2025-04-17 16:54:17.070 -04:00 [INF] [MQTT] Connected
2025-04-17 16:54:18.306 -04:00 [INF] [MQTT] Connected
2025-04-17 16:54:19.550 -04:00 [INF] [MQTT] Connected
2025-04-17 16:54:20.795 -04:00 [INF] [MQTT] Connected
2025-04-17 16:54:22.038 -04:00 [INF] [MQTT] Connected
2025-04-17 16:54:22.900 -04:00 [INF] [SYSTEM] Application shutting down
2025-04-17 16:54:22.900 -04:00 [INF] [MQTT] Disconnected
2025-04-17 16:54:22.954 -04:00 [INF] [SYSTEM] Application shutdown complete
2025-04-17 16:58:40.844 -04:00 [INF] [MAIN] HASS.Agent version: 2.1.1
2025-04-17 16:58:40.851 -04:00 [INF] [SETTINGS] Config storage path: C:\Users\HTPC\AppData\Local\HASS.Agent\Client\config
2025-04-17 16:58:40.965 -04:00 [INF] [SETTINGS] Configuration loaded
2025-04-17 16:58:40.968 -04:00 [INF] [LOCALIZATION] Selected UI culture: [en] English
2025-04-17 16:58:41.653 -04:00 [INF] [RADIOMGR] Radio management permission granted
2025-04-17 16:58:41.667 -04:00 [INF] [RADIOMGR] Ready
2025-04-17 16:58:43.703 -04:00 [INF] [INTERNALSENSORS] Ready
2025-04-17 16:58:46.350 -04:00 [ERR] [VIRTDESKT] Error initializing Virtual Desktop Manager, your Windows version may be unsupported
2025-04-17 16:58:46.452 -04:00 [INF] [AUDIOMGR] initialized
2025-04-17 16:58:46.464 -04:00 [INF] [SETTINGS_QUICKACTIONS] Config not found, no entities loaded
2025-04-17 16:58:46.471 -04:00 [INF] [SETTINGS_COMMANDS] Config not found, no entities loaded
2025-04-17 16:58:46.479 -04:00 [INF] [SETTINGS_SENSORS] Config not found, no entities loaded
2025-04-17 16:58:46.489 -04:00 [INF] [HOTKEY] Completed bind for global quickaction hotkey
2025-04-17 16:58:46.548 -04:00 [INF] [LOCALAPI] Initializing …
2025-04-17 16:58:46.606 -04:00 [INF] [MQTT] Identifying as device: DESKTOP-EI7KJFJ
2025-04-17 16:58:46.659 -04:00 [INF] [MQTT] Connecting …
2025-04-17 16:58:46.681 -04:00 [ERR] [SERVICE] Unable to retrieve install path from service, and default path not found
2025-04-17 16:58:46.724 -04:00 [INF] [MEDIA] Ready
2025-04-17 16:58:46.726 -04:00 [WRN] [NOTIFIER] Showing notifications might fail, reason: DisabledForUser
2025-04-17 16:58:46.774 -04:00 [INF] [NOTIFIER] Ready
2025-04-17 16:58:47.202 -04:00 [INF] [MQTT] Connected
2025-04-17 16:58:47.202 -04:00 [INF] [HASS_API] Home Assistant version: 2025.3.4
2025-04-17 16:58:47.269 -04:00 [INF] [HASS_API] System connected with http://homeassistant.local:8123
2025-04-17 16:58:47.575 -04:00 [INF] [LOCALAPI] listening on port 5115
2025-04-17 16:58:48.677 -04:00 [INF] [MQTT] Initial registration completed
2025-04-17 16:59:28.935 -04:00 [ERR] [AUDIOMGR] failed to retrieve devices: Element not found. (0x80070490)
System.Runtime.InteropServices.COMException (0x80070490): Element not found. (0x80070490)
at HASS.Agent.Shared.Managers.Audio.AudioManager.GetDevices() in D:\a\HASS.Agent\HASS.Agent\src\HASS.Agent\HASS.Agent.Shared\Managers\Audio\AudioManager.cs:line 220
2025-04-17 16:59:30.945 -04:00 [ERR] [AUDIOMGR] failed to retrieve devices: Element not found. (0x80070490)
System.Runtime.InteropServices.COMException (0x80070490): Element not found. (0x80070490)
at HASS.Agent.Shared.Managers.Audio.AudioManager.GetDevices() in D:\a\HASS.Agent\HASS.Agent\src\HASS.Agent\HASS.Agent.Shared\Managers\Audio\AudioManager.cs:line 220
2025-04-17 16:59:32.963 -04:00 [ERR] [AUDIOMGR] failed to retrieve devices: Element not found. (0x80070490)
System.Runtime.InteropServices.COMException (0x80070490): Element not found. (0x80070490)
at HASS.Agent.Shared.Managers.Audio.AudioManager.GetDevices() in D:\a\HASS.Agent\HASS.Agent\src\HASS.Agent\HASS.Agent.Shared\Managers\Audio\AudioManager.cs:line 220
2025-04-17 16:59:34.979 -04:00 [ERR] [AUDIOMGR] failed to retrieve devices: Element not found. (0x80070490)
System.Runtime.InteropServices.COMException (0x80070490): Element not found. (0x80070490)
at HASS.Agent.Shared.Managers.Audio.AudioManager.GetDevices() in D:\a\HASS.Agent\HASS.Agent\src\HASS.Agent\HASS.Agent.Shared\Managers\Audio\AudioManager.cs:line 220
2025-04-17 16:59:36.995 -04:00 [ERR] [AUDIOMGR] failed to retrieve devices: Element not found. (0x80070490)
System.Runtime.InteropServices.COMException (0x80070490): Element not found. (0x80070490)
at HASS.Agent.Shared.Managers.Audio.AudioManager.GetDevices() in D:\a\HASS.Agent\HASS.Agent\src\HASS.Agent\HASS.Agent.Shared\Managers\Audio\AudioManager.cs:line 220
2025-04-17 16:59:39.023 -04:00 [ERR] [AUDIOMGR] failed to retrieve devices: Element not found. (0x80070490)
System.Runtime.InteropServices.COMException (0x80070490): Element not found. (0x80070490)
at HASS.Agent.Shared.Managers.Audio.AudioManager.GetDevices() in D:\a\HASS.Agent\HASS.Agent\src\HASS.Agent\HASS.Agent.Shared\Managers\Audio\AudioManager.cs:line 220
2025-04-17 16:59:41.055 -04:00 [ERR] [AUDIOMGR] failed to retrieve devices: Element not found. (0x80070490)
System.Runtime.InteropServices.COMException (0x80070490): Element not found. (0x80070490)
at HASS.Agent.Shared.Managers.Audio.AudioManager.GetDevices() in D:\a\HASS.Agent\HASS.Agent\src\HASS.Agent\HASS.Agent.Shared\Managers\Audio\AudioManager.cs:line 220
2025-04-17 16:59:43.088 -04:00 [ERR] [AUDIOMGR] failed to retrieve devices: Element not found. (0x80070490)
System.Runtime.InteropServices.COMException (0x80070490): Element not found. (0x80070490)
at HASS.Agent.Shared.Managers.Audio.AudioManager.GetDevices() in D:\a\HASS.Agent\HASS.Agent\src\HASS.Agent\HASS.Agent.Shared\Managers\Audio\AudioManager.cs:line 220
2025-04-17 16:59:45.105 -04:00 [ERR] [AUDIOMGR] failed to retrieve devices: Element not found. (0x80070490)
System.Runtime.InteropServices.COMException (0x80070490): Element not found. (0x80070490)
at HASS.Agent.Shared.Managers.Audio.AudioManager.GetDevices() in D:\a\HASS.Agent\HASS.Agent\src\HASS.Agent\HASS.Agent.Shared\Managers\Audio\AudioManager.cs:line 220
2025-04-17 16:59:47.120 -04:00 [ERR] [AUDIOMGR] failed to retrieve devices: Element not found. (0x80070490)
System.Runtime.InteropServices.COMException (0x80070490): Element not found. (0x80070490)
at HASS.Agent.Shared.Managers.Audio.AudioManager.GetDevices() in D:\a\HASS.Agent\HASS.Agent\src\HASS.Agent\HASS.Agent.Shared\Managers\Audio\AudioManager.cs:line 220
2025-04-17 16:59:49.135 -04:00 [ERR] [AUDIOMGR] failed to retrieve devices: Element not found. (0x80070490)
System.Runtime.InteropServices.COMException (0x80070490): Element not found. (0x80070490)
at HASS.Agent.Shared.Managers.Audio.AudioManager.GetDevices() in D:\a\HASS.Agent\HASS.Agent\src\HASS.Agent\HASS.Agent.Shared\Managers\Audio\AudioManager.cs:line 220
2025-04-17 16:59:51.150 -04:00 [ERR] [AUDIOMGR] failed to retrieve devices: Element not found. (0x80070490)
System.Runtime.InteropServices.COMException (0x80070490): Element not found. (0x80070490)
at HASS.Agent.Shared.Managers.Audio.AudioManager.GetDevices() in D:\a\HASS.Agent\HASS.Agent\src\HASS.Agent\HASS.Agent.Shared\Managers\Audio\AudioManager.cs:line 220
2025-04-17 16:59:53.164 -04:00 [ERR] [AUDIOMGR] failed to retrieve devices: Element not found. (0x80070490)
System.Runtime.InteropServices.COMException (0x80070490): Element not found. (0x80070490)
at HASS.Agent.Shared.Managers.Audio.AudioManager.GetDevices() in D:\a\HASS.Agent\HASS.Agent\src\HASS.Agent\HASS.Agent.Shared\Managers\Audio\AudioManager.cs:line 220
2025-04-17 16:59:55.186 -04:00 [ERR] [AUDIOMGR] failed to retrieve devices: Element not found. (0x80070490)
System.Runtime.InteropServices.COMException (0x80070490): Element not found. (0x80070490)
at HASS.Agent.Shared.Managers.Audio.AudioManager.GetDevices() in D:\a\HASS.Agent\HASS.Agent\src\HASS.Agent\HASS.Agent.Shared\Managers\Audio\AudioManager.cs:line 220
2025-04-17 16:59:57.195 -04:00 [ERR] [AUDIOMGR] failed to retrieve devices: Element not found. (0x80070490)
System.Runtime.InteropServices.COMException (0x80070490): Element not found. (0x80070490)
at HASS.Agent.Shared.Managers.Audio.AudioManager.GetDevices() in D:\a\HASS.Agent\HASS.Agent\src\HASS.Agent\HASS.Agent.Shared\Managers\Audio\AudioManager.cs:line 220
2025-04-17 16:59:59.213 -04:00 [ERR] [AUDIOMGR] failed to retrieve devices: Element not found. (0x80070490)
System.Runtime.InteropServices.COMException (0x80070490): Element not found. (0x80070490)
at HASS.Agent.Shared.Managers.Audio.AudioManager.GetDevices() in D:\a\HASS.Agent\HASS.Agent\src\HASS.Agent\HASS.Agent.Shared\Managers\Audio\AudioManager.cs:line 220
2025-04-17 17:00:01.231 -04:00 [ERR] [AUDIOMGR] failed to retrieve devices: Element not found. (0x80070490)
System.Runtime.InteropServices.COMException (0x80070490): Element not found. (0x80070490)
at HASS.Agent.Shared.Managers.Audio.AudioManager.GetDevices() in D:\a\HASS.Agent\HASS.Agent\src\HASS.Agent\HASS.Agent.Shared\Managers\Audio\AudioManager.cs:line 220
2025-04-17 17:00:03.249 -04:00 [ERR] [AUDIOMGR] failed to retrieve devices: Element not found. (0x80070490)
System.Runtime.InteropServices.COMException (0x80070490): Element not found. (0x80070490)
at HASS.Agent.Shared.Managers.Audio.AudioManager.GetDevices() in D:\a\HASS.Agent\HASS.Agent\src\HASS.Agent\HASS.Agent.Shared\Managers\Audio\AudioManager.cs:line 220
2025-04-17 17:00:05.266 -04:00 [ERR] [AUDIOMGR] failed to retrieve devices: Element not found. (0x80070490)
System.Runtime.InteropServices.COMException (0x80070490): Element not found. (0x80070490)
at HASS.Agent.Shared.Managers.Audio.AudioManager.GetDevices() in D:\a\HASS.Agent\HASS.Agent\src\HASS.Agent\HASS.Agent.Shared\Managers\Audio\AudioManager.cs:line 220
2025-04-17 17:00:07.269 -04:00 [ERR] [AUDIOMGR] failed to retrieve devices: Element not found. (0x80070490)
System.Runtime.InteropServices.COMException (0x80070490): Element not found. (0x80070490)
at HASS.Agent.Shared.Managers.Audio.AudioManager.GetDevices() in D:\a\HASS.Agent\HASS.Agent\src\HASS.Agent\HASS.Agent.Shared\Managers\Audio\AudioManager.cs:line 220
2025-04-17 17:00:09.285 -04:00 [ERR] [AUDIOMGR] failed to retrieve devices: Element not found. (0x80070490)
System.Runtime.InteropServices.COMException (0x80070490): Element not found. (0x80070490)
at HASS.Agent.Shared.Managers.Audio.AudioManager.GetDevices() in D:\a\HASS.Agent\HASS.Agent\src\HASS.Agent\HASS.Agent.Shared\Managers\Audio\AudioManager.cs:line 220
2025-04-17 17:00:11.304 -04:00 [ERR] [AUDIOMGR] failed to retrieve devices: Element not found. (0x80070490)
System.Runtime.InteropServices.COMException (0x80070490): Element not found. (0x80070490)
at HASS.Agent.Shared.Managers.Audio.AudioManager.GetDevices() in D:\a\HASS.Agent\HASS.Agent\src\HASS.Agent\HASS.Agent.Shared\Managers\Audio\AudioManager.cs:line 220
2025-04-17 17:00:13.320 -04:00 [ERR] [AUDIOMGR] failed to retrieve devices: Element not found. (0x80070490)
System.Runtime.InteropServices.COMException (0x80070490): Element not found. (0x80070490)
at HASS.Agent.Shared.Managers.Audio.AudioManager.GetDevices() in D:\a\HASS.Agent\HASS.Agent\src\HASS.Agent\HASS.Agent.Shared\Managers\Audio\AudioManager.cs:line 220
2025-04-17 17:00:15.337 -04:00 [ERR] [AUDIOMGR] failed to retrieve devices: Element not found. (0x80070490)
System.Runtime.InteropServices.COMException (0x80070490): Element not found. (0x80070490)
at HASS.Agent.Shared.Managers.Audio.AudioManager.GetDevices() in D:\a\HASS.Agent\HASS.Agent\src\HASS.Agent\HASS.Agent.Shared\Managers\Audio\AudioManager.cs:line 220
2025-04-17 17:00:17.354 -04:00 [ERR] [AUDIOMGR] failed to retrieve devices: Element not found. (0x80070490)
System.Runtime.InteropServices.COMException (0x80070490): Element not found. (0x80070490)
at HASS.Agent.Shared.Managers.Audio.AudioManager.GetDevices() in D:\a\HASS.Agent\HASS.Agent\src\HASS.Agent\HASS.Agent.Shared\Managers\Audio\AudioManager.cs:line 220
2025-04-17 17:00:19.370 -04:00 [ERR] [AUDIOMGR] failed to retrieve devices: Element not found. (0x80070490)
System.Runtime.InteropServices.COMException (0x80070490): Element not found. (0x80070490)
at HASS.Agent.Shared.Managers.Audio.AudioManager.GetDevices() in D:\a\HASS.Agent\HASS.Agent\src\HASS.Agent\HASS.Agent.Shared\Managers\Audio\AudioManager.cs:line 220
2025-04-17 17:00:21.386 -04:00 [ERR] [AUDIOMGR] failed to retrieve devices: Element not found. (0x80070490)
System.Runtime.InteropServices.COMException (0x80070490): Element not found. (0x80070490)
at HASS.Agent.Shared.Managers.Audio.AudioManager.GetDevices() in D:\a\HASS.Agent\HASS.Agent\src\HASS.Agent\HASS.Agent.Shared\Managers\Audio\AudioManager.cs:line 220
2025-04-17 17:00:23.401 -04:00 [ERR] [AUDIOMGR] failed to retrieve devices: Element not found. (0x80070490)
System.Runtime.InteropServices.COMException (0x80070490): Element not found. (0x80070490)
at HASS.Agent.Shared.Managers.Audio.AudioManager.GetDevices() in D:\a\HASS.Agent\HASS.Agent\src\HASS.Agent\HASS.Agent.Shared\Managers\Audio\AudioManager.cs:line 220
2025-04-17 17:00:25.418 -04:00 [ERR] [AUDIOMGR] failed to retrieve devices: Element not found. (0x80070490)
System.Runtime.InteropServices.COMException (0x80070490): Element not found. (0x80070490)
at HASS.Agent.Shared.Managers.Audio.AudioManager.GetDevices() in D:\a\HASS.Agent\HASS.Agent\src\HASS.Agent\HASS.Agent.Shared\Managers\Audio\AudioManager.cs:line 220
2025-04-17 17:00:27.436 -04:00 [ERR] [AUDIOMGR] failed to retrieve devices: Element not found. (0x80070490)
System.Runtime.InteropServices.COMException (0x80070490): Element not found. (0x80070490)
at HASS.Agent.Shared.Managers.Audio.AudioManager.GetDevices() in D:\a\HASS.Agent\HASS.Agent\src\HASS.Agent\HASS.Agent.Shared\Managers\Audio\AudioManager.cs:line 220
2025-04-17 17:00:29.459 -04:00 [ERR] [AUDIOMGR] failed to retrieve devices: Element not found. (0x80070490)
System.Runtime.InteropServices.COMException (0x80070490): Element not found. (0x80070490)
at HASS.Agent.Shared.Managers.Audio.AudioManager.GetDevices() in D:\a\HASS.Agent\HASS.Agent\src\HASS.Agent\HASS.Agent.Shared\Managers\Audio\AudioManager.cs:line 220
2025-04-17 17:00:31.482 -04:00 [ERR] [AUDIOMGR] failed to retrieve devices: Element not found. (0x80070490)
System.Runtime.InteropServices.COMException (0x80070490): Element not found. (0x80070490)
at HASS.Agent.Shared.Managers.Audio.AudioManager.GetDevices() in D:\a\HASS.Agent\HASS.Agent\src\HASS.Agent\HASS.Agent.Shared\Managers\Audio\AudioManager.cs:line 220
2025-04-17 17:00:33.497 -04:00 [ERR] [AUDIOMGR] failed to retrieve devices: Element not found. (0x80070490)
System.Runtime.InteropServices.COMException (0x80070490): Element not found. (0x80070490)
at HASS.Agent.Shared.Managers.Audio.AudioManager.GetDevices() in D:\a\HASS.Agent\HASS.Agent\src\HASS.Agent\HASS.Agent.Shared\Managers\Audio\AudioManager.cs:line 220
2025-04-17 17:00:35.513 -04:00 [ERR] [AUDIOMGR] failed to retrieve devices: Element not found. (0x80070490)
System.Runtime.InteropServices.COMException (0x80070490): Element not found. (0x80070490)
at HASS.Agent.Shared.Managers.Audio.AudioManager.GetDevices() in D:\a\HASS.Agent\HASS.Agent\src\HASS.Agent\HASS.Agent.Shared\Managers\Audio\AudioManager.cs:line 220
2025-04-17 17:00:37.530 -04:00 [ERR] [AUDIOMGR] failed to retrieve devices: Element not found. (0x80070490)
System.Runtime.InteropServices.COMException (0x80070490): Element not found. (0x80070490)
at HASS.Agent.Shared.Managers.Audio.AudioManager.GetDevices() in D:\a\HASS.Agent\HASS.Agent\src\HASS.Agent\HASS.Agent.Shared\Managers\Audio\AudioManager.cs:line 220
2025-04-17 17:00:39.546 -04:00 [ERR] [AUDIOMGR] failed to retrieve devices: Element not found. (0x80070490)
System.Runtime.InteropServices.COMException (0x80070490): Element not found. (0x80070490)
at HASS.Agent.Shared.Managers.Audio.AudioManager.GetDevices() in D:\a\HASS.Agent\HASS.Agent\src\HASS.Agent\HASS.Agent.Shared\Managers\Audio\AudioManager.cs:line 220
2025-04-17 17:00:41.564 -04:00 [ERR] [AUDIOMGR] failed to retrieve devices: Element not found. (0x80070490)
System.Runtime.InteropServices.COMException (0x80070490): Element not found. (0x80070490)
at HASS.Agent.Shared.Managers.Audio.AudioManager.GetDevices() in D:\a\HASS.Agent\HASS.Agent\src\HASS.Agent\HASS.Agent.Shared\Managers\Audio\AudioManager.cs:line 220
2025-04-17 17:01:19.763 -04:00 [ERR] [AUDIOMGR] failed to retrieve devices: Element not found. (0x80070490)
System.Runtime.InteropServices.COMException (0x80070490): Element not found. (0x80070490)
at HASS.Agent.Shared.Managers.Audio.AudioManager.GetDevices() in D:\a\HASS.Agent\HASS.Agent\src\HASS.Agent\HASS.Agent.Shared\Managers\Audio\AudioManager.cs:line 220

Is anyone using HASS on Windows 10 that can comment on this, whether it stays running or not?

I have 3 devices running Windows 10, and 2 run fine. On 1 it closes by itself in the background. The only difference is that the 2 working fine runs full fat Windows 10 Pro, and the 1 having issues runs Windows 10 iOT Enterprise LTSC.

Got the same problem and I’m running latest version of Windows 11

I was having this issue. I closed it down, then opened the HASS.Agent.exe as Administrator. The error went away now and Local API says running. This may have been after repeated Defender attempts to shut down the exe, I have to constantly go and allow it, but that’s probably due to my lack of whitelisting setup.