ERROR_PAGEFILE_CREATE_FAILED 0x80070240

Error code 576 · HRESULT 0x80070240

WINDOWS

The creation of the paging file … failed (…). The requested size was ….

Windows troubleshooting diagram: Device Manager warning and a system file scan
Windows errors: check drivers, system files and Event Viewer, in that order.

What it means

ERROR_PAGEFILE_CREATE_FAILED is a Windows error code (system error 576, returned as HRESULT 0x80070240) reported by Windows. Its official message is: “{Unable to Create Paging File} The creation of the paging file %hs failed (%lx). The requested size was %ld.”

How to fix ERROR_PAGEFILE_CREATE_FAILED

  1. Verify the path/file actually exists and is not blocked by antivirus quarantine
  2. Reinstall the application that raised the error to restore missing files
  3. Check the full path spelling (long paths >260 chars need a registry opt-in)
  4. Run 'chkdsk /scan' on the affected volume and read the report
  5. Check disk health: 'wmic diskdrive get status' or CrystalDiskInfo SMART values
  6. If errors return on a clean disk, replace the drive — sectors are degrading

Related errors

Source: Microsoft WinError.h

Last updated: