| Previous | Next |
| MQ_ERROR_CANNOT_OPEN_CERT_STORE | MQ_ERROR_CANNOT_GRANT_ADD_GUID |
MQ_ERROR_ILLEGAL_ENTERPRISE_OPERATION
Operational meaning
MQ_ERROR_ILLEGAL_ENTERPRISE_OPERATION belongs to the Message Queuing HRESULT facility, but its useful meaning is narrower than a generic messaging failure. Interpret it as COM enterprise object used for an unsupported operation, not as a general transport outage. MsmqServices is not a creatable/general-purpose object for this action.
The property namespace is split among message, queue, computer, private-computer, and management properties. When diagnosing this result, A numeric identifier meaningful in one structure is not automatically legal in another API.
Validation occurs in layers: identifier recognition, variant type, buffer shape, value range, required companions, and operation eligibility. These layers correspond to different MSMQ HRESULTs and different fixes.
Where the condition occurs
| Subsystem | MSMQ property arrays and their parallel identifier, value, and status elements |
|---|---|
| Relevant condition | the property identifier, VARTYPE, value, operation, and buffer ownership are validated separately |
| Code-specific focus | COM enterprise object used for an unsupported operation |
Do not merge it with other property failures: identifier, VARTYPE, value, size, required companions, and operation eligibility are diagnosed by different codes. The code-specific boundary is COM enterprise object used for an unsupported operation.
Evidence to preserve
- The first failing property rather than only the aggregate hresult.
- The complete apropid/apropvar/astatus triples in original order.
- The api name and whether the structure was input, output, or both.
Handling and recovery
Use the documented MSMQ COM object that owns the requested operation.
Nearby failures
Changing a queue ACL or restarting the service does not correct an invalid identifier, VARTYPE, value, structure, or property combination. Code-specific condition: COM enterprise object used for an unsupported operation.
Worked example
References
Looking for a different code? Search another status or error code.