Can't upload code to Uno. Something to do with the port?

Hey all! I've been trying to solve this problem on my own for the past couple of days, but all of my experimenting and Googling has yet to help, so I figure it's time for an outsider's perspective.

I've been trying to upload some simple code to my Arduino Uno (brand new, never used before), but I keep getting the same error message:

Compiling debug version of 'project02' for 'Arduino/Genuino Uno'
Program size: 3,622 bytes (used 11% of a 32,256 byte maximum) (0.51 secs)
Minimum Memory Usage: 373 bytes (18% of a 2048 byte maximum)
 
Uploading to I/O board using 'COM7'
The uploader returned an error
avrdude: ser_open(): can't open device "\\.\COM7": The system cannot find the file specified.

So, it looks like the problem is the serial port, but I know for a fact that I'm using the correct one. (It's the only one that shows up in the menu, and it always has the Arduino Uno label next to it.) I've tried going into the device manager and setting my Uno to different ports, but the result is always the same. I'm doing this on Windows 10, using Visual Studio 2015 w/ Visual Micro (I've tried on the arduino IDE too, same error comes up), and I've updated all of the relevant drivers. I'm also reasonably sure that these ports are unused, and that I'm not clogging them up by running Bluetooth-related programs.

I've attached a screenshot of Visual Studio, just in case. Any and all help would be greatly appreciated!

(Edited, because the forum wouldn't take my screenshot. Maybe a bad format? :P)

That message suggests that the port you have selected doesn't exist. Is COM7 the port you have selected in the port menu? (I ask because windows can change the COM port number based on which USB port it's plugged into and general black magic, but the IDE will remember the old one until you select the new one)

Assuming it's not that, does loopback test work? Loop-Back Test Instructions - Installation & Troubleshooting - Arduino Forum

Thanks for the response! COM7 is definitely the port I have selected in the port menu. I'll try the lookback test after work today and see if it helps.

I've just tried the loopback test, and there doesn't seem to be any response to anything I send in the serial monitor... but there is an error message: Error while setting serial port parameters: 9,600 N 8 1. Seems to be pointing at the COM port again... I know I had the right one selected.

I've had a chance to test this board on a friend's computer, and it worked perfectly, so at least I can rule out a malfunctioning board. That being said, I've tried it on both of my computers, and I have the exact same problem on both no matter what I do.

Another thing I've noticed is that there's usually only one USB port on each of my computers I can plug into that will actually recognize my Uno. On the other ports, I'll get Unknown Device notices, even when try to update the drivers and stuff. Maybe these problems are connected?

Sorry for the late response on this, I've been really busy. But now that things have calmed down a bit, I really want to get this figured out. Any and all help would be super appreciated!