Site icon EfmSoft

What does Windows error code 1155 (ERROR_NO_ASSOCIATION) mean?

 
Previous Next
ERROR_INVALID_DLL ERROR_DDE_FAIL

ERROR_NO_ASSOCIATION

No registered application can perform the requested shell operation.

ERROR_NO_ASSOCIATION has value 1155 (0x483). It is commonly returned by shell activation such as ShellExecuteEx when Windows cannot resolve the supplied file name or URI and verb to an installed handler. The target file may exist and be readable; the missing piece is the association needed to decide which application should receive it.

Interpret the complete activation request

An extension can have a valid open handler but no print handler, so reporting only “.pdf is associated” may miss the actual failure. Per-user defaults also mean that an interactive user and a service account can see different registration state.

Typical causes

Diagnostic steps

Do not repair this condition by assigning a random executable to the extension. File associations are an activation and security boundary: the handler must understand the data format, quote arguments safely, and support the selected verb.

Application behavior

A desktop program can offer the user a choice of installed applications or direct the user to install the required product. A background service should normally avoid shell associations and invoke a documented executable or API explicitly, because services do not share the interactive user's default-app experience.

When a product owns a custom file type or protocol, its installer should register it transactionally and remove only registrations belonging to that installation. Startup self-repair should not silently overwrite a user's chosen default application.

Distinguishing related results

ERROR_FILE_NOT_FOUND concerns the target or handler path. ERROR_DDE_FAIL indicates that a handler was selected but command delivery failed. ERROR_DLL_NOT_FOUND can be returned if the chosen application lacks a required library. Error 1155 occurs earlier in the shell decision: no suitable association exists for the requested operation.

Example

A service generates a report with a proprietary extension and calls ShellExecuteEx using the print verb. The report viewer is installed only for the logged-on user, while the service account has no corresponding association. Recording account and verb exposes the mismatch; the robust solution is to use the viewer's documented command-line or printing API instead of relying on shell defaults.

References


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

Exit mobile version