Ylianst / MeshCentralAssistant

Tray icon tool for the MeshCentral Agent. It displays the state of the agent, you can start and stop the agent and request help.
https://meshcentral.com
Apache License 2.0
36 stars 26 forks source link

Can't execute meshcentral assistant in system tray ,always connected #19

Closed jefflin0902 closed 2 years ago

jefflin0902 commented 2 years ago

I download meshcentral assistant the "system tray ,always connected" then execute it, But it not work, and create a txt file .....

debug.txt

UnhandledExceptionEventSink: System.ArgumentException: An item with the same key has already been added. at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource) at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add) at MeshAssistant.MeshCentralAgent.checkMshStr(String mshstr) at MeshAssistant.MainForm..ctor(String[] args) at MeshAssistant.Program.Main(String[] args)

Ylianst commented 2 years ago

Seems like your .MSH file has the same key multiple times. I put in a fix for this, only the first key value will be used if the same key is present multiple times. Fix will be in MeshCentral v0.9.74.

jefflin0902 commented 2 years ago

It is fixed, Thanks