| Previous | Next |
| IMAPI_E_STASHFILE_READ_FAILURE | IMAPI_E_WORKING_DIRECTORY_SPACE |
IMAPI_E_INVALID_WORKING_DIRECTORY
IMAPI_E_INVALID_WORKING_DIRECTORY is returned by IFileSystemImage::put_WorkingDirectory when the supplied path is not a valid temporary workspace for stash files. Microsoft states that the default is the current temp directory and that stash files are built in this location.
Validate the directory as an IMAPI staging workspace
- Record the exact path string passed to
put_WorkingDirectoryafter environment-variable expansion and normalization. - Confirm that the directory exists and is accessible to the process account.
- Avoid using a path that is transient, disconnected, or subject to application cleanup while the image is active.
This error is about the configured directory itself; it is not equivalent to insufficient free space, which has a separate HRESULT. Use a local stable path with predictable permissions. Also remember that the working directory cannot be changed after a result stream exists, and moving existing stash files to a new location can itself fail. Configure the workspace early in the image lifecycle.
WorkingDirectory · StageFiles · IFileSystemImage
Looking for a different code? Search another status or error code.