473,320 Members | 2,164 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Serializable attribute not working

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

Nov 16 '05 #1
1 2488
Jax
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.
Nov 16 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: ALI-R | last post by:
I have written a class in C# and I have serilized into a file .I read somewhere that if you want a class to be serializble you must add an attribute called before the class and within the...
1
by: faktujaa | last post by:
Hi All Custom object ABC is declared in C# as 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...
5
by: Ben Terry | last post by:
I get the following compilation error: "The type or namespace name 'Serializable' could not be found (are you missing a using directive or an assembly reference?)" Can anyone tell me why the...
0
by: Poewood | last post by:
I am experimenting with saving files in binary format on the Pocket PC. When I use the attribute I get error in Compact Framework. Do i have to use the attribute to make a class serializable? ...
1
by: Frank Rizzo | last post by:
What is the performance impact of setting a attribute on a class? Is there a performance win if I remove the attribute? I am doing some perf profiling and realized that all my strongly type...
0
by: Joshua Belden | last post by:
I have a class that is marked as Serializable that implements INotifyPropertyChanged. private event PropertyChangedEventHandler _PropertyChanged; public event PropertyChangedEventHandler...
9
by: Developer | last post by:
Hi, How can one tell wsdl.exe/VS.NET web service proxy generatioon to to put on imported classes? For example, i fin your web service you use a class: class Data { }
2
by: Prakash | last post by:
Hi Friends, In my C# application, i have tried to serialize some structured data using Soapformatter. While calling the serialize funciton i got the exception message like "mscorlib....The...
1
by: Cirene | last post by:
I'm binding a datagrid to my business object. I get an error that the type 'abcshoppingcart'...is not marked as serializable. So, I added a attribute in the class. But then a blue squiggly...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.