HomeGenie only loading base installation on each restart

I’ve just encountered this problem in the last 24 hours. When I restart HG it will only start with the base installation. All my programs refuse to load. Log errors as follows

2018-03-21 13:33:43.3848 Info HomeAutomation.HomeGenie.Automation 6 Automation Program Program.Status Idle
2018-03-21 13:33:43.3876 Info HomeAutomation.HomeGenie.Automation 7 Automation Program Program.Status Idle
2018-03-21 13:33:43.3901 Info HomeAutomation.HomeGenie.Automation 16 Automation Program Program.Status Idle
2018-03-21 13:33:43.3934 Info HomeAutomation.HomeGenie.Automation 34 Automation Program Program.Status Idle
2018-03-21 13:33:43.3962 Info HomeAutomation.HomeGenie.Automation 82 Automation Program Program.Status Idle
2018-03-21 13:33:43.3991 Info HomeAutomation.HomeGenie.Automation 88 Automation Program Program.Status Idle
2018-03-21 13:33:43.4020 Info HomeAutomation.HomeGenie.Automation 90 Automation Program Program.Status Idle
2018-03-21 13:33:43.4052 Info HomeAutomation.HomeGenie.Automation 91 Automation Program Program.Status Idle
2018-03-21 13:33:43.4081 Info HomeAutomation.HomeGenie.Automation 112 Automation Program Program.Status Idle
2018-03-21 13:33:43.4117 Info HomeAutomation.HomeGenie.Automation 142 Automation Program Program.Status Idle
2018-03-21 13:33:43.4148 Info HomeAutomation.HomeGenie.Automation 180 Automation Program Program.Status Idle
2018-03-21 13:33:43.4178 Info HomeAutomation.HomeGenie.Automation 200 Automation Program Program.Status Idle
2018-03-21 13:33:43.4204 Info HomeAutomation.HomeGenie.Automation 93 Automation Program Program.Status Idle
2018-03-21 13:33:43.4227 Info HomeAutomation.HomeGenie.Automation 8 Automation Program Program.Status Idle
2018-03-21 13:33:43.4260 Info HomeAutomation.HomeGenie.Automation 505 Automation Program Program.Status Idle
2018-03-21 13:33:43.4400 Info HomeAutomation.HomeGenie.Automation 29 Automation Program Program.Status Idle
2018-03-21 13:33:43.4457 Error HomeAutomation.HomeGenie.Automation 93 Exception has been thrown by the target of an invocation. Exception.StackTrace at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00048] in <6e241547b2184f08b8370f11a198586d>:0
at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <6e241547b2184f08b8370f11a198586d>:0
at HomeGenie.Automation.Engines.CSharpEngine.CheckAppInstance () [0x00081] in :0
2018-03-21 13:33:43.4481 Error HomeAutomation.HomeGenie.Automation 16 Exception has been thrown by the target of an invocation. Exception.StackTrace at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00048] in <6e241547b2184f08b8370f11a198586d>:0
at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <6e241547b2184f08b8370f11a198586d>:0
at HomeGenie.Automation.Engines.CSharpEngine.CheckAppInstance () [0x00081] in :0
2018-03-21 13:33:43.4459 Error HomeAutomation.HomeGenie.Automation 8 Exception has been thrown by the target of an invocation. Exception.StackTrace at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00048] in <6e241547b2184f08b8370f11a198586d>:0
at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <6e241547b2184f08b8370f11a198586d>:0
at HomeGenie.Automation.Engines.CSharpEngine.CheckAppInstance () [0x00081] in :0
2018-03-21 13:33:43.4467 Error HomeAutomation.HomeGenie.Automation 7 Exception has been thrown by the target of an invocation. Exception.StackTrace at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00048] in <6e241547b2184f08b8370f11a198586d>:0
at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <6e241547b2184f08b8370f11a198586d>:0
at HomeGenie.Automation.Engines.CSharpEngine.CheckAppInstance () [0x00081] in :0
2018-03-21 13:33:43.4472 Error HomeAutomation.HomeGenie.Automation 91 Exception has been thrown by the target of an invocation. Exception.StackTrace at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00048] in <6e241547b2184f08b8370f11a198586d>:0
at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <6e241547b2184f08b8370f11a198586d>:0
at HomeGenie.Automation.Engines.CSharpEngine.CheckAppInstance () [0x00081] in :0
2018-03-21 13:33:43.4472 Error HomeAutomation.HomeGenie.Automation 90 Exception has been thrown by the target of an invocation. Exception.StackTrace at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00048] in <6e241547b2184f08b8370f11a198586d>:0
at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <6e241547b2184f08b8370f11a198586d>:0
at HomeGenie.Automation.Engines.CSharpEngine.CheckAppInstance () [0x00081] in :0
2018-03-21 13:33:43.4481 Error HomeAutomation.HomeGenie.Automation 88 Exception has been thrown by the target of an invocation. Exception.StackTrace at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00048] in <6e241547b2184f08b8370f11a198586d>:0
at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <6e241547b2184f08b8370f11a198586d>:0
at HomeGenie.Automation.Engines.CSharpEngine.CheckAppInstance () [0x00081] in :0
2018-03-21 13:33:43.4492 Error HomeAutomation.HomeGenie.Automation 180 Exception has been thrown by the target of an invocation. Exception.StackTrace at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00048] in <6e241547b2184f08b8370f11a198586d>:0
at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <6e241547b2184f08b8370f11a198586d>:0
at HomeGenie.Automation.Engines.CSharpEngine.CheckAppInstance () [0x00081] in :0
2018-03-21 13:33:43.4492 Error HomeAutomation.HomeGenie.Automation 34 Exception has been thrown by the target of an invocation. Exception.StackTrace at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00048] in <6e241547b2184f08b8370f11a198586d>:0
at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <6e241547b2184f08b8370f11a198586d>:0
at HomeGenie.Automation.Engines.CSharpEngine.CheckAppInstance () [0x00081] in :0
2018-03-21 13:33:43.4458 Error HomeAutomation.HomeGenie.Automation 6 Exception has been thrown by the target of an invocation. Exception.StackTrace at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00048] in <6e241547b2184f08b8370f11a198586d>:0
at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <6e241547b2184f08b8370f11a198586d>:0
at HomeGenie.Automation.Engines.CSharpEngine.CheckAppInstance () [0x00081] in :0
2018-03-21 13:33:43.4492 Error HomeAutomation.HomeGenie.Automation 82 Exception has been thrown by the target of an invocation. Exception.StackTrace at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00048] in <6e241547b2184f08b8370f11a198586d>:0
at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <6e241547b2184f08b8370f11a198586d>:0
at HomeGenie.Automation.Engines.CSharpEngine.CheckAppInstance () [0x00081] in :0
2018-03-21 13:33:43.4500 Error HomeAutomation.HomeGenie.Automation 112 Exception has been thrown by the target of an invocation. Exception.StackTrace at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00048] in <6e241547b2184f08b8370f11a198586d>:0
at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <6e241547b2184f08b8370f11a198586d>:0
at HomeGenie.Automation.Engines.CSharpEngine.CheckAppInstance () [0x00081] in :0
2018-03-21 13:33:43.4511 Error HomeAutomation.HomeGenie.Automation 200 Exception has been thrown by the target of an invocation. Exception.StackTrace at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00048] in <6e241547b2184f08b8370f11a198586d>:0
at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <6e241547b2184f08b8370f11a198586d>:0
at HomeGenie.Automation.Engines.CSharpEngine.CheckAppInstance () [0x00081] in :0
2018-03-21 13:33:43.4618 Error HomeAutomation.HomeGenie.Automation 505 Exception has been thrown by the target of an invocation. Exception.StackTrace at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00048] in <6e241547b2184f08b8370f11a198586d>:0
at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <6e241547b2184f08b8370f11a198586d>:0
at HomeGenie.Automation.Engines.CSharpEngine.CheckAppInstance () [0x00081] in :0
2018-03-21 13:33:43.4715 Error HomeAutomation.HomeGenie.Automation 142 Exception has been thrown by the target of an invocation. Exception.StackTrace at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00048] in <6e241547b2184f08b8370f11a198586d>:0
at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <6e241547b2184f08b8370f11a198586d>:0
at HomeGenie.Automation.Engines.CSharpEngine.CheckAppInstance () [0x00081] in :0
2018-03-21 13:33:43.4786 Debug Starting Gateway WebServiceGateway
2018-03-21 13:33:43.5669 Info HomeAutomation.HomeGenie.Automation 29 Automation Program Program.Status Running

