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.
 

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

Back
Top