Miscallaneous error codes

The following error codes are the HRESULT values of the Automation Interface methods as described in the API reference.

typedefenum TCSYSMANAGERHRESULTS
{
[helpstring("ITcSmTreeItem not found!" (ITcSmTreeItem nicht gefunden!))]
TSM_E_ITEMNOTFOUND = 0x98510001,
[helpstring("Invalid Item Type!" (Ungültiger Elementtyp!))]
TSM_E_INVALIDITEMTYPE = 0x98510002,
[helpstring("Invalid SubItem Type!" (Ungültiger Unterelementtyp!))]
TSM_E_INVALIDITEMSUBTYPE = 0x98510003,
[helpstring("Mismatching Items!" (Nicht übereinstimmende Elemente!))]
TSM_E_MISMATCHINGITEMS = 0x98510004,
[helpstring("Corrupted Link" (Fehlerhafte Verknüpfung))]
TSM_E_CORRUPTEDLINK = 0x98510005,
[helpstring("Item still referenced!" (Element immer noch referenziert!))]
TSM_E_ITEMREFERENCED = 0x98510006,
[helpstring("Item already deleted!" (Element bereits gelöscht!))]
TSM_E_ITEMDELETED = 0x98510007,
[helpstring("XML Error" (XML-Fehler))]
TSM_E_XMLERROR = 0x98510008,
} TCSYSMANAGERHRESULTS;

Please note that the following COM error list is only a snippet and is not complete:

Failure

Description

RPC_E_CALL_REJECTED

The COM server has rejected the request. Please read our article on the implementation of a custom message filter to work around this error.

Return value of the CoRegisterMessageFilter() method <> 0

A possible cause of this error may be that the COM message filter has been applied to an MTA apartment. Message filters can only be applied to STA threads. See the message filter article to learn more about message filters, including STA and MTA.

Error message "A reference to Beckhoff TwinCAT XAE Base 2.0 Type Library could not be added" when referencing the type library in Microsoft Visual Studio®.

The type library is not properly registered. Please register the type library again by executing the following command:
C:\Windows\Microsoft .NET\Framework\v4.0.xxxxx\regtlibv12.exe C:\TwinCAT3\Components\Base\TCatSysManager.tlb
xxxxxx is the version of the currently installed version of .NET Framework 4.0.