I'm getting the following error when I try and connect to a serial port device. The weird thing is, it connects successfully on some laptops but not others.
System.IO.IOException: The semaphore timeout period has expired.
Please see my code below:
serialcom.RtsEnable = true;
serialcom.PortName = comport;
serialcom.BaudRate = Convert.ToInt32(mainformtarget.connectionsettingsformref.baudratecombobox.Text);
serialcom.Parity = (Parity)Enum.Parse(typeof(Parity), mainformtarget.connectionsettingsformref.paritycombobox.Text);
serialcom.StopBits = (StopBits)Enum.Parse(typeof(StopBits), mainformtarget.connectionsettingsformref.stopbitscombobox.Text);
serialcom.DataBits = 8;
serialcom.Handshake = (Handshake)Enum.Parse(typeof(Handshake), mainformtarget.connectionsettingsformref.handshakecombobox.Text);
serialcom.ReadTimeout = 5000;
serialcom.WriteTimeout = 5000;
serialcom.Open();
Any ideas on what could be causing this?