12-26-2019 08:42 PM
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?com.cisco.Ged188.CRACTIInvalidMessageException: 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;