Hi, I'm developing an XNA Game and now I'm working in a multiplayer online game. I'm a bit desperate, because it's a project for my university and I have a few days to have it ended.

The thing is that my Server has to receive and send information, so I'm using Serialization. Once the client tries to deserialize the program interrupts.

The type of error is:

SPADefense, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null

I think the problem is related with the class I'm serializing/ deserializing. The client has the same class, but as it's part of another project, I'm not sure it recognizes it as the same class.

Is there anyway I can fix it? I've been many hours searching on the internet and I haven't been able to solve it.

Thanks for everything!

Use Custom Serialization. With basic serialization, the versioning of objects may create problem.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.