473,408 Members | 2,813 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,408 software developers and data experts.

Weird Serialization Problem

Ot
I have two different solutions that use xml serialization to create xml
from a given class.

The class is defined identically in both solutions. I copied the code for
both the class and the code that does the serialization from the first
solution to the second.

The first solution works just fine.

The second solution gets a weird error.

\\\
Dim mySerializer1 As XmlSerializer = New XmlSerializer(GetType(SpellList))

///

the above fails with a System.IO.FileNotFoundException occurred in
mscorlib.dll

Additional information: File or assembly name d5rqpgmn.dll, or one of its
dependencies, was not found.

The weird thing is that when I run it a second time, the name of the
missing dll changes to a different string of random characters. It doesn't
seem to repeat.

Any clues anyone?
Nov 12 '05 #1
1 1376
Ot
Never Mind -- I found the difference between the two classes.

I had attempted to make the class more robust in my second solution and
inherited System.Collection and implemented Ilist. This apparently was the
problem. I am not sure why, but getting rid of the inheritance and
implements cleared things up.

"Ot" <ur***@tds.invalid (use net)> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
I have two different solutions that use xml serialization to create xml
from a given class.

The class is defined identically in both solutions. I copied the code for both the class and the code that does the serialization from the first
solution to the second.

The first solution works just fine.

The second solution gets a weird error.

\\\
Dim mySerializer1 As XmlSerializer = New XmlSerializer(GetType(SpellList))
///

the above fails with a System.IO.FileNotFoundException occurred in
mscorlib.dll

Additional information: File or assembly name d5rqpgmn.dll, or one of its
dependencies, was not found.

The weird thing is that when I run it a second time, the name of the
missing dll changes to a different string of random characters. It doesn't seem to repeat.

Any clues anyone?

Nov 12 '05 #2

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

Similar topics

4
by: David K | last post by:
we are having a problem when trying to serilalize and deserialize DataTable When replacing the container to be ListArray or HashTable everything works fine The code is very straight forward (...
37
by: Ben | last post by:
Hi, there. Recently I was working on a problem where we want to save generic closures in a data structure (a vector). The closure should work for any data type and any method with pre-defined...
1
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...
2
by: Scott Reynolds | last post by:
I am having a problem exposing a class inherited from the collection base class as a webservice. If I expose the collection on a web page all works well and I am very happy. However when I try and...
2
by: ofer | last post by:
Hi, I am working with the beta version of the new .net framework (Whidbey) and I encountered a problem with serialization that did'nt exist in the .net 2003 the situation is like this : I have...
0
by: umhlali | last post by:
I get the following exception when my VB.NET app calls a Java web service that returns an array of objects. The same call works for a single object though. So looks like there is no problem...
2
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...
4
by: mijalko | last post by:
Hi, I have inherited my class from System.Drawing.Printing.PrintDocument and I wish to serialize this object using XmlSerializer. And I get exception "There was an error reflecting type ...". If I...
2
by: mkvenkit.vc | last post by:
Hello, I hope this is the right place to post a question on Boost. If not, please let me know where I can post this message and I will do so. I am having a strange problem with std::string as...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
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...
0
agi2029
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,...
0
isladogs
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...

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.