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

Image of Timescale

🚀 pgai Vectorizer: SQLAlchemy and LiteLLM Make Vector Search Simple

We built pgai Vectorizer to simplify embedding management for AI applications—without needing a separate database or complex infrastructure. Since launch, developers have created over 3,000 vectorizers on Timescale Cloud, with many more self-hosted.

Read full post →

Top comments (0)

AWS GenAI Live!

GenAI LIVE! is a dynamic live-streamed show exploring how AWS and our partners are helping organizations unlock real value with generative AI.

Tune in to the full event

DEV is partnering to bring live events to the community. Join us or dismiss this billboard if you're not interested. ❤️