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.


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