Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

System.ApplicationException: Unable to move PACKAGE_DIST - Access to the path is denied #776

Open
michael-hawker opened this issue Sep 26, 2023 · 4 comments

Comments

@michael-hawker
Copy link

I've been seeing this in the Toolkit builds on my machine for a while, thought it may go away once we moved from .NET 5 to .NET 7, but still see it:

image

If I rebuild/deploy then sometimes I hit it again and other times it's just fine, so seems like a race condition on disk or something?

Happened on version 7.0.27

I've seen it building the WASM heads for our all-up sample and for individual component samples.

@SerratedSharp
Copy link

Also get this on the dist_work folder. Workaround: go to root solution directory in windows, right click -> Properties, uncheck Read only(probably has a grey check), then apply and choose all subfolders/items when prompted. This clears the read-only flag from all the nested items and clears the error for me. Not real clear what root cause is though. It doesn't seem to reoccur for a given project once cleared. So maybe something when initially created is getting read-only flag.

@michael-hawker
Copy link
Author

@SerratedSharp I tried the read-only thing, but didn't see a change. Not sure why, but hitting it constantly at the moment preventing me from building.

@jeromelaban
Copy link
Member

@michael-hawker this may be related to hot reload, somehow. Can you try disabling it in VS?

@michael-hawker
Copy link
Author

Thanks @jeromelaban, first two boxes were checked, I unchecked them and tried again:

image

Same issue:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants