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

Exception: The file or directory is corrupted and unreadable #12

Open
MikeWilliams-UK opened this issue Aug 20, 2019 · 0 comments
Open

Comments

@MikeWilliams-UK
Copy link
Contributor

Exception: The file or directory is corrupted and unreadable.

This seems to be happening if the user's profile folder is read only.
It has also been seen sometimes when the profile is mapped to a network drive.

The file or directory is corrupted and unreadable
  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.File.InternalWriteAllText(String path, String contents, Encoding encoding, Boolean checkHost)
  at System.IO.File.WriteAllText(String path, String contents)
  at Chem4Word.Chem4WordV3.LoadOptions() in C:\Dev\vsts\chem4word\Version3\src\Chem4Word.V3\Chem4WordV3.cs:line 345
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

1 participant