MTS Error Codes

Archived content. No warranty is made as to technical accuracy. Content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

The following errors can be returned by Microsoft Transaction Server (MTS) objects.

S_OK

The call succeeded.

E_INVALIDARG

One or more of the arguments passed in is invalid.

E_UNEXPECTED

An unexpected error occurred.

CONTEXT_E_NOCONTEXT

The current object doesn't have a context associated with it. This is probably either because its component hasn't been installed in a package or it wasn't created with one of the MTS CreateInstance methods.

CONTEXT_E_ROLENOTFOUND

The role specified in the szRole parameter in the IObjectContext::IsCallerInRole method does not exist.

E_OUTOFMEMORY

There's not enough memory available to instantiate the object. This error code can be returned by IObjectContext::CreateInstance or ITransactionContext::CreateInstance.

REGDB_E_CLASSNOTREG

The specified component is not registered as a COM component. This error code can be returned by IObjectContext::CreateInstance or ITransactionContext::CreateInstance.

DISP_E_ARRAYISLOCKED

One or more of the arguments passed in contains an array that is locked. This error code can be returned by the ISharedProperty::put_Value method.

DISP_E_BADVARTYPE

One or more of the arguments passed in isn't a valid VARIANT type. This error code can be returned by the ISharedProperty::put_Value method.

On This Page

MTS Supported Variant Types

MTS Supported Variant Types

The following Automation types are supported by Microsoft Transaction Server.

VT_BOOL

VT_LPSTR

VT_BSTR

VT_LPWSTR

VT_CARRAY

VT_NULL

VT_CLSID

VT_PTR

VT_CY

VT_R4

VT_DATE

VT_R8

VT_DECIMAL

VT_SAFEARRAY

VT_DISPATCH

VT_UINT

VT_EMPTY

VT_UI1

VT_ERROR

VT_UI2

VT_HRESULT

VT_UI4

VT_INT

VT_UI8

VT_I1

VT_UNKNOWN

VT_I2

VT_USERDEFINED

VT_I4

VT_VARIANT

VT_I8

VT_VOID

The following types are not supported and will cause the server process to terminate with an error.

VT_FILETIME

VT_BLOB

VT_STREAM

VT_STORAGE

VT_STREAMED_OBJECT

VT_STORED_OBJECT

VT_BLOB_OBJECT

VT_CF