Jump to content

File is not a valid paint.net document


Recommended Posts

Was working on two files the other night and one opens just fine but the other gives me this error message:
 

Exception:

System.FormatException: file is not a valid paint.net document
   at PaintDotNet.Document.FromStream(Stream stream) in D:\src\pdn\src_4_3_x\Data\Document.cs:line 1344
   at PaintDotNet.Data.PdnFileType.OnLoad(Stream input) in D:\src\pdn\src_4_3_x\PaintDotNet\Data\PdnFileType.cs:line 33
   at PaintDotNet.FileType.Load(Stream input) in D:\src\pdn\src_4_3_x\Data\FileType.cs:line 491
   at PaintDotNet.Functional.Func.Eval[T1,TRet](Func`2 f, T1 arg1) in D:\src\pdn\src_4_3_x\Fundamentals\Functional\Func.cs:line 60
 

I can tell from the thumbnail that the file is saved. This file is days of work and I would be so thankful for a solution! Thank you!

Link to comment
Share on other sites

This usually happens when some accidentally saves a PNG file with a .PDN file extension.

Please try to rename the file.

 

If that doesn't fix the issue, feel free to post the file so we can inspect it.

(September 25th, 2023)  Sorry about any broken images in my posts. I am aware of the issue.

bp-sig.png
My Gallery  |  My Plugin Pack

Layman's Guide to CodeLab

Link to comment
Share on other sites

1 hour ago, BlazinBalake2 said:

How would I go about posting the file because it says it's too big to attach to this response?

 

Zip it and upload it to an external file hosting service (Dropbox, Google Drive, etc), then post a link here.

PdnSig.png

Plugin Pack | PSFilterPdn | Content Aware Fill | G'MICPaint Shop Pro Filetype | RAW Filetype | WebP Filetype

The small increase in performance you get coding in C++ over C# is hardly enough to offset the headache of coding in the C++ language. ~BoltBait

 

Link to comment
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.

×
×
  • Create New...