API as windows service

Discussion in '3CX Phone System - General' started by asmith3006, Sep 21, 2016.

Thread Status:
Not open for further replies.
  1. asmith3006

    Joined:
    Mar 5, 2014
    Messages:
    94
    Likes Received:
    5
    Has anyone successfully built V15 API into a Windows Service?

    We're running it as a WinForms application and this works fine, but running as a Windows service gives
    Code:
    Unable to load DLL 'tcxpscom_native': The specified module could not be found. (Exception from HRESULT: 0x8007007E)    at TCX.Configuration.PhoneSystem.RegisterListener(MyPFN_UPDATE_LISTENER f)
       at TCX.Configuration.PhoneSystem.get_Root()
    
    Any input would be greatly appreciated

    Thank you
     
  2. asmith3006

    Joined:
    Mar 5, 2014
    Messages:
    94
    Likes Received:
    5
    For anyone else who has this issue:

    When you build the service VS includes the DLL for some reason (even if set to exclude). Once you install your service if you manually delete the DLL from the installation directory (NOT the Program files\3cx\instanceX directory) then the service locates the real DLL and it all works fine.
     
  3. Hardik Soni

    Joined:
    May 22, 2017
    Messages:
    19
    Likes Received:
    0
    same error occured while to get PhoneSystem.Root.GetDN()
    Unable to load DLL 'tcxpscom_native': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
     
Thread Status:
Not open for further replies.