Author Topic: question about publishing my project  (Read 2535 times)

schroedter

  • Newbie
  • *
  • Posts: 2
    • View Profile
question about publishing my project
« on: November 03, 2016, 08:43:17 AM »
I am new to visual studio and not very familiar with it.  I want to have a executable program so I don't need visual studio on every computer.  I am having issues when I publish my HMI program that I created, it publishes it and gives me the setup file and exe file.  The program functions perfectly when I run it in visual studio.  My problem is when I run the program everything opens and looks normal but it doesn't see the PLC and the buttons say "WRITE FAILED!The given key was not present in the dictionary"

Am I doing something wrong and not bringing the advancedHMI library and drivers with me when I publish the program?

Any information or advice is appreciated!
« Last Edit: November 03, 2016, 08:46:57 AM by schroedter »

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: question about publishing my project
« Reply #1 on: November 03, 2016, 09:02:30 AM »
Do not use Publish. See this thread for the recommended deployment practice:

http://advancedhmi.com/forum/index.php?topic=14.msg37#msg37

schroedter

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: question about publishing my project
« Reply #2 on: November 03, 2016, 10:25:18 AM »
I will try that thank you for the quick response!

Phrog30

  • Guest
Re: question about publishing my project
« Reply #3 on: February 26, 2017, 07:34:42 PM »
I had success using Visual Studio Installer:
https://marketplace.visualstudio.com/items?itemName=VisualStudioProductTeam.MicrosoftVisualStudio2015InstallerProjects

There are several tutorials.  You can easily output contents, source files, etc.  You can also setup prerequisites. 

James