COM Error Codes (Generic)
The following table provides a list of error codes used by COM-based APIs.
If you are experiencing difficulty with an application you are installing or running, contact customer support for the software that is displaying the error message. To obtain support for a Microsoft product, go to https://support.microsoft.com.
Constant/value | Description |
---|---|
|
Catastrophic failure |
|
Not implemented |
|
Ran out of memory |
|
One or more arguments are invalid |
|
No such interface supported |
|
Invalid pointer |
|
Invalid handle |
|
Operation aborted |
|
Unspecified error |
|
General access denied error |
|
The data necessary to complete this operation is not yet available. |
|
The operation attempted to access data outside the valid range |
|
A concurrent or interleaved operation changed the state of the object, invalidating this operation. |
|
An illegal state change was requested. |
|
A method was called at an unexpected time. |
|
Typename or Namespace was not found in metadata file. |
|
Name is an existing namespace rather than a typename. |
|
Typename has an invalid format. |
|
Metadata file is invalid or corrupted. |
|
The object has been closed. |
|
Only one thread may access the object during a write operation. |
|
Operation is prohibited during change notification. |
|
The text associated with this error code could not be found. |
|
String not null terminated. |
|
A delegate was assigned when not allowed. |
|
An async operation was not properly started. |
|
The application is exiting and cannot service this request. |
|
The application view is exiting and cannot service this request. |
|
The object must support the IAgileObject interface. |
|
Activating a single-threaded class from MTA is not supported. |
|
The object has been committed. |
|
Thread local storage failure |
|
Get shared memory allocator failure |
|
Get memory allocator failure |
|
Unable to initialize class cache |
|
Unable to initialize RPC services |
|
Cannot set thread local storage channel control |
|
Could not allocate thread local storage channel control |
|
The user supplied memory allocator is unacceptable |
|
The OLE service mutex already exists |
|
The OLE service file mapping already exists |
|
Unable to map view of file for OLE service |
|
Failure attempting to launch OLE service |
|
There was an attempt to call CoInitialize a second time while single threaded |
|
A Remote activation was necessary but was not allowed |
|
A Remote activation was necessary but the server name provided was invalid |
|
The class is configured to run as a security id different from the caller |
|
Use of Ole1 services requiring DDE windows is disabled |
|
A RunAs specification must be <domain name>\<user name> or simply <user name>. |
|
The server process could not be started. The pathname may be incorrect. |
|
The server process could not be started as the configured identity. The pathname may be incorrect or unavailable. |
|
The server process could not be started because the configured identity is incorrect. Check the user name and password. |
|
The client is not allowed to launch this server. |
|
The service providing this server could not be started. |
|
This computer was unable to communicate with the computer providing the server. |
|
The server did not respond after being launched. |
|
The registration information for this server is inconsistent or incomplete. |
|
The registration information for this interface is inconsistent or incomplete. |
|
The operation attempted is not supported. |
|
A dll must be loaded. |
|
A Microsoft Software Installer error was encountered. |
|
The specified activation could not occur in the client context as specified. |
|
Activations on the server are paused. |
|
Activations on the server are not paused. |
|
The component or application containing the component has been disabled. |
|
The common language runtime is not available |
|
The thread-pool rejected the submitted asynchronous work. |
|
The server started, but did not finish initializing in a timely fashion. |
|
Unable to complete the call since there is no COM+ security context inside IObjectControl.Activate. |
|
The provided tracker configuration is invalid |
|
The provided thread pool configuration is invalid |
|
The provided side-by-side configuration is invalid |
|
The server principal name (SPN) obtained during security negotiation is malformed. |
|
Invalid OLEVERB structure |
|
Invalid advise flags |
|
Can't enumerate any more, because the associated data is missing |
|
This implementation doesn't take advises |
|
There is no connection for this connection ID |
|
Need to run the object to perform this operation |
|
There is no cache to operate on |
|
Uninitialized object |
|
Linked object's source class has changed |
|
Not able to get the moniker of the object |
|
Not able to bind to the source |
|
Object is static; operation not allowed |
|
User canceled out of save dialog |
|
Invalid rectangle |
|
compobj.dll is too old for the ole2.dll initialized |
|
Invalid window handle |
|
Object is not in any of the inplace active states |
|
Not able to convert object |
|
Not able to perform the operation because object is not given storage yet |
|
Invalid FORMATETC structure |
|
Invalid DVTARGETDEVICE structure |
|
Invalid STDGMEDIUM structure |
|
Invalid STATDATA structure |
|
Invalid lindex |
|
Invalid tymed |
|
Invalid clipboard format |
|
Invalid aspect(s) |
|
tdSize parameter of the DVTARGETDEVICE structure is invalid |
|
Object doesn't support IViewObject interface |
|
Trying to revoke a drop target that has not been registered |
|
This window has already been registered as a drop target |
|
Invalid window handle |
|
Class does not support aggregation (or class object is remote) |
|
ClassFactory cannot supply requested class |
|
Class is not licensed for use |
|
Error drawing view |
|
Could not read key from registry |
|
Could not write key to registry |
|
Could not find the key in the registry |
|
Invalid value for registry |
|
Class not registered |
|
Interface not registered |
|
Threading model entry is not valid |
|
CATID does not exist |
|
Description not found |
|
No package in the software installation data in the Active Directory meets this criteria. |
|
Deleting this will break the referential integrity of the software installation data in the Active Directory. |
|
The CLSID was not found in the software installation data in the Active Directory. |
|
The software installation data in the Active Directory is corrupt. |
|
There is no software installation data in the Active Directory. |
|
There is no software installation data object in the Active Directory. |
|
The software installation data object in the Active Directory already exists. |
|
The path to the software installation data in the Active Directory is not correct. |
|
A network error interrupted the operation. |
|
The size of this object exceeds the maximum size set by the Administrator. |
|
The schema for the software installation data in the Active Directory does not match the required schema. |
|
An error occurred in the software installation data in the Active Directory. |
|
Cache not updated |
|
No verbs for OLE object |
|
Invalid verb for OLE object |
|
Undo is not available |
|
Space for tools is not available |
|
OLESTREAM Get method failed |
|
OLESTREAM Put method failed |
|
Contents of the OLESTREAM not in correct format |
|
There was an error in a Windows GDI call while converting the bitmap to a DIB |
|
Contents of the IStorage not in correct format |
|
Contents of IStorage is missing one of the standard streams |
|
There was an error in a Windows GDI call while converting the DIB to a bitmap. |
|
OpenClipboard Failed |
|
EmptyClipboard Failed |
|
SetClipboard Failed |
|
Data on clipboard is invalid |
|
CloseClipboard Failed |
|
Moniker needs to be connected manually |
|
Operation exceeded deadline |
|
Moniker needs to be generic |
|
Operation unavailable |
|
Invalid syntax |
|
No object for moniker |
|
Bad extension for file |
|
Intermediate operation failed |
|
Moniker is not bindable |
|
Moniker is not bound |
|
Moniker cannot open file |
|
User input required for operation to succeed |
|
Moniker class has no inverse |
|
Moniker does not refer to storage |
|
No common prefix |
|
Moniker could not be enumerated |
|
CoInitialize has not been called. |
|
CoInitialize has already been called. |
|
Class of object cannot be determined |
|
Invalid class string |
|
Invalid interface string |
|
Application not found |
|
Application cannot be run more than once |
|
Some error in application program |
|
DLL for class not found |
|
Error in the DLL |
|
Wrong operating system or operating system version for the application |
|
Object is not registered |
|
Object is already registered |
|
Object is not connected to server |
|
Application was launched but it didn't register a class factory |
|
Object has been released |
|
An event was able to invoke some but not all of the subscribers |
|
An event was unable to invoke any of the subscribers |
|
An event was delivered but there were no subscribers |
|
A syntax error occurred trying to evaluate a query string |
|
An invalid field name was used in a query string |
|
An unexpected exception was raised |
|
An unexpected internal error was detected |
|
The owner SID on a per-user subscription doesn't exist |
|
A user-supplied component or subscriber raised an exception |
|
An interface has too many methods to fire events from |
|
A subscription cannot be stored unless its event class already exists |
|
Not all the objects requested could be removed |
|
COM+ is required for this operation, but is not installed |
|
Cannot modify or delete an object that was not added using the COM+ Admin SDK |
|
Cannot modify or delete an object that was added using the COM+ Admin SDK |
|
The event class for this subscription is in an invalid partition |
|
The owner of the PerUser subscription is not logged on to the system specified |
Requirements
Requirement | Value |
---|---|
Header |
|