remoting deserilization

  • Thread starter Thread starter Tom
  • Start date Start date
T

Tom

Hi guys,

I am puzzeled.. I am writing a simple remoting app.. where there's a client,
a server and a service class which will work between client and server so i
mark this service class as Serializable.. but strangely on the client side
it complains that it does not see this class whilst complaining and giving
the errors of

An unhandled exception of type
'System.Runtime.Serialization.SerializationException' occurred in
mscorlib.dll

Additional information: Cannot find the assembly Communicate,
Version=1.0.1745.4114, Culture=neutral, PublicKeyToken=null.

_____________________

and I did mark my service class as serializable.. copy and paste just incase
you don't believe me

[Serializable]

public class Session



thanks

Tom
 
Do you have a reference in the client application to the dll where the class
lives?
 
sorry yeah I made a mistake it was referenced on the client but wasn't on
the server...

now its all good

thanks :D


Patrik Löwendahl said:
Do you have a reference in the client application to the dll where the class
lives?

--
Patrik Löwendahl [C# MVP]
www.cshrp.net - "Elegant code by witty programmers"
Tom said:
Hi guys,

I am puzzeled.. I am writing a simple remoting app.. where there's a
client,
a server and a service class which will work between client and server so
i
mark this service class as Serializable.. but strangely on the client side
it complains that it does not see this class whilst complaining and giving
the errors of

An unhandled exception of type
'System.Runtime.Serialization.SerializationException' occurred in
mscorlib.dll

Additional information: Cannot find the assembly Communicate,
Version=1.0.1745.4114, Culture=neutral, PublicKeyToken=null.

_____________________

and I did mark my service class as serializable.. copy and paste just
incase
you don't believe me

[Serializable]

public class Session



thanks

Tom
 
Back
Top