G
Guest
Hi,
An interface I have returns System.EnterpriseServices.ITransaction and works
ok from .NET, however when trying to export it to COM, I get this error
message:
--------------
Type library exporter warning processing
'SessionMgrLibNET.ISessionManagerNET.GetDTCTransaction(#0),
SessionMgrLibNET'. Warning: Type library exporter could not find the type
library for System.EnterpriseServices.ITransaction. IUnknown was substituted
for the interface.
------------
I tried to adjust the interface by writing:
------------
public interface ISessionManagerNET
{
[return: MarshalAs(UnmanagedType.Interface)] ITransaction GetDTCTransaction(
SessionManager.SessionDBConnectionType dbType );
}
------------
to no avail.
ITransaction is a public interface in the System.EnterpriseServices
namespace and I have even found its GUID. Why can't the type library marshal
it while it is able to marshal so many others?
An interface I have returns System.EnterpriseServices.ITransaction and works
ok from .NET, however when trying to export it to COM, I get this error
message:
--------------
Type library exporter warning processing
'SessionMgrLibNET.ISessionManagerNET.GetDTCTransaction(#0),
SessionMgrLibNET'. Warning: Type library exporter could not find the type
library for System.EnterpriseServices.ITransaction. IUnknown was substituted
for the interface.
------------
I tried to adjust the interface by writing:
------------
public interface ISessionManagerNET
{
[return: MarshalAs(UnmanagedType.Interface)] ITransaction GetDTCTransaction(
SessionManager.SessionDBConnectionType dbType );
}
------------
to no avail.
ITransaction is a public interface in the System.EnterpriseServices
namespace and I have even found its GUID. Why can't the type library marshal
it while it is able to marshal so many others?