Hi all i am using a COM component for communicating with a Biofinger device. The com component is provided by the device provider and i am using that in my C# code through interope. I added reference of the com component in my application and it created a interop dll for me. now the problems there is a function in the com dll which returns an object of a particular class say TransData. That that object contains and array of another class objects say Trans. Here is my problem. When i call the function it throws exception as
System.TypeLoadException: Cannot marshal field 'Trans' of type 'BFSDK660.TransData': There is no marshaling support for this type.
at System.StubHelpers.ValueClassMarshaler.ConvertToManaged(IntPtr dst, IntPtr src, IntPtr pMT)
How can i resolve this. I am using .net version 4.