Hi Folks,
While deserialization in C#, i came across this error:
"No assembly ID for object type <MyClassName> ".
The error is very abstract. Pls find below the stack trace.
StackTrace
at
System.Runtime. Serialization.F ormatters.Binar y.__BinaryParse r.ReadObjectWit hMapTyped(Binar yObjectWithMapT yped
record)\r\n
at
System.Runtime. Serialization.F ormatters.Binar y.__BinaryParse r.ReadObjectWit hMapTyped(Binar yHeaderEnum
binaryHeaderEnu m)r\n
at
System.Runtime. Serialization.F ormatters.Binar y.__BinaryParse r.Run()\r\n
at
System.Runtime. Serialization.F ormatters.Binar y.ObjectReader. Deserialize(Hea derHandler
handler, __BinaryParser serParser, Boolean fCheck, IMethodCallMess age
methodCallMessa ge)\r\n
at
System.Runtime. Serialization.F ormatters.Binar y.BinaryFormatt er.Deserialize( Stream
serializationSt ream, HeaderHandler handler, Boolean fCheck,
IMethodCallMess age methodCallMessa ge)\r\n
at
System.Runtime. Serialization.F ormatters.Binar y.BinaryFormatt er.Deserialize( Stream
serializationSt ream, HeaderHandler handler)\r\n
at
System.Runtime. Serialization.F ormatters.Binar y.BinaryFormatt er.Deserialize( Stream
serializationSt ream)\r\n
at
MyApp.MyMethod( String fileName, Boolean& versioned)
TIA.
Sek 1 3089
Sek,
I don't know that this is an error. If you could post your code.
Also, do you have the assembly with the type you are trying to
deserialize loaded in the app domain that is deserializing the instance?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m
"Sek" <se****@gmail.c om> wrote in message
news:11******** **************@ g49g2000cwa.goo glegroups.com.. . Hi Folks,
While deserialization in C#, i came across this error:
"No assembly ID for object type <MyClassName> ".
The error is very abstract. Pls find below the stack trace.
StackTrace at System.Runtime. Serialization.F ormatters.Binar y.__BinaryParse r.ReadObjectWit hMapTyped(Binar yObjectWithMapT yped record)\r\n at System.Runtime. Serialization.F ormatters.Binar y.__BinaryParse r.ReadObjectWit hMapTyped(Binar yHeaderEnum binaryHeaderEnu m)r\n at System.Runtime. Serialization.F ormatters.Binar y.__BinaryParse r.Run()\r\n at System.Runtime. Serialization.F ormatters.Binar y.ObjectReader. Deserialize(Hea derHandler handler, __BinaryParser serParser, Boolean fCheck, IMethodCallMess age methodCallMessa ge)\r\n at System.Runtime. Serialization.F ormatters.Binar y.BinaryFormatt er.Deserialize( Stream serializationSt ream, HeaderHandler handler, Boolean fCheck, IMethodCallMess age methodCallMessa ge)\r\n at System.Runtime. Serialization.F ormatters.Binar y.BinaryFormatt er.Deserialize( Stream serializationSt ream, HeaderHandler handler)\r\n at System.Runtime. Serialization.F ormatters.Binar y.BinaryFormatt er.Deserialize( Stream serializationSt ream)\r\n at MyApp.MyMethod( String fileName, Boolean& versioned)
TIA. Sek This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: ktn |
last post by:
Hi all,
I'm a .NET beginner and I've got a problem on a program where I try to do an
XML serialization.
I get the following error :
"An unmanaged exception of type 'System.IO.FileNotFoundException' occured in
mscorlib.dll
Additonal information : the file or asssembly named n9gu4-bo.dll or one of
its dependencies cannot be found"
|
by: andrewcw |
last post by:
There is an error in XML document (1, 2).
I used XML spy to create the XML and XSD. When I asked to
have the XML validated it said it was OK.
I used the .net SDK to generate the class. I have done
this before but this time I have no idea why I am getting
the error. Any ideas ?? THANKS !
<qcsttatus>
<manual sourcerootfolder=""...
|
by: Alexander |
last post by:
When i store rule on PC with .NET.SP1 i cant restore them from PC without
SP1.
An i get this Error:
System.Runtime.Serialization.SerializationException:
Possible Version mismatch. Type System.Collections.Comparer has 1 members,
number of members deserialized is 0.
at...
|
by: Maximus |
last post by:
Hi Everyone,
I was using Inprocess session objects, but incase of aspnet process
crashes the session objects were lost as a result I decided to shift to
out of porocess session objects. For this i had to serialize the
objects. While doing that I made the classes serializable whose objects
I store in sessions. However, when I run the...
|
by: CJ Taylor |
last post by:
hey everyone, thought I would ask this here because the web service groups
seems pretty light on conversation. I'm buliding a web service, but keep
getting this error. I understand the error, read a work around, but don't
know if its the best approach.
Here is a link to the error... at least a description.
...
| |
by: Paulo Morgado [MVP] |
last post by:
Hi all
..NET Framework 1.1
I have created several types that are serailized to XML as strings. Someting
like this:
public struct MyInt32 : IXmlSerializable
{
int value;
|
by: Norman Chong |
last post by:
Hiddeldi ho,
I want to save an object so that I can use its content after I restart
my program. I tried to solve this with serialization because someone
told me that this is the correct way for this.
So I wrote the following code to serialize\deserialize the object, but
now I have the problem that the object has a generic list and when I'm...
|
by: =?Utf-8?B?UGlnZ3k=?= |
last post by:
Hi to all,
I am getting this System.OutOfMemoryException calling the
Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize(<stream>,<Obj>) method.
The type of <streamis IO.MemoryStream
=====Exception:
System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException'
was
thrown.
|
by: =?Utf-8?B?Y211cmFsaQ==?= |
last post by:
I am serializing/deserializing a class (Class1) using the XmlSerializer
object in the System.Xml.Serialization namespace in .Net 2.0. Class1 has
some strings and ints and two lists of other simple serializable classes
(Class2 and Class3)
Class1, Class2 and Class3 are defined in an assembly (Assembly1) which is
loaded by another assembly...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...
| |