AdvancedHMI Software

General Category => Support Questions => Topic started by: schroedter on November 03, 2016, 08:43:17 AM

Title: question about publishing my project
Post by: schroedter 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!
Title: Re: question about publishing my project
Post by: Archie 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
Title: Re: question about publishing my project
Post by: schroedter on November 03, 2016, 10:25:18 AM
I will try that thank you for the quick response!
Title: Re: question about publishing my project
Post by: Phrog30 on February 26, 2017, 07:34:42 PM
I had success using Visual Studio Installer:
https://marketplace.visualstudio.com/items?itemName=VisualStudioProductTeam.MicrosoftVisualStudio2015InstallerProjects (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