Hi
I am investigating some problem and I cannot find a solution. Maybe someone cen help me...
After converting project from Framework1.1->2.0 a have the following error in a few of my customers:
System.InvalidOperationException: There is an error in XML document <189,2>
-->System.FormatException: Input string was not in a correct format
...........
and after many exceptions
System.InvalidOperationException: <logAttributeSpec xmlns=''> was not expected.....
..a part of definiftion in cs
[ XmlRoot("logAttributeSpec")]
public class LogAttributes
{
[ XmlElement("structureList")]
public StructureList Structures;
[ XmlElement("logTypeList")]
public LogTypeList LogTypes;
}
and deserializing...
XmlSerializer serializer = new XmlSerializer(typeof(LogAttributes));
and part of XML file
< xml version="1.0" encoding="utf-8" > <logAttributeSpec> ......
The error did not exist before Framework conversion.
I did not do any changes in this part of software.
Another thing is that not all customers have this error - even with Framework 2.0 installed.
Any idea what can be wrong
Ela
.NET Development6
|