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

Error generating xml document during serialization: Project speci

I'm getting the above error in 1 solution/project for the following
code but the exact same code works fine in other projects. References
are the same. I also get xml serialization error from a web services
in this solution, but the exact same calls and code work in other
soutions. I compared the underlying sln, proj, etc, files, and they
appeared to match among working and this non working solution. Anybody
have any ideas?

Dim serializer As New
System.Xml.Serialization.XmlSerializer(GetType(Lic ensing.License))
Dim oMemStream As New IO.MemoryStream
Dim oLicense As New Licensing.License

Try
With oLicense
.UserID = "Test"
.StateID = "Test"
End With

serializer.Serialize(oMemStream, oLicense) <-- errors here
MsgBox(Convert.ToBase64String(oMemStream.GetBuffer ))
Catch ex As Exception
MsgBox(ex.Message)
End Try

Other info, the code is running in Groove 3.0 w/ .Net 1.1 and
Hotfix(KB836616) and errors on both W2k and XP for the erroring project..

I also have encryption code for the license that encypts the serilized xml.
Being more complex but very similar, this code runs fine, which doesn't make
sense.

I've tried going to a Stream and String writer but receive the same error.

Thanks!
Nov 12 '05 #1
0 977

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

Similar topics

0
by: Chad | last post by:
I'm getting the above error in 1 solution/project for the following code but the exact same code works fine in other projects. References are the same. I also get xml serialization error from a web...
0
by: Benne Smith | last post by:
I get this error when i test my webservice; System.InvalidOperationException: There was an error generating the XML document. ---> System.InvalidOperationException: The type RMAWS.Symptom was...
3
by: Raed Sawalha | last post by:
Hello when I serialize an object an error generated using this function public string SerializeObject(object oClassObject,System.Type oClassType) { XmlSerializer oSerializer = new...
2
by: RichardG | last post by:
I have an object data class that Inherits from a java class and implements System.Runtime.Serialization.ISerializable as I only need to transfer across three properties, string, array of objects...
1
by: louis_la_brocante | last post by:
Dear all, I am having trouble generating a client proxy for a webservice whose methods return a "complex" type. The type is complex in that it is a class whose members are a mix of primitive...
1
by: idletask | last post by:
Hello, I have an XML file that is on my file system. I want to read the file into memory and call a web service with it. When I do, the VB complains: "there was an error generating the XML...
3
by: namewitheldbyrequest | last post by:
"The XML element 'EnableTheming' from namespace 'http://tempuri.org/' is already present in the current scope" I created a Web Service: I imported System.Data.SqlClient so I could access SQL...
5
by: igotyourdotnet | last post by:
I'm creating a web service this is going to return an arraylist of items. When I try and run it Im' getting the following error message: System.InvalidOperationException: There was an error...
0
by: Sanjeet Koppikar | last post by:
Environment: Visual Studio 2003, IIS 5.1 Win XP pro I get this error message when I try to run my application. When I open the environment variables I can see the variable PT_Home exists in...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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
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...
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
tracyyun
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...

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.