Serializable attribute not working

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi All
Custom object ABC is declared in C# as [Serializable()] public class ABC{ int One;
This object is passed to a remote object as
ABC objABC = new ABC()
objABC .One = 1
Remote.CheckMe(objABC)
Also Remote object is derived from Marsha... and hosted in IIS. Remote object is a class library dll stored in bin folder
Throws error ABC is not marked as serializable. Am i missing something????
Please help. Thanx in advance
 
Ive never put parenthesis on my serializable attributes before
have you tried just
[Serializable

Also ensure that the class doesn't contain any other custom objects that are not marked as serializable.
 
Back
Top