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

VB.NET and Class XmlSerialization Errors

Hello.

One more issue.

I'm rewriting code to use XmlSerialization .NET Class because I need it.

In my project I created some classes using different namespaces.

An example:
Namespace xxx
Namespace yyy
[class]
end namespace yyy
Namespace zzz
[class]
end namespace zzz
[etc...]
end namespace xxx

Following examples I then added:
<Serializable()>_ Public Class aaa
Public [...] as string
<XmlAttribute()>_ Public....
etc...

then I added:

Expand|Select|Wrap|Line Numbers
  1. Dim  subst As New System.Xml.Serialization.XmlSerializer(GetType(xxx.zzz.aaa))
  2.             Dim fs As New FileStream("subst.xml", FileMode.Create)
  3.             subst.Serialize(fs, aWord)
  4.             fs.Close()
  5.  
aWord is new object of the class.

It returns a BindingFailure was detected.
Impossible to load assembly visualized name "myproject.XmlSerializers" in association contest 'LoadFrom' application domain ID1.
Error Cause: System.IO.FileNotFoundException: impossible to load file or assembly 'myproject.XmlSerializers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one dependency.
Well I set Imports "System.Xml, System.IO, System.Xml.Serialization" and all myproject namespaces.

How is that?
Thanks in advance,
Luca
Sep 24 '07 #1
2 1397
I would like to specify: I know what the error is (it would automatically generate an assembly with xml serialization code for my specific classes before they are being used).

But I didn't find more info about it.

Luca
Sep 24 '07 #2
Oh well it doesn't matter.

I manually created myproject.XmlSerializers.dll using sgen so the debug issue is solved.

Luca
Sep 24 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

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...
1
by: Robert W. | last post by:
I'm building my first major C# WinForms application. I've successfully completed the forms and the data model and they work great. Now I'm moving on to saving/opening the data model to/from the...
0
by: A programmer desperatly needing help! | last post by:
I use the xmlserialization on asp.net pages and on previous machines it never gave a problem. But now i somethings get a: Timed out waiting for a program to execute. The command being executed was...
7
by: Ben Amada | last post by:
I've created a class that I need to store in ViewState. However when I try to store it in ViewState, I get the following error: "The type 'solution.pe2' must be marked as Serializable or have a...
12
by: Dave A | last post by:
I have a class that does not have a default constructor. The nature of the class inherently excludes it from having one and to put one in will blatantly misrepresent the object that it is modelling....
4
by: pfrisbie | last post by:
I am developing a Web Services interface with C# and our partner is using Java (Axis 1.1). They require me to include xsi:types in the SOAP Messages I send them. For example: <Partner...
2
by: Tina | last post by:
Is there any attribute I can use to serialize the class 'Data' below such that I get: <Data> <MyOwnBaseClass> <A>some_values</A> </MyOwnBaseClass> </Data> from the serializable class...
1
by: teddysnips | last post by:
<NEWBIE ALERT> Owing to staff lossage, I've been forced to take over maintenance and upgrade of a completely undocumented web service (VS 2003, VB.NET). I've been asked to amend a Public...
1
by: Frank | last post by:
Hi, Let's say I have a file named myFile.xml Within that file I have blocks of data which I'd like to add at different times during the day. e.g. <LogEntry>
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?
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
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...
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
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,...

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.