lukevp / ESC-POS-.NET

Efficient, Easy to Use Thermal Printing & POS (Windows/Linux/OSX, WiFi/BT/USB/Ethernet)
MIT License
503 stars 166 forks source link

USB Connection error: "UnauthorizedAccessException" or "Access to the port 'COM3' is denied." #161

Open shajeermhmmd opened 2 years ago

shajeermhmmd commented 2 years ago

USB com port is connected and printing successfully, but while trying to print again I am getting the issue with "UnauthorizedAccessException" or "Access to the port 'COM3' is denied." with the com port. How can I solve this issue?

printer = new SerialPrinter(portName: "COM3", baudRate: 115200);

igorocampos commented 2 years ago

Are you using a physical COM port, or an adapter/emulator?

shajeermhmmd commented 2 years ago

I have two printers One is Epson's official printer and another one is a local company made, it is working perfectly with Epson's printer, but not with another one.

is there any compatible way to expose the USB interface as a virtual Serial port in windows?

is there any compatible way to expose the USB interface as a virtual Serial port?