Jump to content

Crash - The file or directory is corrupted and unreadable

Recommended Posts

I wanted to use paint.net (which is what i would usually use to make/edit images) and when i clicked the picture everything appeared to load fine, then this appeared:


System.TypeInitializationException: The type initializer for 'PaintDotNet.SystemLayer.FileSystem' threw an exception. ---> System.IO.IOException: The file or directory is corrupted and unrea


   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileSystemEnumerableIterator`1.CommonInit()
   at System.IO.Directory.GetFiles(String path, String searchPattern)
   at PaintDotNet.SystemLayer.FileSystem..cctor() in D:\src\pdn\src\SystemLayer\FileSystem.cs:line 513
   --- End of inner exception stack trace ---
   at PaintDotNet.SystemLayer.FileSystem.TryDeleteFile(String filePath)
   at PaintDotNet.Setup.InstallingPage.<DoInstallation>d__41.MoveNext() in D:\src\pdn\src\SetupFrontEnd\InstallingPage.cs:line 928
   at PaintDotNet.Threading.Tasks.IterativeTask.IterativeTaskAnon.<OnExecute>d__1.MoveNext() in D:\src\pdn\src\Core\Threading\Tasks\IterativeTask.cs:line 33
   at PaintDotNet.Threading.Tasks.IterativeTask`1.<>c__DisplayClass10_0.<StepTask>b__0() in D:\src\pdn\src\Core\Threading\Tasks\IterativeTask`1.cs:line 74


I tried reinstalling but the same message would appear 

please  help







Link to comment
Share on other sites

If I understand you correctly, you have used PDN before and had it already on your computer?  If so, try the Repair Tool which is found here:


OS (C) :arrow-right: Program Files :arrow-right: Paint.net - and scroll down to Pdn.Repair.exe


If the above was not the case are you aware of the requirements: https://www.getpaint.net/doc/latest/SystemRequirements.html

And downloaded it from here:  https://www.getpaint.net/download.html


If you uninstalled and reinstalled it could have messed up the reinstall, so it may be good to use this:



and then try to reinstall Paint.net from the link I gave you before.


Good Luck :)


How I made Jennifer & Halle in Paint.net

My Gallery | My Deviant Art

"Rescuing one animal may not change the world, but for that animal their world is changed forever!" anon.

Link to comment
Share on other sites

  • 2 weeks later...

after instal .net 4.7 on win 7 x64

paint.net 4.0.16  and paint.net 4.0.17  

can't start app  messedge  "The procedure entry point nextafterf could not be located in the dynamic link library MSVCR120_CLR0400.dll"



Problem Event Name:    APPCRASH
  Application Name:    PaintDotNet.exe
  Application Version:    4.17.6411.1908
  Application Timestamp:    59715337
  Fault Module Name:    KERNELBASE.dll
  Fault Module Version:    6.1.7601.23677
  Fault Module Timestamp:    589c9a27
  Exception Code:    e0434352
  Exception Offset:    000000000001a06d
  OS Version:    6.1.7601.



Edited by KoDAk
Link to comment
Share on other sites

  • toe_head2001 changed the title to Crash - The file or directory is corrupted and unreadable

Join the conversation

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

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...