472,351 Members | 1,446 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,351 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 2430
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...
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...
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...
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...
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...
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...
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...
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...
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...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was...
0
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. ...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...
0
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand....

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.