[update #1] Turns out none of my c# scripts are working now due to errors similar to this one, mostly failed linq calls. The only thing I did was restart the application (not the server) and boom, all of a sudden its like certain libraries just vanished...
I wrote a c# script yesterday and it worked great all day up until this morning. This morning I restarted my Homeseer application and now the script does not compile. The error message makes it sound like I'm now missing a reference to system.linq. Any idea how could a restart cause this, and how can I fix this?
error:
Compiling script C:\Program Files\HomeSeer HS3\scripts\MontlyShittyRunDownEmail.cs: {interactive}(37,47): error CS1061: Type `System.Collections.Generic.List' does not contain a definition for `Min' and no extension method `Min' of type `System.Collections.Generic.List' could be found (are you missing a using directive or an assembly reference?) {interactive}(39,45): error CS1061: Type `System.Collections.Generic.List' does not contain a definition for `Max' and no extension method `Max' of type `System.Collections.Generic.List' could be found (are you missing a using directive or an assembly reference?) {interactive}(47,42): error CS0122: `System.Collections.Generic.List.Count' is inaccessible due to its protection level {interactive}(47,42): error CS1955: The member `System.Collections.Generic.List.Count' cannot be used as method or delegate {interactive}(49,43): error CS0122: `System.Collections.Generic.List.Count' is inaccessible due to its protection level {interactive}(49,43): error CS1955: The member `System.Collections.Generic.List.Count' cannot be used as method or delegate {interactive}(51,44): error CS0122: `System.Collections.Generic.List.Count' is inaccessible due to its protection level {interactive}(51,44): error CS1955: The member `System.Collections.Generic.List.Count' cannot be used as method or delegate {interactive}(119,56): error CS1061: Type `System.Collections.Generic.List' does not contain a definition for `Where' and no extension method `Where' of type `System.Collections.Generic.List' could be found (are you missing a using directive or an assembly reference?) {interactive}(137,90): error CS0122: `System.Collections.Generic.List.Count' is inaccessible due to its protection level {interactive}(137,90): error CS1955: The member `System.Collections.Generic.List.Count' cannot be used as method or delegate {interactive}(7,17): warning CS0414: The private field `Script.hs' is assigned but its value is never used
homeseer information:
Current Date/Time: 2/14/2018 9:43:27 AM Central Standard Time
HomeSeer Version: HS3 Pro Edition 3.0.0.368 (Windows)
HomeSeer: Is Registered
Operating System: Microsoft Windows Embedded Standard - Work Station
OS Version: 6.1.7601 Service Pack: 1.0
System Uptime: 0 Days 2 Hours 35 Minutes 52 Seconds
User Name and Access Level: admin (Admin)
LAN IP Address: 192.168.1.224 (hometroller)
Client IP Address: (hometroller)
Network Adapter: HomeSeer Adapter -> Loopback Address (localhost) IP: 127.0.0.1
Web Server Port: 80
Number of Devices: 145
Number of Events: 68
Event Last Ran: Shitty Town : Stop Shitty Fan, Ran at 2/14/2018 9:08:24 AM
Number of unique event scripts used: 3
Plug-Ins Enabled: Z-Wave:,JowiHue:,PHLocation:,UltraWeatherBug3:,BLOccupied:,Har mony Hub:,EasyTrigger:,Honeywell WiFi Thermostat:
Processor Type and Speed: x64 Family 6 Model 61 Stepping 4 at 472.07 MHz
Modules/Threads: 123 Modules, 111 Threads
Available Threads: 199
System Processes/Load: 68 Processes, 6% Load
Free / Total Physical Memory: 1.70 GBytes / 2.53 GBytes (67% free)
Free / Total Virtual Memory: 4.21 GBytes / 5.06 GBytes (83% free)
HomeSeer Memory Used: 114 Mbytes
Plug-In Memory Used: 7 EXE Plug-Ins using 186 Mbytes
I wrote a c# script yesterday and it worked great all day up until this morning. This morning I restarted my Homeseer application and now the script does not compile. The error message makes it sound like I'm now missing a reference to system.linq. Any idea how could a restart cause this, and how can I fix this?
error:
Compiling script C:\Program Files\HomeSeer HS3\scripts\MontlyShittyRunDownEmail.cs: {interactive}(37,47): error CS1061: Type `System.Collections.Generic.List' does not contain a definition for `Min' and no extension method `Min' of type `System.Collections.Generic.List' could be found (are you missing a using directive or an assembly reference?) {interactive}(39,45): error CS1061: Type `System.Collections.Generic.List' does not contain a definition for `Max' and no extension method `Max' of type `System.Collections.Generic.List' could be found (are you missing a using directive or an assembly reference?) {interactive}(47,42): error CS0122: `System.Collections.Generic.List.Count' is inaccessible due to its protection level {interactive}(47,42): error CS1955: The member `System.Collections.Generic.List.Count' cannot be used as method or delegate {interactive}(49,43): error CS0122: `System.Collections.Generic.List.Count' is inaccessible due to its protection level {interactive}(49,43): error CS1955: The member `System.Collections.Generic.List.Count' cannot be used as method or delegate {interactive}(51,44): error CS0122: `System.Collections.Generic.List.Count' is inaccessible due to its protection level {interactive}(51,44): error CS1955: The member `System.Collections.Generic.List.Count' cannot be used as method or delegate {interactive}(119,56): error CS1061: Type `System.Collections.Generic.List' does not contain a definition for `Where' and no extension method `Where' of type `System.Collections.Generic.List' could be found (are you missing a using directive or an assembly reference?) {interactive}(137,90): error CS0122: `System.Collections.Generic.List.Count' is inaccessible due to its protection level {interactive}(137,90): error CS1955: The member `System.Collections.Generic.List.Count' cannot be used as method or delegate {interactive}(7,17): warning CS0414: The private field `Script.hs' is assigned but its value is never used
homeseer information:
Current Date/Time: 2/14/2018 9:43:27 AM Central Standard Time
HomeSeer Version: HS3 Pro Edition 3.0.0.368 (Windows)
HomeSeer: Is Registered
Operating System: Microsoft Windows Embedded Standard - Work Station
OS Version: 6.1.7601 Service Pack: 1.0
System Uptime: 0 Days 2 Hours 35 Minutes 52 Seconds
User Name and Access Level: admin (Admin)
LAN IP Address: 192.168.1.224 (hometroller)
Client IP Address: (hometroller)
Network Adapter: HomeSeer Adapter -> Loopback Address (localhost) IP: 127.0.0.1
Web Server Port: 80
Number of Devices: 145
Number of Events: 68
Event Last Ran: Shitty Town : Stop Shitty Fan, Ran at 2/14/2018 9:08:24 AM
Number of unique event scripts used: 3
Plug-Ins Enabled: Z-Wave:,JowiHue:,PHLocation:,UltraWeatherBug3:,BLOccupied:,Har mony Hub:,EasyTrigger:,Honeywell WiFi Thermostat:
Processor Type and Speed: x64 Family 6 Model 61 Stepping 4 at 472.07 MHz
Modules/Threads: 123 Modules, 111 Threads
Available Threads: 199
System Processes/Load: 68 Processes, 6% Load
Free / Total Physical Memory: 1.70 GBytes / 2.53 GBytes (67% free)
Free / Total Virtual Memory: 4.21 GBytes / 5.06 GBytes (83% free)
HomeSeer Memory Used: 114 Mbytes
Plug-In Memory Used: 7 EXE Plug-Ins using 186 Mbytes
Comment