Announcement

Collapse
No announcement yet.

xAP for HS3 Startup Error - SQLite

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

  • xAP for HS3 Startup Error - SQLite

    I just downloaded and installed the xAP Plug-In for HS3, and when I try to initialize it, I receive the following error:

    1/27/2014 7:58:28 PM ~!~Error~!~Initializing plug-in(1): mcsXap Instance::Could not load file or assembly 'System.Data.SQLite, Version=1.0.87.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139' or one of its dependencies. The system cannot find the file specified.Startup Complete, 1 errors detected, check the log for more information.

    In the startup log, there's a little more detail:

    1/27/2014 7:58:28 PM ~!~mcsXap~!~InitIO
    1/27/2014 7:58:28 PM ~!~mcsXap~!~Version 3.0.34 Registered with Homeseer
    1/27/2014 7:58:28 PM ~!~mcsXap~!~Register Callback
    1/27/2014 7:58:28 PM ~!~mcsXap~!~Build Links
    1/27/2014 7:58:28 PM ~!~mcsXap~!~Define Setup Menu
    1/27/2014 7:58:28 PM ~!~mcsXap~!~Register Links
    1/27/2014 7:58:28 PM ~!~mcsXap~!~Initialize Events
    1/27/2014 7:58:28 PM ~!~mcsXap~!~MakeTable Line 0 Could not load file or assembly 'System.Data.SQLite, Version=1.0.87.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139' or one of its dependencies. The system cannot find the file specified.
    1/27/2014 7:58:28 PM ~!~mcsXap~!~MakeTable Line 0 Could not load file or assembly 'System.Data.SQLite, Version=1.0.87.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139' or one of its dependencies. The system cannot find the file specified.
    1/27/2014 7:58:28 PM ~!~mcsXap~!~InitHW Line 0 Could not load file or assembly 'System.Data.SQLite, Version=1.0.87.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139' or one of its dependencies. The system cannot find the file specified.
    1/27/2014 7:58:28 PM ~!~mcsXap~!~Initialize HW
    1/27/2014 7:58:28 PM ~!~Error~!~Initializing plug-in(1): mcsXap Instance::Could not load file or assembly 'System.Data.SQLite, Version=1.0.87.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139' or one of its dependencies. The system cannot find the file specified.
    1/27/2014 7:58:31 PM ~!~Info~!~Plugin mcsXap with instance: has disconnected
    1/27/2014 7:58:31 PM ~!~Plug-In~!~Finished initializing plug-in mcsXap

    Can you suggest what may be going wrong here? I'm running HS3 3.0.0.55

    Thanks!

  • #2
    Make a copy of this .dll into the HS3 root folder. I believe HST now places it in the \bin folder.

    Comment


    • #3
      OK... I did that, and got a new slew of errors related to SQLite.Interop... I copied that file from the \bin folder to the root, and the start up worked.

      Not sure if that was a bug or not, but someone might want to note this.


      Thanks.

      Comment


      • #4
        I certain that others know how to indicate specific locations for .NET assemblies, but I don't.

        Comment


        • #5
          Michael, the only way to oslve this is to ship the HSPI_MCSXAP.exe.config file with the EXE and in Visual studio, edit that file to contain the following:

          <runtime>
          <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
          <probing privatePath="bin" />

          The "probing privatePath" bat is the key - it tell your EXE to look in the "bin" folder for resources. IT may be worth the effort in case HST change the SQLite DLL's in future to avoid duplicates?
          Author of Highpeak Plugins | SMS-Gateway Plugin | Blue Iris Plugin | Paradox (Beta) Plugin | Modbus Plugin | Yamaha Plugin

          Comment

          Working...
          X