intag icon indicating copy to clipboard operation
intag copied to clipboard

Access denied on file write

Open Jamminroot opened this issue 1 year ago • 3 comments

System.UnauthorizedAccessException: Access to the path 'C:\DEV\uMMORPG2D\Desktop.ini' 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.File.InternalWriteAllText(String path, String contents, Encoding encoding, Boolean checkHost)
   at System.IO.File.WriteAllText(String path, String contents, Encoding encoding)
   at intag.FileUtils.AssignTagsToFolder(String folder, HashSet`1 tags) in C:\DEV\intag\intag\FileUtils.cs:line 58
   at intag.FileUtils.AssignTags(Dictionary`2 objectTags) in C:\DEV\intag\intag\FileUtils.cs:line 29
   at intag.MainForm.FormDeactivate(Object sender, EventArgs e) in C:\DEV\intag\intag\intag_form.cs:line 183
   at System.Windows.Forms.Form.OnDeactivate(EventArgs e)
   at System.Windows.Forms.Form.set_Active(Boolean value)
   at System.Windows.Forms.Form.WmActivate(Message& m)
   at System.Windows.Forms.Form.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Jamminroot avatar Mar 13 '23 08:03 Jamminroot