I
I
Ingvar Von Bjork2016-01-11 17:06:01
C++ / C#
Ingvar Von Bjork, 2016-01-11 17:06:01

How to reference an assembly?

There are 2 applications: client and server. The client serializes the information and sends it to the server, but the server, when trying to deserialize, gives an error: "Failed to find the assembly ...". I would like not to specify any assemblies in the project, if possible, but also to fix the problem. What could be wrong?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
I
Ingvar Von Björk, 2016-01-12
@DeboshiR

scored. Implemented both the client and the server in one application. I had to mess around, but the final version, in theory, is how it should be.

D
Dmitry Kovalsky, 2016-01-11
@dmitryKovalskiy

You have some purely architectural problem. You have a client and you have a server. Do they share some common class? Then take this class and others like it to the third Util project, and put links to util in the source projects. Don't want to do that? I can offer you to load the assembly through reflection, but for such an approach, I would chop off my hands to the elbow.

V
Vitaly Pukhov, 2016-01-12
@Neuroware

If the data is more or less fixed in size, you can use the structure , otherwise, use the XmlSerializer , because. in such a case, only the data structure will matter. XML can also be compressed so that it does not take up much space.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question