.Net desktop errors
Morning all
I woke up to errors on hass.agent.exe starting up on my machine. Been running fine for years! Is this a me issue? Should i download and install teh suggested, or is it because i am running an out of date version or something?
101 Replies
Help us Help Others!
To help others find answers, you can mark your question as solved via
Right click solution message -> Apps -> ✅ Mark Solution
Help us Help You!
Please don't delete messages or posts because it makes it impossible to understand what happened. If you don't want your messages to be seen then don't post here.
Please provide us with the version number of your app.
You can find it by clicking the ? at the bottom of the main page and checking under the logo that shows.We will help as soon as possible. While you're waiting you can try the following:
- Checkout the documentation. - Search here in discord for previously solved similar issues.
@Amadeo
HASS Agent version info
I can't open the app to get inside it so i beleive those are correct.
Hmm, this is weird
Anything changed on Ur system?
A reinstall should fix it, backup config if needed, but doesn't explain why it broke 🤔
.net is bundled with hass.agent so it shouldn't have been removed unless by another program or yourself.
my company patch managment could have caused it and updated i guess
Mmm was going to suggest overprotective antivirus but work computers are even worse
Its my business, and i run the IT 🙂
Oh, that changes it then 😂
it looks like it updated to 0.36
from 0.33
Let me backup and re-install. How do i backup the config?
Did you install .net before hass.agent?
i would guess it was installed on my machine previously yes
Hmm if 6 was installed that makes the error odd, as it should've used a link pointing to any 6.x
You've tried restarting I assume?
no. let me try that now, but i think my machine rebooted last night and thats when the issue started
hmmm
not sure that is correct
%appdata%\LAB02 Research\HASS.Agent\config
does not exist
i see a config folder in the program files dir
Program files is for satellite, app is user install so orogramdata
Oh yeah sorry, sent wrong link, I haven't pushed the new config folders to docs yet
i have a sepererte folder in program files for the satallite service
ok so just grab the one in program files
Give me a sec
maybe i just try and reinstall over the top?
will that keep my config?
Usually, not always tho
ok so shall i just copy that config stuff i shared a screen shot of? then install over the top after a quick reboot?
C:\Users\user\AppData\Local\HASS.Agent\Client\config
and C:\Program Files\HASS.Agent Satellite Service\Service\config
yep, everythin1g in that folder, localappdata is more important thoughJust rebooting
Can you stick around pretty please 🙂
Ok reboot didnt help
ive copied the app data stuff
Just to confirm, im just copying THese folders and nothing else?
C:\Program Files\HASS.Agent\Service\config
i dont have a config folder in the satallite service\service folder. I dont think i use the satallite service?
and do i need to worry about this file?
C:\Program Files\HASS.Agent\Service\appsettings.json
https://www.hass-agent.io/0.1/getting-started/installation/#remove-old-hassagent-optional
This test link should work now
Installation - Hass Agent Documentation
Access your homeassistant from any windows machine - send notifications, collect data and automate repetitive tasks
Ive taken copies and i am just gonna try and install over the top
most people wont
interesting, it is installing 6.0.20 of .net desktop runtime
which version are you downloading?
the one linked on that page
2.1.0
https://github.com/hass-agent/HASS.Agent/releases/latest/download/HASS.Agent.Installer.exe
Hm, the installer should install the required .net
yeah it did
I assume i dont use the "Migrate" option
Just weird, i can only assume my patch management some how uninstalled it which is really weird
Actually @Amadeo docs modification here? migrate only checks lab02 right?
leave it unchecked right?
i leave it unchecked yes
idk about the code running it tho
well...
this is really fucking weird
after installing both the app and the satallite service
and watching them both try and install .net desktop 6.0.20 which is showing as installed today
install dates all showing today!
ooh
Could this be the issue
i have version 8 installed too
no, windows allows for multiple side by side, i have 8 as well
trying a repair on v6
still same error
what do i try now?
Also does this matter?
is the other beta installed for a different user?
shouldnt be more than 2 if its just 1 user
No only one user on here
removing it all, rebooting and starting again
beta1 is definitely wrong then.
hang on
have you done it already?
yes
about to reboot
all good
just waiting for desktop runtime to uninstall and then rtbooting
I thinkk i had to install the beta because my notification stuff wasnt working
i can't remember it was soo long ago
i wont install beta now
and see if it works
version doesnt matter, im on beta myself, just shouldnt be more than 1 version
Ok then I’ll install the beta after the reboot instead
As I’m sure there was a reason I had that installed
Thank you for all your help so far
I’ve become so reliant on this app for my notifications
Shall i go for 2.1.1 beta 3?
yep
feels weird that both the main app and the statalite app are asking to install the .net thing
same error
all completely fresh
And just randomly happened?
Completely randomly! Its been working fine for months and months
and its not sophos by the way 🙂
I'd say definitely ur system, but potentially something we need to account for.
Yep no doubt, but not sure what i do to investigate what on my system
dotnet --info
in powershell/cmd could help narrow it downokay, definitely .NET then
shall i remove/repair v8?
i assume
dotnet
on its own also doesn't work?
repair should be all thats needed, the latest version is used for CLI
and pathbut 6 will be available to apps
hmm,
dotnet --list-sdks
?interesting
when i tried to click change
and
--list-runtimes
?The all fail with that same error
check directory first, if files are there you dont want to just removed path and program entry
except for this one
yeah except that one
which dir?
check for 8.x
and contents of it
8.0.12 is empty
8.0.11 has 6 dll's
8.0.10 is empty
8.0.8 is empty
6 suggests something wrong with the installation, problem is that its hard to clean up all of the stuff it does to your computer
my path variables
so whats my next step?
reinstall v 8?
will install 8.12 tho or newer, not solving the problem
Well the one showing in add/remove programs is 11, (i cant remove it from there). So wonder if i try and install 11?
worth a shot
ok it came up with rapair straight away
lets see what that does
Microsoft Store - Download Center
Download Microsoft .NET Framework Repair Tool from Official Microso...
This tool detects and tries to fix some frequently occurring issues with the setup of Microsoft .NET Framework or with updates to the Microsoft .NET Framework.
Solution
let me now try and install 12
as thats whats in the error
ok
progress
dotnet --info works now
scrshot?
or is v6 showing?
V6 shows
could restart and try hass.agent
def need a restart?
just doing a work thing so need 5 mins for that
yes/no
try without it then
.net usually needs it because of the changes to system, but technically only a repair not an install so should be fine
ill reboot in a second
just doing a work thing
yay
we are back up and running
@DrR0x you absolute legend! thank you for bearing with me on that!
and all my notifications are back working
amazing
fuck you .net 😛