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.
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