Sign in to follow this  
StephanP

Error overwriting file

Recommended Posts

When saving (overwriting) an existing jpg file that resides in a OneDrive managed folder, I get the following error:

Quote

System.IO.IOException: Er is een ongeldige aanvraag voor een naam gedaan. De gevraagde naam kan momenteel niet worden verkregen.

   bij System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   bij System.IO.File.InternalMove(String sourceFileName, String destFileName, Boolean checkHost)
   bij PaintDotNet.IO.SaveTransaction.Commit() in D:\src\pdn\src\PaintDotNet\IO\SaveTransaction.cs:regel 146
   bij PaintDotNet.Controls.DocumentWorkspace.<>c__DisplayClass250_0.<DoSave>b__2() in D:\src\pdn\src\PaintDotNet\Controls\DocumentWorkspace.cs:regel 2984
   bij PaintDotNet.Functional.Func.Try(Action f) in D:\src\pdn\src\Base\Functional\Func.cs:regel 174

 

The first line would translate as follows: An invalid name request has been made. The requested name cannot be obtained at this time.

"Save as" using a different file name works without problems. (Currently my workaround)

Any ideas?

Share this post


Link to post
Share on other sites

It seems like OneDrive immediately replaces a deleted file with its backup copy. I may have to come up with a new solution for this. *grumble grumble* This really is Microsoft's bug.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this