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.UnauthorizedAccessException #60

Closed
crozynski opened this issue Feb 23, 2022 · 3 comments
Closed

System.UnauthorizedAccessException #60

crozynski opened this issue Feb 23, 2022 · 3 comments

Comments

@crozynski
Copy link

crozynski commented Feb 23, 2022

When running FiletoVoxGUI v0.4 on Windows 11 for the first time I get the error:

System.UnauthorizedAccessException: Access to the path 'D:\MagicaVoxel-0.99.6.4-win64\export\test.vox' is denied.
at System.IO.FileStream.ValidateFileHandle(SafeFileHandle fileHandle)
at System.IO.FileStream.CreateFileOpenHandle(FileMode mode, FileShare share, FileOptions options)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at System.IO.File.Open(String path, FileMode mode)
at FileToVoxCore.Vox.VoxWriter.WriteModel(String absolutePath, List`1 palette, Schematic schematic, Rotation rotation)
at FileToVox.Program.SchematicToVox(AbstractToSchematic converter)
at FileToVox.Program.ProcessFile()

I'm a user with administrator privileges and the directories I'm trying to write to have Full Control set in Properties / Security.

None of my other apps have had trouble writing to the directories in question.

Any help much appreciated.

@ayliv
Copy link

ayliv commented Jun 16, 2022

Same problem here! It worked pretty well at first and out of nowhere, it began to act exactly the same. If someone could help us, it would be great! Thanks!

@Zarbuz
Copy link
Owner

Zarbuz commented Jun 21, 2022

Run FileToVoxGUI as administrator if you can. I will try to improve this UX

@Zarbuz
Copy link
Owner

Zarbuz commented Jun 21, 2022

Now FileToVox is automatically run as administrator in v1.15.1

@Zarbuz Zarbuz closed this as completed Jun 21, 2022
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