Hello all.
The following code...
Dim objXMLSerialize r As XmlSerializer
objXMLSerialize r = New XmlSerializer(G etType(Settings ))
....generates the following exception in my application...
An unhandled exception of type 'System.IO.File NotFoundExcepti on'
occurred in mscorlib.dll
Additional information: File or assembly name twcpkrac.dll, or one of
its dependencies, was not found.
The DLL name is always a 'random' string of characters.
Any ideas why?
--
ROT13 my email address to reply directly: qn*****@gpd.arg 3 1567
I always use something similar to this when creating a serializer...
objXMLSerialize r = New XmlSerializer(S ettings.GetType ())
I don't know if that would make a difference, but it is worth a shot.
HTH,
Doug Perkes
"David Pendleton" <qn*****@gpd.ar g> wrote in message
news:uO******** *****@TK2MSFTNG P09.phx.gbl... Hello all.
The following code...
Dim objXMLSerialize r As XmlSerializer
objXMLSerialize r = New XmlSerializer(G etType(Settings ))
...generates the following exception in my application...
An unhandled exception of type 'System.IO.File NotFoundExcepti on' occurred in mscorlib.dll Additional information: File or assembly name twcpkrac.dll, or one of its dependencies, was not found.
The DLL name is always a 'random' string of characters.
Any ideas why?
-- ROT13 my email address to reply directly: qn*****@gpd.arg
Thanks, but that didn't work either.
--
ROT13 my email address to reply: qn*****@gpd.arg
"Doug Perkes" <do********@msn .com> wrote in message
news:Oz******** ******@TK2MSFTN GP10.phx.gbl... I always use something similar to this when creating a serializer...
objXMLSerialize r = New XmlSerializer(S ettings.GetType ())
I don't know if that would make a difference, but it is worth a shot.
HTH,
Doug Perkes
"David Pendleton" <qn*****@gpd.ar g> wrote in message news:uO******** *****@TK2MSFTNG P09.phx.gbl... Hello all.
The following code...
Dim objXMLSerialize r As XmlSerializer
objXMLSerialize r = New XmlSerializer(G etType(Settings ))
...generates the following exception in my application...
An unhandled exception of type 'System.IO.File NotFoundExcepti on' occurred in mscorlib.dll Additional information: File or assembly name twcpkrac.dll, or one
of its dependencies, was not found.
The DLL name is always a 'random' string of characters.
Any ideas why?
-- ROT13 my email address to reply directly: qn*****@gpd.arg
I found the problem, but am unsure about the details behind it.
My class, 'Settings' was declared within my Form class. Apparently, this is
a no-no as far as serialization is concerned; it worked fine once I moved it
to it's own class module.
--
ROT13 my email address to reply: qn*****@gpd.arg
"Doug Perkes" <do********@msn .com> wrote in message
news:Oz******** ******@TK2MSFTN GP10.phx.gbl... I always use something similar to this when creating a serializer...
objXMLSerialize r = New XmlSerializer(S ettings.GetType ())
I don't know if that would make a difference, but it is worth a shot.
HTH,
Doug Perkes
"David Pendleton" <qn*****@gpd.ar g> wrote in message news:uO******** *****@TK2MSFTNG P09.phx.gbl... Hello all.
The following code...
Dim objXMLSerialize r As XmlSerializer
objXMLSerialize r = New XmlSerializer(G etType(Settings ))
...generates the following exception in my application...
An unhandled exception of type 'System.IO.File NotFoundExcepti on' occurred in mscorlib.dll Additional information: File or assembly name twcpkrac.dll, or one
of its dependencies, was not found.
The DLL name is always a 'random' string of characters.
Any ideas why?
-- ROT13 my email address to reply directly: qn*****@gpd.arg
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Thomas |
last post by:
Hi,
I implemented a composite pattern which should be serializable to xml.
After spending some time in the newsgroups, i finally managed
serializing, even with utf-8 instead of utf-16, which causes ie
problems. But when deserializing the xml into the object structure,
the following exception is beeing thrown:
There is an error in XML...
|
by: Nick Flandry |
last post by:
Hi all,
When I run this code:
XmlSerializer theXS;
try
{
theXS = new XmlSerializer(typeof(TableInfo));
}
catch( System.Exception eAll )
|
by: Mark |
last post by:
Hi all,
i'm trying to serialize a class. Using the constructor of
XmlSerializer i get these (odd?) errors: "File or assembly name
goseij9w.dll, or one of its dependencies, was not found". Everytime i
run the testprogram it complains about another exotically named dll
like et_kn-hl.dll or afeaqisr.dll.
Even the example from msdn throws...
|
by: SJD |
last post by:
I've just read Christoph Schittko's article on XmlSerializer:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnxmlnet/html/trblshtxsd.asp
. . . and very informative it is too.
I, too, am getting nasty FileNotFound exceptions. I've read, and
digested the article, and I think I've found a bug -- it's difficult to
track,...
|
by: Sacha |
last post by:
I'm having trouble serializing some of my classes when using late binding.
When I don't use late binding, it works fine. MyClass inherit from an
abstract class called
AbsMyClass.
If I do the following, it works fine:
#BEGIN
public static void Write( string fileName ){
MyClass myClass = null;
XmlSerializer xmlSerializer = null;
| |
by: David Preuss |
last post by:
Hi all,
i have a problem with a class which has several subclasses embedded when
trying to deserialize it.
Serializing works just fine. The xml is as follows:
<?xml version="1.0" encoding="utf-8" ?>
<Project xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ProjectName="Test
|
by: pei_world |
last post by:
I have followed a example from a book exactly, but it seems not working at
all.
can anyone tell me what is going on?
========= Global.asax.cs ============
public static Entry LoadEntry(String filename)
{
//construct the path
|
by: Curious |
last post by:
Hi,
I am trying to use the following code to make xml serialization to a
file. The following error is being given:
"An unhandled exception of type 'System.InvalidOperationException'
occurred in system.xml.dll
Additional information: There was an error generating the XML
document."
|
by: Kapil Joshi |
last post by:
Hi,
This issue is related to System.Xml.Serialization.XmlElementArrayAttribute
class.
We are using VS.NET 2005 (RTM) Professional Edition version 8.0.50727.42
(RTM.050727-4200).
-----------------------------------------------------------------------
Consider the following XSD:...
|
by: OllieHag |
last post by:
Hi, can anyone help me out with this problem? In the code posted below, why does my count of Data objects only return 1, not 3. If I comment out the IXmlSerializable inheritance in the Data class, thereby relying on the built in Xml Serialization rather than my own implementation, I get 3 as expected.
BTW, this is a distilled example of the...
|
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: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it. ...
|
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: 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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
|
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: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |