more G-Labs products

Author Topic: Interface Upload removes all others in r505  (Read 1187 times)

December 11, 2015, 04:21:34 PM
Read 1187 times

[email protected]

  • *****
  • Information
  • Hero Member
  • Posts: 271
On my box (rpi) where I am developing an interface module, when I upload the zip it removes the other interfaces, this can be seen by the following:


2015-12-11 14:27:44.4255 Error System.IO.FileNotFoundException: Could not load file or assembly 'MIG.HomeAutomation.dll' or one of its dependencies. The system cannot find the file specified.
File name: 'MIG.HomeAutomation.dll'
  at (wrapper managed-to-native) System.Reflection.Assembly:LoadFrom (string,bool)
  at System.Reflection.Assembly.LoadFrom (System.String assemblyFile) [0x00000] in <filename unknown>:0
  at MIG.MigService.TypeLookup (System.String typeName, System.String assemblyName) [0x00000] in <filename unknown>:0
  at MIG.MigService.AddInterface (System.String domain, System.String assemblyName) [0x00000] in <filename unknown>:0
2015-12-11 14:27:44.4839 Error System.IO.FileNotFoundException: Could not load file or assembly 'MIG.HomeAutomation.dll' or one of its dependencies. The system cannot find the file specified.
File name: 'MIG.HomeAutomation.dll'
  at (wrapper managed-to-native) System.Reflection.Assembly:LoadFrom (string,bool)
  at System.Reflection.Assembly.LoadFrom (System.String assemblyFile) [0x00000] in <filename unknown>:0
  at MIG.MigService.TypeLookup (System.String typeName, System.String assemblyName) [0x00000] in <filename unknown>:0
  at MIG.MigService.AddInterface (System.String domain, System.String assemblyName) [0x00000] in <filename unknown>:0
2015-12-11 14:27:44.4902 Error System.IO.FileNotFoundException: Could not load file or assembly 'MIG.HomeAutomation.dll' or one of its dependencies. The system cannot find the file specified.
File name: 'MIG.HomeAutomation.dll'
  at (wrapper managed-to-native) System.Reflection.Assembly:LoadFrom (string,bool)
  at System.Reflection.Assembly.LoadFrom (System.String assemblyFile) [0x00000] in <filename unknown>:0
  at MIG.MigService.TypeLookup (System.String typeName, System.String assemblyName) [0x00000] in <filename unknown>:0
  at MIG.MigService.AddInterface (System.String domain, System.String assemblyName) [0x00000] in <filename unknown>:0
2015-12-11 14:27:44.4970 Error System.IO.FileNotFoundException: Could not load file or assembly 'MIG.HomeAutomation.dll' or one of its dependencies. The system cannot find the file specified.
File name: 'MIG.HomeAutomation.dll'
  at (wrapper managed-to-native) System.Reflection.Assembly:LoadFrom (string,bool)
  at System.Reflection.Assembly.LoadFrom (System.String assemblyFile) [0x00000] in <filename unknown>:0
  at MIG.MigService.TypeLookup (System.String typeName, System.String assemblyName) [0x00000] in <filename unknown>:0
  at MIG.MigService.AddInterface (System.String domain, System.String assemblyName) [0x00000] in <filename unknown>:0
2015-12-11 14:27:44.5036 Error System.IO.FileNotFoundException: Could not load file or assembly 'MIG.Controllers.dll' or one of its dependencies. The system cannot find the file specified.
File name: 'MIG.Controllers.dll'
  at (wrapper managed-to-native) System.Reflection.Assembly:LoadFrom (string,bool)
  at System.Reflection.Assembly.LoadFrom (System.String assemblyFile) [0x00000] in <filename unknown>:0
  at MIG.MigService.TypeLookup (System.String typeName, System.String assemblyName) [0x00000] in <filename unknown>:0
  at MIG.MigService.AddInterface (System.String domain, System.String assemblyName) [0x00000] in <filename unknown>:0
2015-12-11 14:27:44.5098 Error System.IO.FileNotFoundException: Could not load file or assembly 'MIG.Media.dll' or one of its dependencies. The system cannot find the file specified.
File name: 'MIG.Media.dll'
  at (wrapper managed-to-native) System.Reflection.Assembly:LoadFrom (string,bool)
  at System.Reflection.Assembly.LoadFrom (System.String assemblyFile) [0x00000] in <filename unknown>:0
  at MIG.MigService.TypeLookup (System.String typeName, System.String assemblyName) [0x00000] in <filename unknown>:0
  at MIG.MigService.AddInterface (System.String domain, System.String assemblyName) [0x00000] in <filename unknown>:0
2015-12-11 14:27:44.5161 Error System.IO.FileNotFoundException: Could not load file or assembly 'MIG.Protocols.dll' or one of its dependencies. The system cannot find the file specified.
File name: 'MIG.Protocols.dll'
  at (wrapper managed-to-native) System.Reflection.Assembly:LoadFrom (string,bool)
  at System.Reflection.Assembly.LoadFrom (System.String assemblyFile) [0x00000] in <filename unknown>:0
  at MIG.MigService.TypeLookup (System.String typeName, System.String assemblyName) [0x00000] in <filename unknown>:0
  at MIG.MigService.AddInterface (System.String domain, System.String assemblyName) [0x00000] in <filename unknown>:0
2015-12-11 14:27:44.5777 Debug Adding Interface HomeAutomation.Nest



on a working box:

pi@homegenie ~ $ ls /usr/local/bin/homegenie/lib/mig/*.dll
/usr/local/bin/homegenie/lib/mig/LibUsbDotNet.dll
/usr/local/bin/homegenie/lib/mig/MIG.Controllers.dll
/usr/local/bin/homegenie/lib/mig/MIG.HomeAutomation.dll
/usr/local/bin/homegenie/lib/mig/MIG.Media.dll
/usr/local/bin/homegenie/lib/mig/MIG.Protocols.dll
/usr/local/bin/homegenie/lib/mig/W800Rf32Lib.dll
/usr/local/bin/homegenie/lib/mig/XTenLib.dll
/usr/local/bin/homegenie/lib/mig/ZWaveLib.dll

after uploading my interface zip:

pi@homegenie ~ $ ls /usr/local/bin/homegenie/lib/mig/*.dll
/usr/local/bin/homegenie/lib/mig/MIG-Nest.dll
/usr/local/bin/homegenie/lib/mig/Newtonsoft.Json.dll


December 11, 2015, 05:43:45 PM
Reply #1

Gene

  • *****
  • Information
  • Administrator
  • Posts: 1472
  • Tangible is the future!
    • Yet Another Programmer
This is a bug... :/

the fix is removing line #222 from the following file:

https://github.com/genielabs/HomeGenie/blob/master/HomeGenie/Service/Handlers/Config.cs#L222

Thanks for pointing to this.

Cheers,
g.

December 11, 2015, 11:35:00 PM
Reply #2

[email protected]

  • *****
  • Information
  • Hero Member
  • Posts: 271
Thanks :) at least it means I haven't done something stupid :)

Ill make that change and compile :)

December 11, 2015, 11:42:23 PM
Reply #3

Gene

  • *****
  • Information
  • Administrator
  • Posts: 1472
  • Tangible is the future!
    • Yet Another Programmer
The fix is already available through r506 update.

December 12, 2015, 01:03:08 AM
Reply #4

[email protected]

  • *****
  • Information
  • Hero Member
  • Posts: 271
Even easier, didn't realise you had 506 out already!

top work :)