Why am I still getting "IOException: The port 'COM1' does not exist"?
I am still having trouble with the "IOException: The port 'COM1 does not exist." error. I have already verified that my Api Compatibility Level is .NET 2.0 and NOT Subnet. this seems to clear this problem up for just about everyone. I know the port is available as I can connect to my Arduino using COM1. I have closed the Arduino Application and rebooted after. I also manually set the port for my device to COM1. I also reinstalled Unity 2017. I then upgraded to Unity 2018 and still have the problem. I have rebooted and reset my Device. I then removed all other USB devices from my computer other than my keyboard and mouse. Can anyone point me in the direction of what else this can be or further troubleshooting steps?
Testing I have updated to Unity 2018. It seems my upgraded project does not work but I tried to recreate it in Unity 2018 thinking it was some kind of bug. Well now "Using System.IO.Ports;" gives me an error in this project "Ports does not exist in the namespace "System.IO'. I already changed the compatibility $$anonymous$$ode to NET 2.0 again. What can be the problem. Please Help.
Answer by Ctttdaddy · Jun 05, 2018 at 11:42 PM
I found out the problem. It was a silly mistake. My stream didnt ever do a line break. By putting in a line break in my stream it apparently allowed Unity to read the stream.