Upload fails: 'avrdude: ser_open(): can't open device "\\.\COM10": Access is denied.'

I'm tearing my hair out - I don't seem to be able to upload any sketch - even blink - if my Arduino has any kind of shield. And I can only upload without a shield if I have previously disconnected the computer.

I can't even make my Arduino give a verbose error report. I have checked the box (see attached screen shot) and I still only get the error report pasted below.

I'm running IDE 1.8.13 on a Lenovo L340 laptop with Windows 10.

Arduino: 1.8.13 (Windows Store 1.8.42.0) (Windows 10), Board: "Arduino Uno"

Sketch uses 924 bytes (2%) of program storage space. Maximum is 32256 bytes.

Global variables use 9 bytes (0%) of dynamic memory, leaving 2039 bytes for local variables. Maximum is 2048 bytes.

C:\Users\Tom\Documents\ArduinoData\packages\arduino\tools\avrdude\6.3.0-arduino17/bin/avrdude -CC:\Users\Tom\Documents\ArduinoData\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf -v -patmega328p -carduino -PCOM10 -b115200 -D -Uflash:w:C:\Users\Tom\AppData\Local\Temp\arduino_build_927702/Blink.ino.hex:i 



avrdude: Version 6.3-20190619

         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/

         Copyright (c) 2007-2014 Joerg Wunsch



         System wide configuration file is "C:\Users\Tom\Documents\ArduinoData\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf"



         Using Port                    : COM10

         Using Programmer              : arduino

         Overriding Baud Rate          : 115200

avrdude: ser_open(): can't open device "\\.\COM10": Access is denied.






avrdude done.  Thank you.



Problem uploading to board.  See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.



This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

@hayttom

I see you are using the windows STORE APP.

Some people have reported issues with that version so we usually recommend using the full version download.
Many have said that it works better and has cured thier problems.

Somehow today everything seems to be uploading normally. If there are any theories about what was going wrong I'd be interested to hear them, but otherwise I guess this is resolved.

I can't upload the demo sketch "Blink" to a UNO from the IDE 1.8.13. The Acer Nitro 5 PC is running Windows 10 Home. Version 1909 Build 18363.1198

I have tried all three USB ports on the PC. The IDE sees the UNO Board and reports Board Info with no problem, but when I try to upload the sketch, I get the following detailed error code. I have tried changing to Port 4 and also to Port 10, but same result. I've also tried running an earlier version of the IDE - 1.6.8 but with the same results.

UNO Board works fine with an older PC.

Any thoughts?

Arduino: 1.8.13 (Windows Store 1.8.42.0) (Windows 10), Board: "Arduino Uno"

Sketch uses 924 bytes (2%) of program storage space. Maximum is 32256 bytes.

Global variables use 9 bytes (0%) of dynamic memory, leaving 2039 bytes for local variables. Maximum is 2048 bytes.

C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.42.0_x86__mdqgnx93n4wtt\hardware\tools\avr/bin/avrdude -CC:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.42.0_x86__mdqgnx93n4wtt\hardware\tools\avr/etc/avrdude.conf -v -patmega328p -carduino -PCOM3 -b115200 -D -Uflash:w:C:\Users\hanlo\AppData\Local\Temp\arduino_build_515383/Blink.ino.hex:i 



avrdude: Version 6.3-20190619

         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/

         Copyright (c) 2007-2014 Joerg Wunsch



         System wide configuration file is "C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.42.0_x86__mdqgnx93n4wtt\hardware\tools\avr/etc/avrdude.conf"



         Using Port                    : COM3

         Using Programmer              : arduino

         Overriding Baud Rate          : 115200

avrdude: ser_open(): can't open device "\\.\COM3": Access is denied.






avrdude done.  Thank you.



Problem uploading to board.  See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.

@jimhanlon See reply #2