473,390 Members | 1,189 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,390 software developers and data experts.

instantiation of xmlserializer gives me error in [randomname].dll

Below are my classes generated using XSD.EXE from XML/XSLT
When I do

XmlSerializer xmls=new XmlSerializer(typeof(events[]));

I get

An unhandled exception of type 'System.IO.FileNotFoundException' occurred in
mscorlib.dll

Additional information: File or assembly name d4xnc6_9.dll, or one of its
dependencies, was not found.
(The DLL name is random), the class' are below.
Gary

[System.Xml.Serialization.XmlTypeAttribute(Namespac e="http://mysite.com/even
tImportSchema")]

[System.Xml.Serialization.XmlRootAttribute(Namespac e="http://mysite.com/even
tImportSchema", IsNullable=false)]

public class events {


[System.Xml.Serialization.XmlElementAttribute("even t")]

public eventsEvent[] Items;

}

[System.Xml.Serialization.XmlTypeAttribute(Namespac e="http://mysite.com/even
tImportSchema")]

public class eventsEvent {


public string date;


public string title;


public string venue;


[System.Xml.Serialization.XmlElementAttribute("even tType", IsNullable=true)]

public eventsEventEventType[] eventType;


[System.Xml.Serialization.XmlElementAttribute("orgA bout", IsNullable=true)]

public eventsEventOrgAbout[] orgAbout;


[System.Xml.Serialization.XmlArrayItemAttribute("me dia",
typeof(eventsEventMediasMedia), IsNullable=false)]

public eventsEventMediasMedia[][] medias;

}

[System.Xml.Serialization.XmlTypeAttribute(Namespac e="http://mysite.com/even
tImportSchema")]

public class eventsEventEventType {


[System.Xml.Serialization.XmlAttributeAttribute()]

public string ID;


[System.Xml.Serialization.XmlTextAttribute()]

public string Value;

}

[System.Xml.Serialization.XmlTypeAttribute(Namespac e="http://mysite.com/even
tImportSchema")]

public class eventsEventMediasMediaType {


[System.Xml.Serialization.XmlAttributeAttribute()]

public string ID;


[System.Xml.Serialization.XmlTextAttribute()]

public string Value;

}

[System.Xml.Serialization.XmlTypeAttribute(Namespac e="http://mysite.com/even
tImportSchema")]

public class eventsEventMediasMedia {


public string url;


public string access;


public string password;


public string content;


[System.Xml.Serialization.XmlElementAttribute("type ", IsNullable=true)]

public eventsEventMediasMediaType[] type;

}

[System.Xml.Serialization.XmlTypeAttribute(Namespac e="http://mysite.com/even
tImportSchema")]

public class eventsEventOrgAbout {


[System.Xml.Serialization.XmlAttributeAttribute()]

public string ID;


[System.Xml.Serialization.XmlTextAttribute()]

public string Value;

}

Nov 12 '05 #1
2 2484
Try Chris Sells tool at:
http://sellsbrothers.com/tools/#XmlS...zerPreCompiler
"Gary Brewer" <ga**@nospam.com> wrote in message
news:%2******************@TK2MSFTNGP09.phx.gbl...
Below are my classes generated using XSD.EXE from XML/XSLT
When I do

XmlSerializer xmls=new XmlSerializer(typeof(events[]));

I get

An unhandled exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll

Additional information: File or assembly name d4xnc6_9.dll, or one of its
dependencies, was not found.
(The DLL name is random), the class' are below.
Gary

[System.Xml.Serialization.XmlTypeAttribute(Namespac e="http://mysite.com/even tImportSchema")]

[System.Xml.Serialization.XmlRootAttribute(Namespac e="http://mysite.com/even tImportSchema", IsNullable=false)]

public class events {


[System.Xml.Serialization.XmlElementAttribute("even t")]

public eventsEvent[] Items;

}

[System.Xml.Serialization.XmlTypeAttribute(Namespac e="http://mysite.com/even tImportSchema")]

public class eventsEvent {


public string date;


public string title;


public string venue;


[System.Xml.Serialization.XmlElementAttribute("even tType", IsNullable=true)]
public eventsEventEventType[] eventType;


[System.Xml.Serialization.XmlElementAttribute("orgA bout", IsNullable=true)]
public eventsEventOrgAbout[] orgAbout;


[System.Xml.Serialization.XmlArrayItemAttribute("me dia",
typeof(eventsEventMediasMedia), IsNullable=false)]

public eventsEventMediasMedia[][] medias;

}

[System.Xml.Serialization.XmlTypeAttribute(Namespac e="http://mysite.com/even tImportSchema")]

public class eventsEventEventType {


[System.Xml.Serialization.XmlAttributeAttribute()]

public string ID;


[System.Xml.Serialization.XmlTextAttribute()]

public string Value;

}

[System.Xml.Serialization.XmlTypeAttribute(Namespac e="http://mysite.com/even tImportSchema")]

public class eventsEventMediasMediaType {


[System.Xml.Serialization.XmlAttributeAttribute()]

public string ID;


[System.Xml.Serialization.XmlTextAttribute()]

public string Value;

}

[System.Xml.Serialization.XmlTypeAttribute(Namespac e="http://mysite.com/even tImportSchema")]

public class eventsEventMediasMedia {


public string url;


public string access;


public string password;


public string content;


[System.Xml.Serialization.XmlElementAttribute("type ", IsNullable=true)]

public eventsEventMediasMediaType[] type;

}

[System.Xml.Serialization.XmlTypeAttribute(Namespac e="http://mysite.com/even tImportSchema")]

public class eventsEventOrgAbout {


[System.Xml.Serialization.XmlAttributeAttribute()]

public string ID;


[System.Xml.Serialization.XmlTextAttribute()]

public string Value;

}

Nov 12 '05 #2
Thanks, thats a brilliant tool and does the job perfect (well it tells me
whats wrong).

XSD.EXE converts XML into XSD files into class files, which is a great
feature but I would have thought that using this tool and using
serialisation would go hand in hand.

The fact that I cannot deserialise something into my generated class is
slightly annoying (an the error message in VS.NET is even more crazy!)

Will this be fixed in a new version or is there a reason for this?
Thanks,

Gary Brewer

"Daniel Cazzulino" <kz***@INVALIDaspnet2.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Try Chris Sells tool at:
http://sellsbrothers.com/tools/#XmlS...zerPreCompiler
"Gary Brewer" <ga**@nospam.com> wrote in message
news:%2******************@TK2MSFTNGP09.phx.gbl...
Below are my classes generated using XSD.EXE from XML/XSLT
When I do

XmlSerializer xmls=new XmlSerializer(typeof(events[]));

I get

An unhandled exception of type 'System.IO.FileNotFoundException' occurred
in
mscorlib.dll

Additional information: File or assembly name d4xnc6_9.dll, or one of

its dependencies, was not found.
(The DLL name is random), the class' are below.
Gary


[System.Xml.Serialization.XmlTypeAttribute(Namespac e="http://mysite.com/even
tImportSchema")]

[System.Xml.Serialization.XmlRootAttribute(Namespac e="http://mysite.com/even
tImportSchema", IsNullable=false)]

public class events {


[System.Xml.Serialization.XmlElementAttribute("even t")]

public eventsEvent[] Items;

}

[System.Xml.Serialization.XmlTypeAttribute(Namespac e="http://mysite.com/even
tImportSchema")]

public class eventsEvent {


public string date;


public string title;


public string venue;


[System.Xml.Serialization.XmlElementAttribute("even tType",

IsNullable=true)]

public eventsEventEventType[] eventType;


[System.Xml.Serialization.XmlElementAttribute("orgA bout",

IsNullable=true)]

public eventsEventOrgAbout[] orgAbout;


[System.Xml.Serialization.XmlArrayItemAttribute("me dia",
typeof(eventsEventMediasMedia), IsNullable=false)]

public eventsEventMediasMedia[][] medias;

}

[System.Xml.Serialization.XmlTypeAttribute(Namespac e="http://mysite.com/even
tImportSchema")]

public class eventsEventEventType {


[System.Xml.Serialization.XmlAttributeAttribute()]

public string ID;


[System.Xml.Serialization.XmlTextAttribute()]

public string Value;

}

[System.Xml.Serialization.XmlTypeAttribute(Namespac e="http://mysite.com/even
tImportSchema")]

public class eventsEventMediasMediaType {


[System.Xml.Serialization.XmlAttributeAttribute()]

public string ID;


[System.Xml.Serialization.XmlTextAttribute()]

public string Value;

}

[System.Xml.Serialization.XmlTypeAttribute(Namespac e="http://mysite.com/even
tImportSchema")]

public class eventsEventMediasMedia {


public string url;


public string access;


public string password;


public string content;


[System.Xml.Serialization.XmlElementAttribute("type ", IsNullable=true)]

public eventsEventMediasMediaType[] type;

}

[System.Xml.Serialization.XmlTypeAttribute(Namespac e="http://mysite.com/even
tImportSchema")]

public class eventsEventOrgAbout {


[System.Xml.Serialization.XmlAttributeAttribute()]

public string ID;


[System.Xml.Serialization.XmlTextAttribute()]

public string Value;

}


Nov 12 '05 #3

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

Similar topics

3
by: Integer Software | last post by:
Hi. I have a really simple set of classes that writes 2 pathnames to a xml file. I can write the default ok. Then if I change 1 pathname to a shorter one, then rewrite the xml file, the remains...
5
by: Keith Bannister | last post by:
I'm new to .net so here goes. I'm tying to deserialize a class that is associated with an XML schema. I created the C# class with xsd.exe as below: xsd.exe /c /n:somenamespace...
11
by: Rangi Keen | last post by:
I am instantiating an XmlSerializer using the XmlSerializer(Type) constructor. This works most of the time, but sometimes I get a timeout during the process. I'm using the same type in all cases...
4
by: Steve Long | last post by:
Hello, I hope this is the right group to post this to. I'm trying to serialize a class I've written and I'd like to be able to serialze to both binary and xml formats. Binary serialization is...
0
by: Ian Armitage | last post by:
Hi, I am having problems using the XmlSerializer from within a signed assembly. I have narrowed down the problem to a compilation error (CS0647) occuring when .NET tries to compile code...
0
by: antsays | last post by:
I am trying to serialize a collection to disk using the code provided. This works just fine but when I try do copy and past the xml file to another location or sometimes even just click on the...
1
by: Phil Galey | last post by:
I'm using XMLSerializer to serialize a hierarchy of class-based objects to XML. So far, this is working successfully by employing arrays to handle the multiplicity of child objects. However, I'm...
0
by: awood45 | last post by:
I ran into a bizarre crashing of one of my programs earlier today, and noticed my IE 6 was messed up (maybe this is important, maybe it isn't, but it coincided with this not working). After fixing...
3
by: erictham115 | last post by:
Error C2555 c:\C++ projects\stat1\stdmatrix_adapt.h(41) : error C2555: 'std_tools::Matrix_adapter<T>::at': overriding virtual function return type differs and is not covariant from...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
Oralloy
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,...
0
jinu1996
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...

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.