DEV Community

Cover image for An error occured while trying to create a file in the destination directory: Access is denied
Just Determined
Just Determined

Posted on • Edited on

1

An error occured while trying to create a file in the destination directory: Access is denied

I am using VS Code in my windows 10 desktop to develop Web projects. For some days, an error dialogue box popped up suddenly with the following notice:

An error occured while trying to create a file in the destination directory: Access is denied

The popup persisted for almost a month and it annoyed me.
I tried to resolve that by updating and reinstalling VS Code, and by deleting the 000unins.exe file in the destination folder. But the error wasn't resolved.

Here is what worked for me:

  1. When I run VS Code as administrator the error didn't occured. So I set VS Code to run as Administrator. See how to do that
  2. I uninstalled VS Code and downloaded VS Code ZIP file instead of the installer and unzipped it in my AppData\Local\Programs folder. It's been working fine and the error hasn't occured.

Also Read: How to Land a Software Development Role in Top Tech Companies

Billboard image

Deploy and scale your apps on AWS and GCP with a world class developer experience

Coherence makes it easy to set up and maintain cloud infrastructure. Harness the extensibility, compliance and cost efficiency of the cloud.

Learn more

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❀ or a friendly comment on this post if you found it helpful!

Okay