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

Use Playwright to test. Use Playwright to monitor.

Join Vercel, CrowdStrike, and thousands of other teams that run end-to-end monitors on Checkly's programmable monitoring platform.

Get started now!

Top comments (0)

Eliminate Context Switching and Maximize Productivity

Pieces.app

Pieces Copilot is your personalized workflow assistant, working alongside your favorite apps. Ask questions about entire repositories, generate contextualized code, save and reuse useful snippets, and streamline your development process.

Learn more

👋 Kindness is contagious

Explore a sea of insights with this enlightening post, highly esteemed within the nurturing DEV Community. Coders of all stripes are invited to participate and contribute to our shared knowledge.

Expressing gratitude with a simple "thank you" can make a big impact. Leave your thanks in the comments!

On DEV, exchanging ideas smooths our way and strengthens our community bonds. Found this useful? A quick note of thanks to the author can mean a lot.

Okay