I am trying to upgrade dxa 1.5 to 1.8 for sites 9.1. Following is the .net version of my web application: 4.6.2
after all required steps are completed web application has started loading. but for a couple of pages, it has started showing 500 internal server error. in the log file it says as follows:
There is an error in XML document (1, 293).
System.InvalidOperationException: There is an error in XML document (1, 293). ---> System.Xml.XmlException: Data at the root level is invalid. Line 1, position 293.
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace()
at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
at System.Xml.XmlReader.MoveToContent()
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReader1.Read34_Page()
at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
--- End of inner exception stack trace ---
at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
at System.Xml.Serialization.XmlSerializer.Deserialize(TextReader textReader)
at DD4T.Serialization.XmlSerializerService.Deserialize[T](String input) in C:\projects\dd4t-model\source\DD4T.Serialization\XmlSerializerService.cs:line 110
at DD4T.Factories.PageFactory.GetIPageObject(String pageStringContent) in C:\projects\dd4t-core\source\DD4T.Factories\PageFactory.cs:line 280
at DD4T.Factories.PageFactory.TryFindPage(String url, IPage& page) in C:\projects\dd4t-core\source\DD4T.Factories\PageFactory.cs:line 121
at Sdl.Web.Tridion.Mapping.DefaultContentProvider.GetPage(String urlPath, Localization localization)
at Sdl.Web.Tridion.Mapping.DefaultContentProvider.GetPageModel(String urlPath, Localization localization, Boolean addIncludes)
at Sdl.Web.Mvc.Controllers.PageController.Page(String pageUrl)
the page I am trying to access is: http://localhost:82/contact/index Though the same page is working on the legacy environment [dxa1.5, and web 8.5]
It will be helpful if anybody can show some direction on this.
@Jaime Santos Alcón: you are correct.
this issue has been fixed by installing si4t storage extension in deployer. as si4t storage extension was not present in deployer comment line like index data pushed by si4t tbb was not getting removed and making xml which was stored in broker db after publishing to invalid xml.
thank you all for your help.