i have a dll which i registered as COM component using regasm.exe but in .net code it always giving below error whenever the COM object is going to invoke.
The strange part is that the same code is working on another machine.
Here is the sample where error is recevied:
public TransactedInvoker() : base()
{
_tx=System.EnterpriseServices.ContextUtil.Transaction;
}
And the exception is:
An exception of type 'System.Runtime.InteropServices.COMException' occurred in System.EnterpriseServices.Wrapper.dll but was not handled in user code
Additional information: There is no MTS object context (Exception from HRESULT: 0x8004E004)
shaails
0 Points
1 Post
COM Error - There is no MTS object context
Apr 26, 2011 02:35 PM|LINK
Hi,
i have a dll which i registered as COM component using regasm.exe but in .net code it always giving below error whenever the COM object is going to invoke.
The strange part is that the same code is working on another machine.
Here is the sample where error is recevied:
public TransactedInvoker() : base()
{
_tx=System.EnterpriseServices.ContextUtil.Transaction;
}
And the exception is:
An exception of type 'System.Runtime.InteropServices.COMException' occurred in System.EnterpriseServices.Wrapper.dll but was not handled in user code
Additional information: There is no MTS object context (Exception from HRESULT: 0x8004E004)