Unofficial Content
  • This documentation is valid for:

There is an error in XML document

Stack Error

InvalidOperationException: <Context xmlns='KB_Name'> was not expected.
Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderSdtNameContext() +118

InvalidOperationException: There is an error in XML document (1, 2).
System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events) +613
System.Xml.Serialization.XmlSerializer.Deserialize(TextReader textReader) +102
GeneXus.Programs.SdtName.FromXml(String s, String name) +112
 

Reasons/Solutions:

A customer got error when programming something like

& Session.Set ("context", & Context.ToXml ())

It was resolved by changing the keyword, context to new_session_name

& Session.Set ("new_session_name", & Context.ToXml ())


Last update: April 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant