Showing results for 
Search instead for 
Did you mean: 

Who Me Too'd this topic

I am getting invalid definition for message field of type: Cilent_id_tag


I am trying to send a OPEN_REQ and I am getting the following error. Not sure what I am missing. I have been breaking my head for weeks. Any help is much appreciated.



"\u0001\0\0\0\0\0\0\u0003\a? readMsg: Handled InvalidObjectException: Invalid definition for message of type: OPEN_REQ; nested exception is: invalid definition for message field of type: CLIENT_ID_TAG; nested exception is: length less \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"



I am sending the following client tag:

byte[] clidtag = BitConverter.GetBytes(Covert.ToUInt16(1));
byte[] clidfieldlength = BitConverter.GetBytes(Convert.ToUInt16(ClientIdData.Length));
byte[] cliddata = ASCIIEncoding.ASCII.GetBytes(FloatingFields.ClientIdData);

where ClientIdData is

string ClientIdData = string.Empty;

ClientIdData = "admin"+char.MinValue;

Who Me Too'd this topic