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 #25

Open
Aabayoumy opened this issue Apr 22, 2020 · 3 comments
Open

System.UnauthorizedAccessException #25

Aabayoumy opened this issue Apr 22, 2020 · 3 comments

Comments

@Aabayoumy
Copy link

I got this error in powershell & CMD !
I'm the oner of folder and give modify permition to everyone !

[D:]# .\ChocolateStore.exe d:\choco https://chocolatey.org/packages/DellCommandUpdate/
Downloading:
Download Failed: https://chocolatey.org/packages/DellCommandUpdate/
System.UnauthorizedAccessException: Access to the path 'd:\choco' is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize)
at ChocolateStore.PackageCacher.DownloadFile(String url, String destination)
System.NotSupportedException: The given path's format is not supported.
at System.Security.Permissions.FileIOPermission.EmulateFileIOPermissionChecks(String fullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at Ionic.Zip.ZipFile.get_ReadStream()
at Ionic.Zip.ZipFile.ReadIntoInstance(ZipFile zf)
at Ionic.Zip.ZipFile.Read(String fileName, TextWriter statusMessageWriter, Encoding encoding, EventHandler`1 readProgress)
at ChocolateStore.PackageCacher.CachePackage(String dir, String url)
at ChocolateStore.Program.Main(String[] args)

@BahKoo
Copy link
Owner

BahKoo commented Apr 26, 2020

I can't reproduce the problem. Can you rebuild the latest version and try again? Are you having this problem with all packages or only DellCommandUpdate?

@Aabayoumy
Copy link
Author

it's for all packages
it's working only when point the tore to external usb drive :)

@BahKoo
Copy link
Owner

BahKoo commented Apr 30, 2020

It seems like there's some permission issue in your setup. Does it work if you use a location in your %APPDATA% or %TEMP% folders?

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

2 participants