I was working on my project and suddenly this happened. I checked and the COM2 port appears when I connect the Arduino, and it's not used by anything else. What should I do?
This happened all of a sudden, no updates, no change of board, first it worked, now it doesnt
"Access denied" implies rather heavily that something else has COM2 open. Check the serial monitor, serial plotter, another terminal program, a hung avrdude process... basically go through the usual suspects.