Showing results 1 to 3 of 3

Thread: DLL files and Zenon VSTA

  1. #1
    Join Date
    19.11.2015
    Posts
    9

    Default DLL files and Zenon VSTA

    Hello,
    I want to add written by me dll file (c#) using the API Zenon.
    Dll file that uses the API Zenon compiles in Visual Studio seamlessly.

    But then when I want him to join the project VSTA (in Zenon) - does not compile.

    Code:
    Error	1	
    The type 'zenOn.IVariable' exists in both 'c:\Windows\assembly\GAC_MSIL\zenonVSTAProxy7200\7.20.0.0__dbcf9a9c17b53bac\zenonVSTAProxy7200.dll' 
    and 'c:\Users\mhanusek\Desktop\SNMPLib\Interop.zenOn.dll'	
    C:\ProgramData\COPA-DATA\SQL2012\946bc995-be8b-4ba8-a505-953cc56c10e7\FILES\zenon\system\VSTA\CSharp\ProjectAddin\SNMPTask.cs	
    12	22	ProjectAddin

  2. #2
    Join Date
    13.08.2013
    Posts
    57

    Default Re: DLL files and Zenon VSTA

    Hi,
    I guess the zenon API is two times referenced, for a VisualStudioProject you usually reference the zenon programming Interface library. In VSTA the zenonVSTAProxy is used , which lives in GAC an is automatically referenced.Both reference use the same ObjectModel and Namespace,that's why you get the Compilererror.
    So the solution is to delete the reference to zenon programming Interface library.
    For further use external Applications or WPFs use the zenon programming Interface library . Integrated (VSTA) solution =>zenonVSTA Proxy.

    Best regards
    Sigi

  3. #3
    Join Date
    19.11.2015
    Posts
    9

    Default Re: DLL files and Zenon VSTA

    Quote Originally Posted by sntech View Post
    Hi,
    I guess the zenon API is two times referenced, for a VisualStudioProject you usually reference the zenon programming Interface library. In VSTA the zenonVSTAProxy is used , which lives in GAC an is automatically referenced.Both reference use the same ObjectModel and Namespace,that's why you get the Compilererror.
    So the solution is to delete the reference to zenon programming Interface library.
    For further use external Applications or WPFs use the zenon programming Interface library . Integrated (VSTA) solution =>zenonVSTA Proxy.

    Best regards
    Sigi
    Thx.
    Ref. "zenonVSTAProxy7200" in VS solved problem

Similar Threads

  1. Replies: 0
    Last Post: 22nd December 2015, 06:48
  2. Replies: 1
    Last Post: 17th March 2015, 14:09
  3. zenon CE - BeckhNG.dll could not be loaded
    By ptkdennis in forum Drivers
    Replies: 2
    Last Post: 16th April 2014, 07:53
  4. how get .dll/.ocx files for activeX version 6.0 ?
    By nbulgarini in forum zenon Supervisor
    Replies: 3
    Last Post: 13th February 2012, 23:11
  5. access to dll files
    By hamid in forum zenon Supervisor
    Replies: 2
    Last Post: 3rd October 2011, 14:42

Posting Rules

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