send message in Chat sample

Hi everyone,

I want to try working with message. I code a program to receive message with messageId = Chat.Line. When I run smart client, run chat plugin. I type “alo”. My program run into registered function but parameter message with “Data” fied == null. I am expecting to receive “alo”. I check log file in Event Server, I find out error. ExternalMessage.Deserialize unable to deserialize class:

can anyone help me to solve this problem?

Thank in advance

I am not sure what this could be, never heard of something similar.

Are you experiencing this with the Chat sample unmodified?

What is the test server you use?

I don’t change Chat sample. I am using xProtect Corporate newest version.

Hi Bo,

In program to receive message I define class:

[Serializable]

public class ChatData

{

public EndPointIdentityData Source;

public String Entry;

}

I don’t understand why Event Server notify error ExternalMessage.Deserialize unable to deserialize.

in addition information, I run Xprotect enterprise with two program. the one program send message, the other one receive message. it is OK. I wonder if Corporate version is different Enterprise version?

Thank you

Is the event server correctly installed and configured? Can you see alarms and maps in the Smart Client? Can you configure alarm definitions in the Management Client?

If these work well we will have to dig deeper..

Hi Bo, everything is OK. I can see alarms in Smart Client and configure alarm definition in the Management Client.

Hi Bo,

I create a new project. It runs normally.

Hi Loc,

I find this interesting. So you have had to create a new project (based on the template?) and then used the Chat sample code again, but now with success? Is this what you did? (Please describe what you did.)

Do you have any idea what is different in the new project and the Chat sample, what makes the difference?

If you have any ideas or theories about this please share..

Hi Bo,

I created two project from StatusViewer sample. one project send data, the other one receive data. Everything is correct. If I try rename namespace of one project to “StatusViewer1”, they cann’t communicate. I try a new project, use MIPLibrary to send data. I meet the same problem. I received message.Data == null.

I wonder if I have to need to configue specially to communication message?

can you instruct me?

Thank you very much!