Showing results 1 to 5 of 5

Thread: Read zenOn variables from Windows Service

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    11.05.2017
    Posts
    3

    Default Read zenOn variables from Windows Service

    Good afternoon.
    I want to read variables value from zenOn Runtime project using zenOn API.
    I'm working with 7.60 SP 0 Build 36068 zenOn version.
    If I use a simple C# Console Application everything works correctly.
    I have an exception in the below function when I use a Windows Service:

    IApplication _zApplication = Marshal.GetActiveObject("zenOn.Application") as Application;

    Exception:
    System.Runtime.InteropServices.COMException (0x80004005). Message: Operation unavailable (Exception from HRESULT: 0x800401E3 (MK_E_UNAVAILABLE))

    Can someone help me?
    Thanks!

    Matteo
    Last edited by matteo.bernardon : 2nd November 2018 at 14:27

Similar Threads

  1. Replies: 0
    Last Post: 7th September 2018, 10:02
  2. Accessing variables in Runtime wizard and service
    By emrocon in forum Add-In Framework
    Replies: 3
    Last Post: 17th October 2017, 17:12
  3. zenOn 7.20 (SQL Service Starting)
    By salmanhassan2 in forum Editor and Runtime Setup
    Replies: 1
    Last Post: 16th September 2015, 09:12
  4. Zenon 7.11 as service
    By diemon in forum zenon Supervisor
    Replies: 5
    Last Post: 4th March 2015, 10:22
  5. Replies: 2
    Last Post: 4th July 2013, 11:45

Tags for this Thread

Posting Rules

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •