473,320 Members | 2,124 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,320 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 2477
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: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.