IOException: The port `COM15‘ does not exist.

**
报错信息:

IOException: The port `COM15’ does not exist.

**
报错原因:
当你排除端口有没有写对,USB插口有没有插好,还报了串口不存在,
这个是因为Api兼容级别低了,默认是.NET2.0,升级一下就OK了。
解决方案:
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/hyt0626/article/details/129129860