VSTA Project not working properly

VSTA Project not working properly

Hi people,

I am new with Zenon and I am trying to create a runtime script with C# on VSTA. I have copied the code written in the help's examples (the one named "Writing project information in the zenon output window") and I am getting errors with the "this" members like this.Application or this.ActiveDocument. I have already added the Microsoft.VisualStudio.Tools.Applications.Runtime.v9.0 reference in the project but that didn't fix it.

Here I will put some additional information that I think might have something to do with my problem:
  • There is the following error in zenon's output window:
Debug output:Addin Error!
Debug output:C:\ProgramData\COPA-DATA\zenon760\VSTAWorkspace\CSharp\WorkspaceAddin\bin\WorkspaceAddin.dll
Debug output:Loading Addin
Debug output:Could not find file 'C:\ProgramData\COPA-DATA\zenon760\VSTAWorkspace\CSharp\WorkspaceAddin\bin\WorkspaceAddin.dll'.

  • Before my VSTA project opens an alert with the following message is displayed "For current projects please use the Add-In interface with visual studio in order to make full use of the newest .NET functionality".
  • If I try to open VSTA directly and create a new project there is no project template to choose from so I cannot create any project (I tried to use the VSTA/setup command but didn't work).

I am really stuck here I will appreciate any help I can get.

Thanks

This is a migrated post! Originally posted on 09.02.2018 by user jesus_michel. Please be aware that information can be outdated.

    Disclaimer

    This document governs the use of our Community Forum. By registering and using the platform, you accept these conditions.

    The COPA-DATA Community Forum serves to encourage the exchange of information and experience about the zenon software between forum users respectively zenon users.

    Please mind that any published information on the Community Forum is the subjective opinion and view based on the experience and the level of knowledge of the author. COPA-DATA does not overtake any responsibility for the content and the accuracy of the shared information.

    Users of the Community Forum are encouraged to share only well-founded experiences and to point out any risks associated with the implementation of proposed solutions to problems. COPA-DATA at its absolute discretion, reserves the right to moderate the forum. In this connection COPA-DATA may remove any information containing false facts, potentially dangerous solutions, bad language or content that may insult, degrade or discriminate others. COPA-DATA may block a non-complying user from forum access if the user violated this provision.

    COPA-DATA reserves the right to change this document from time to time at own discretion.


    Ing. Punzenberger COPA-DATA GmbH
    Karolingerstraße 7b · 5020 Salzburg · Austria
    www.copadata.com