Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't working in Windows 10, when server and client are in separate EXEs #25

Open
tomAsh00 opened this issue May 28, 2019 · 3 comments

Comments

@tomAsh00
Copy link

Hello,
When the server and client are in the same executable file, everything works ok.
The problem occours when server and client are in separate EXEs. Client will connect to the server, but messanging doesn't work.
Please help!

@MahmutYaman
Copy link

MahmutYaman commented Jun 21, 2019

I had the same issue. Its becouse of serialization. You should use [Serializable] attribute for your classes.

@geovanimartinez
Copy link

I had the same issue. Its because of serialization. You should use [Serializable] attribute for your classes.

I'm having the same issue, could you elaborate more on your reply? I have the server on a different 64bit app and the client on a 32bit app and experiencing the same issue where nothing I tried so far works.

@laeeq
Copy link

laeeq commented Mar 29, 2020

Hi,
I am also having this problem, when I converted the Server into a Windows Service C# project, and client into a separate console app.

I mistakenly redefined this class separately into service as well as console client app:

[Serializable]
public class MyMessage
{
public int Id;
public string Text;

    public override string ToString()
    {
        return string.Format("\"{0}\" (message ID = {1})", Text, Id);
    }
}

The issue resolved, when I removed this MyMesasge implementation from Client console project, and referenced it in client app from service exe.
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants