[Mono-list] [Fwd: Re: Can someone analyze this code and tell me what happens]
Robert Jordan
robertj at gmx.net
Wed Apr 6 11:41:24 EDT 2011
On 06.04.2011 17:33, Leonel Florin Selles wrote:
> I have put the [Serializable] attribute on the class but I steel get this
>
> Details :
>
> System.IO.FileNotFoundException has been thrown
> "Could not load file or assembly 'cliente' or one of this dependencies.
> The system cannot find the file specified."
This usually means that you have 2 implementations of these
classes, one in the server and one in the client, like this:
gmcs server.cs shared.cs
gmcs client.cs shared.cs
You want to extract these classes into a shared assembly,
otherwise the types won't be treated as compatible:
gmcs /target:library shared.cs
gmcs /r:shared.dll server.cs
gmcs /r:shared.dll client.cs
Robert
More information about the Mono-list
mailing list