Answer the question
In order to leave comments, you need to log in
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
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.
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.
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 questionAsk a Question
731 491 924 answers to any question