Error : Type could not be marshaled because the length of an embedded array instance does not match the declared length in the layout
<p>i am using a COM dll in my C# Project.
I have one USERINFO Structure in my COM dll which looks like :</p>

<pre><code>struct USERINFO
{
        BYTE UserID[USER_ID_SIZE];//42
        BYTE FirstName[NAME_SIZE];//66
        BYTE LastName[NAME_SIZE]; //66
        long Pin;
        BYTE TimeGroupIDList[IDLIST_SIZE];//10
        enum EUserKind   eUserKind;
        BYTE WarningEye;        
};
</code></pre>

<p>When i use this structure in my C# Application to fill this structure for User data and pass to my AddUser API it returns this Error.</p>

<p>Any help is appreciated.
Thanks.</p>
