Announcement

Collapse
No announcement yet.

Error with sample plugin

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

    Error with sample plugin

    Hi,

    I started with the sample plugin, but I get an exception when I start the plugin.
    No error during build or HS4 start

    Using the latest version of it all (HS4, pluginsdk and plugin sample)

    System.IO.FileNotFoundException
    HResult=0x80070002
    Message=Could not load file or assembly 'PluginSdk, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
    Source=<Cannot evaluate the exception source>
    StackTrace:
    <Cannot evaluate the exception stack trace>
    Regards,

    Rien du Pre
    The Netherlands
    Using:
    Homeseer PRO latest HS4 BETA on a Raspberry
    Plugin's:
    RFXCOM, mcsMQTT, Z-Wave

    #2
    Rien,

    You will have to get the nuget packages for the plugnSDK and Newtonsoft first before that part will work.

    Wim
    -- Wim

    Plugins: JowiHue, RFXCOM, Sonos4, Jon00's Perfmon and Network monitor, EasyTrigger, Pushover 3P, rnbWeather, BLBackup, AK SmartDevice, Pushover, PHLocation, Zwave, GCalseer, SDJ-Health, Device History, BLGData

    1210 devices/features ---- 392 events ----- 40 scripts

    Comment


      #3
      Hi Wim,
      I’m pretty sure I did that. The project does build without errors
      Regards,

      Rien du Pre
      The Netherlands
      Using:
      Homeseer PRO latest HS4 BETA on a Raspberry
      Plugin's:
      RFXCOM, mcsMQTT, Z-Wave

      Comment


        #4
        Rien,

        Are you running the plugin complied, based on the HS4 installation, or from VS tracing? If you run it compiled from the HS4 directory, make sure you have a config file pointing to the Plugins bin directory, but it also has to include bin/homeseer as that is where the PluginSDK resides?
        -- Wim

        Plugins: JowiHue, RFXCOM, Sonos4, Jon00's Perfmon and Network monitor, EasyTrigger, Pushover 3P, rnbWeather, BLBackup, AK SmartDevice, Pushover, PHLocation, Zwave, GCalseer, SDJ-Health, Device History, BLGData

        1210 devices/features ---- 392 events ----- 40 scripts

        Comment


          #5
          Sorry for the late reaction, I solved it with a config file.

          I thought these files will be created during the process, but apparently not.

          Thanks Wim

          Regards,

          Rien du Pre
          The Netherlands
          Using:
          Homeseer PRO latest HS4 BETA on a Raspberry
          Plugin's:
          RFXCOM, mcsMQTT, Z-Wave

          Comment

          Working...
          X