473,320 Members | 1,831 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.

what is the meaning of "PublicKeyToken=null is not marked as serializable." ?

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 type <Appname>.<structurename> in Assembly <Appname>,
Version=1.0.2162.36249, Culture=neutral, PublicKeyToken=null is not
marked as serializable."

What is the meaning of the message and how can i solve this issue ?

Regards,
Prakash.

Dec 2 '05 #1
2 36532
Prakash,

Basically, it means that the type you are trying to serialize does not
have the Serializable attribute attached to it.

Make sure all the fields are serializable types, and then attach the
Serializable attribute to your type, and you should be good to go.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Prakash" <p.************@gmail.com> wrote in message
news:11*********************@g49g2000cwa.googlegro ups.com...
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 type <Appname>.<structurename> in Assembly <Appname>,
Version=1.0.2162.36249, Culture=neutral, PublicKeyToken=null is not
marked as serializable."

What is the meaning of the message and how can i solve this issue ?

Regards,
Prakash.

Dec 2 '05 #2
Thanks Nicholas Paldino.. i solved my issue by putting the serializable
attribute in fornt of the class name.
Then in your signature you have put like [.net/c# MVP]... shall i know
how to get MVP ?

Regards,
Prakash.

Dec 3 '05 #3

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

Similar topics

0
by: David Elliott | last post by:
I have a 3rd Party DLL that is a Win32 NOT .NET Assembly that is misbehaving. I am trying to isolate it in its own AppDomain. I got to load but can not create an instance. I receive the following...
0
by: David Mediavilla | last post by:
I am trying to check a SOAP signature with WSE 1.0 SP1, but with a certain transform I only get an "Unknown tranform" exception. The SOAP signature is like this: <ds:Signature>...
3
by: james | last post by:
I am getting this and I have no idea what it means. All I did was install VS.Net 2003 and re-load my 2002 version project and re-compile Thanks, JIM Signature of the body and declaration...
0
by: Chris Morse | last post by:
Hi, I am creating a solution with two projects. Basically, they share a few common class files and forms. I finished one project, and it compiles and runs fine. I just finished bringing in...
5
by: Lloyd Dupont | last post by:
Hi All! I have this application of mine which works well. It even used to work on Vista. (I work on XP most of the time). There are some ManagedC++ assemblies in the project. Now when I try...
4
by: freeflytim | last post by:
I'm trying to implement a custom MembershipProvider (and RoleProvider) together with a custom MembershipUser class in C#, Asp.Net 2.0, MS Visual Studio 2005. Everything has worked fine so far,...
1
by: Curious | last post by:
Hi, I've added a class, AddExternalEIFFileSections, to a project, 'BusinessRules', then rebuilt the project and copied the BusinessRules.dll to the folder containing all of the executables....
0
by: Richard Lewis Haggard | last post by:
What happens when PublicKeyToken is null in the App,config but the assembly being addressed has one? Is this an error or does it mean that the PublicKeyToken in the assembly is ignored? For...
1
by: KevinMurphyRJLG | last post by:
I'm trying to migrate a large solution (20 or so projects) from .NET 1.1 to .NET 2.0. I've taken care of all the compile errors, but now I'm getting an exception shortly after I start up the...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
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....

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.