remoting deserilization

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
 
P

Patrik Löwendahl [C# MVP]

Do you have a reference in the client application to the dll where the class
lives?
 
T

Tom

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top