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

Not working on Windows 10. #837

Closed
Yandols opened this issue Jul 31, 2015 · 5 comments
Closed

Not working on Windows 10. #837

Yandols opened this issue Jul 31, 2015 · 5 comments
Labels

Comments

@Yandols
Copy link

Yandols commented Jul 31, 2015

Hi, I have just upgraded to my pc to Windows 10 (Build 10240) and I noticed that ShareX apparently does not work for me anymore.

I got an error message while taking a screenshot, and the screenshot failed to save.
This is it's error message.

Could not create directory, check your path settings.

System.UnauthorizedAccessException: Access to the path 'C:\Users\User\Documents\ShareX\Screenshots\2015-08' is denied.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.Directory.InternalCreateDirectory(String fullPath, String path, Object dirSecurityObj, Boolean checkHost)
   at System.IO.Directory.InternalCreateDirectoryHelper(String path, Boolean checkHost)
   at ShareX.HelpersLib.Helpers.CreateDirectoryIfNotExist(String path, Boolean isFilePath)

And this is the error message I receive when exiting the application.

System.UnauthorizedAccessException: Access to the path 'C:\Users\User\Documents\ShareX\Logs\ShareX-Log-2015-08.txt' 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, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.StreamWriter.CreateFile(String path, Boolean append, Boolean checkHost)
   at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize, Boolean checkHost)
   at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding)
   at System.IO.File.InternalAppendAllText(String path, String contents, Encoding encoding)
   at ShareX.HelpersLib.Logger.SaveLog(String filepath)
   at ShareX.Program.Main(String[] args)
@Jaex
Copy link
Member

Jaex commented Jul 31, 2015

ShareX works in Windows 10, we using W10 for long time. Your Windows not allows ShareX to access "C:\Users\User\Documents\ShareX\Screenshots\2015-08" this folder and therefore ShareX can't do anything about it. So it is about your Windows config and not bug in ShareX side.

@Jaex Jaex closed this as completed Jul 31, 2015
@Jaex Jaex added the Invalid label Jul 31, 2015
@Jaex
Copy link
Member

Jaex commented Aug 8, 2015

Check #884 for solution if you already not found it yourself.

@rliden
Copy link

rliden commented Jun 26, 2020

ShareX works in Windows 10, we using W10 for long time. Your Windows not allows ShareX to access "C:\Users\User\Documents\ShareX\Screenshots\2015-08" this folder and therefore ShareX can't do anything about it. So it is about your Windows config and not bug in ShareX side.

Right. It compiles and runs on your desktop so what's the problem? /smh

@triptych
Copy link

This helped me https://www.youtube.com/watch?v=i6yKG71YzwI

@JOduMonT
Copy link

as mentioned here

... uninstall ShareX and running the installer (downloaded from the official website) as admin and it works ...

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

No branches or pull requests

5 participants