Error Handle Disk Full: How to Resolve it

Using HRresult can help you handle this error

Reading time icon 1 min. read


Readers help support Windows Report. We may get a commission if you buy through our links. Tooltip Icon

Read our disclosure page to find out how can you help Windows Report sustain the editorial team Read more

Error_Handle_Disk_Full

When developing software you might encounter Error_Handle_Disk_Full error that will prevent your project from working properly. Luckily, there are a few solutions you can use that can help you with that.

How can I fix the Error_Handle_Disk_Full error?

Check the HResult

  1. Open your code.
  2. Now use  the HRresult like this:
    static bool IsDiskFull(Exception ex)
    {
        const int HR_ERROR_HANDLE_DISK_FULL = unchecked((int)0x80070027);
        const int HR_ERROR_DISK_FULL = unchecked((int)0x80070070);

         return ex.HResult == HR_ERROR_HANDLE_DISK_FULL
            || ex.HResult == HR_ERROR_DISK_FULL;
    }

    hrresult code
  3. Save changes.

This error also comes with its code 39 (0x27) and a description stating The disk is full. However, this issue only affects developers, so if you’re not a developer, it’s not likely that you’ll ever encounter it.

This isn’t the only issue, and we wrote about Insufficient disk space to complete operation and Drive that contains the data file is out of disk space errors in our other guides.

Have you ever seen an Error_Handle_Disk_Full error? If so, what methods did you use to fix it? Let us know in the comments below.

More about the topics: .NET Framework

User forum

0 messages