Error System.NullReferenceException at startup

V2 error reports
Post Reply
F4INZ
Novice Class
Posts: 7
Joined: 05 Mar 2022, 19:54
Location: IN94OM

Error System.NullReferenceException at startup

Post by F4INZ »

Hello,

congratulations on Log4OM development; great job !!!
I'm exploiting version 2.20.0.0 and, after (I think) a Windows 10 update, I encounter an error when starting Log4OM (admin mode or not) :

2022-03-28 20:27:09.2202 ERROR: [ConfigurationLogic][LoadConfig] : [EXCEPTION] La référence d'objet n'est pas définie à une instance d'un objet. System.NullReferenceException: La référence d'objet n'est pas définie à une instance d'un objet.
à L4ONG.BL.ConfigurationLogic.LoadConfig()

I've found a post that talks about a similar problem but solution doen't work for me : https://forum.log4om.com/viewtopic.php? ... ion#p27588

Complete log is in attachment.
Before trying restoring steps, is it anorher simple solution to apply ?

Thanks a lot in advance for your ideas :-)
Best 73
LOG4OM2_log_UI_20220328.txt
(12.73 KiB) Downloaded 98 times
Best 73,
Andre - F4INz
F4INZ
Novice Class
Posts: 7
Joined: 05 Mar 2022, 19:54
Location: IN94OM

Re: Error System.NullReferenceException at startup

Post by F4INZ »

Happy end :D

I have found the solution to my problem...

I don't know why, but my config.json file was corrupted and filled ny NULL characters (see attachment). On closing Log4OM, a version of this corrupted file was written to backup folder.
So I need to restore N-1 backup version (content is checked by editor notepad++) and all returns to work fine.

So don't blindly believe your application when it tells you "Backup completed successfully !" ...

May I suggest, as an improvement, that the application checks, when saving, that it does not write a file full of NULLs?

Enjoy your Log4OM !
best 73
F4INZ_20220327_213147_config.7z
(245 Bytes) Downloaded 103 times
Best 73,
Andre - F4INz
Post Reply