What does HRESULT 0x80010135 (CO_E_PATHTOOLONG) mean?

 
Previous Next
CO_E_FAILEDTOGETWINDIR CO_E_FAILEDTOGENUUID

CO_E_PATHTOOLONG

COM access-control serialization path is too long

CO_E_PATHTOOLONG is HRESULT 2147549493 (0x80010135) from winerror.h. The documented description is “Path too long.” The relevant context is the COM IAccessControl, DCOM client identity, trustee translation, token inspection, security descriptor, ACL, or serialization workflow.

Where it is encountered

  • IAccessControl initialization, access checks, owner/trustee processing, and serialized ACL persistence.
  • Server-side DCOM impersonation, client blanket inspection, token and SID lookup.
  • Security descriptor construction, DACL canonicalization, file-backed policy storage, or legacy NetAccess migration.

The immediate focus is a path generated for ACL serialization, temporary files, or COM support data that exceeds the consuming API or format limit.

What to verify

Verify that the full normalized path, component lengths, prefix form, and exact API limit are measured.

Correct handling and recovery

Shorten product-controlled components, use a supported long-path API when all consumers support it, and avoid truncating identity-bearing filenames.

Difference from nearby HRESULTs

It is path-length validation; CO_E_FAILEDTOCREATEFILE can arise for permissions, existence, storage, or other file causes.

Practical scenario

A deeply nested service installation creates an ACL cache filename beyond a legacy limit. Storage moves to a short application-data root with a GUID key.

References


Looking for a different code? Search another status or error code.