Author Topic: Driver works in debug VS2015 but not from clickonce release  (Read 941 times)

gfulk

  • Newbie
  • *
  • Posts: 8
    • View Profile
Driver works in debug VS2015 but not from clickonce release
« on: September 07, 2017, 10:36:26 AM »
Archie,
I am able to modify a modbus drivers address dynamically from code behind and it works in the VSHost for debugging, but when I publish and run the click once application it does not work. I am setting the comport name from a global variable when the view with the driver is opened.

Code: [Select]
   
myModbus_Com.BeginInit();
            myModbus_Com.BaudRate = 38400;
            myModbus_Com.StationAddress = 247;
            myModbus_Com.DataBits = 8;
            myModbus_Com.Parity = Parity.None;
            myModbus_Com.StopBits = StopBits.One;
            myModbus_Com.PortName = comPortCombo.SelectedItem.ToString();
            myModbus_Com.EndInit();

This works in debug but running the exe I get an error on the BasicLabels saying that the present key isnt in the dictionary.

Thanks

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: Driver works in debug VS2015 but not from clickonce release
« Reply #1 on: September 07, 2017, 10:40:29 AM »
Did you try not using Publish. Use XCopy style deployment

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