Announcement

Collapse
No announcement yet.

c# script with linq will not compile after restart

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    c# script with linq will not compile after restart

    I wrote a c# script yesterday which worked great all day. This morning I restarted Homeseer (just the application, not the entire server) because it was slow to respond to my HS Touch commands, and now my c# script wont compile. It looks like its an issue with missing linq libraries. Does anyone know how to include the linq libraries in c# and/or have any idea why this would work yesterday and then not today after the restart?

    compiler errors:
    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

    About HOmeseer:
    Current Date/Time: 2/14/2018 9:33:30 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 25 Minutes 56 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
    Connected Speaker Clients: HOMETROLLER (127.0.0.1)EFAULT, HOMETROLLER (192.168.1.223):TANDY BEDSIDE, HOMETROLLER (192.168.1.166):LIVING ROOM
    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 844.00 MHz
    Modules/Threads: 123 Modules, 113 Threads
    Available Threads: 199
    System Processes/Load: 68 Processes, 5% 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: 113 Mbytes
    Plug-In Memory Used: 7 EXE Plug-Ins using 185 Mbytes
Working...
X