I'm developing an interface for a handheld barcode reader, and I'm having trouble with accessing the COM port with Visual Studio 2005.
The device has a USB connection, but comes with drivers to emulate a serial port. Whenever I try to access the device with System.IO.Ports, I get the error: "The given port name does not start with COM/com or does not resolve to a valid serial port. Parameter name: portName"
Is Visual Studio accessing the port at a lower level than the USB is emulating
Thoughts, Comments.

Issue with COM Port Access (serial port emulation)
sean_n
sudkot
What is the value you are passing into Open for the portName parameter
portName is looking for name of the port, not just number, so if you want to access port 5 you’d call for COM5.
Juergen W Leis
ziggyrazor
The one problem I potentially see is that in Stopbits.One, the B should be capitalized ala: StopBits.One.
Other than that... like you I am completely at a loss... with that minor change the code works fine for me... and yet fails in such an obscure way on your end.
Bitla
Quite odd... Open will throw an IOException if the port isn’t found... and an ArgumentException if the name does not start with “COM”... the fact that you are getting the ArgumentException still seems to indicate that there is something wrong with the name, despite the name you specified being of the correct format.
Care to post some code of your creation, setting and opening of the SerialPort class
Micah_
SerialPort Reader = new SerialPort("COM2", 9600, Parity.None, 8, Stopbits.One);
Reader.Open();
Simple as that.