AdvancedHMI Software
General Category => Support Questions => Topic started 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!
-
Do not use Publish. See this thread for the recommended deployment practice:
http://advancedhmi.com/forum/index.php?topic=14.msg37#msg37
-
I will try that thank you for the quick response!
-
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