On a DXA .NET 1.6 website I get this internal server error on a page I just created:
The site.log raises this error which is not very descriptive at first sight:
2016-11-15 11:22:27,335 [32] ERROR - There is an error in XML document (2, 2).
System.InvalidOperationException: There is an error in XML document (2, 2). ---> System.InvalidOperationException: <html xmlns='http://www.w3.org/1999/xhtml'> was not expected.
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReader1.Read32_Page()
at Microsoft.Xml.Serialization.GeneratedAssembly.PageSerializer.Deserialize(XmlSerializationReader reader)
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)
at DD4T.Factories.FactoryBase.AutoDetectSerializerService.Deserialize[T](String input)
at DD4T.Factories.PageFactory.GetIPageObject(String pageStringContent)
at DD4T.Factories.PageFactory.TryFindPage(String url, IPage& page)
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)