Once the HG service starts I have to restore my backup settings to restore my system to normal and I have to do this each time I restart the service.

I’m running on a Raspberry Pi, Raspbian Stretch Lite with Mono 5.4.1.6. and HG V1.1.15

Any idea what is causing this problem.

@Bounz you sent me a HomeGenie.exe file to solve a problem I was having with emailing attachments. I noted that the file is 298kb in size while the HomeGenie.exe file that was on the system was 300kb in size. I’m not sure if this makes as difference here.

Hmm again, I like your notice of different file sizes. It may play the difference.
Could you please try this file? HomeGenie.exe (300 KB)

Again will you give me the full download link for this file

Regards
Peter

Tried that new HomeGenie.exe file you linked. Results are as bad. I downloaded it as you advised so that is not the problem.

Just to let you know.

In v.526 the email is sent with attachment

In v1.1.15 the email is sent without attachment

The two HomeGenie.exe files you linked do not work on my system

I got Homegenie v1.1.15 from the link on the HomeGenie.Club page so why does the new HomeGenie.exe file not work.

I am running on a Raspberry Pi 2 with Raspbian Stretch with Mono 5.4.1.6 Until I get the email sending with attachments I will have to go back to v.526

@Bounz did you have any further thoughts on why I am experiencing so many errors in the log after installing the HomeGenie.exe file you supplied.

Would it be possible to include this revised HomeGenie.exe file in the installation package of v1.1.15 so I can rule out the possibility of me making errors at my end.

Hi Peter,

The only thought I have - something is wrong with mono or with compiled stored versions (.dll) of your custom automation programs. I had the plan to try to reproduce this issue during the weekends, but due to overload on my main work, I had to go to work on both Saturday and Sunday.

Yes. By the way: does regular V1.1.15 (without modifications made to enable sending emails with attachments) works normally on your system with mono 5.4.1.6?

Yes v1.1.15 was working fine with the email send attachment program but it did not include the attachment photo. As soon as I installed the HomeGenie.exe the problems started.

All I’m using are the C# programs that were already compiling and running fine in v526.