❔ System.Io.Ports: The given port name (COM4) does not resolve to a valid serial port.
Hi, I've been using System.Io.Ports to connect to a USB thermal printer that I have connected to my computer. When trying to open the port to print, the functionality was working as expected and printing the documents, but after a day it started throwing the error mentioned above, and ever since i have not been able to open that port anymore because it says that the name is not valid.
2 Replies
port numbers can be reassigned after reboot, especially if it's a serial device over USB
what COM ports are available in your Device Manager?
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.