We have been migrating our Cloud Services (Classic) application to Cloud Services (Extended Support) and are having major issues with the application failing after 20 minutes or so after deployment. If I deploy the app after it has been deployed everything works fine for around 20 minutes and then the application fails with the following error: -
The data at the root level is invalid. Line 1, position 1.
at System.Xml.XmlExceptionHelper.ThrowXmlException(XmlDictionaryReader reader, String res, String arg1, String arg2, String arg3)
at System.Xml.XmlUTF8TextReader.Read()
at System.Xml.XmlBaseReader.IsStartElement()
at System.Xml.XmlBaseReader.IsStartElement(XmlDictionaryString localName, XmlDictionaryString namespaceUri)
at System.Runtime.Serialization.XmlObjectSerializer.IsRootElement(XmlReaderDelegator reader, DataContract contract, XmlDictionaryString name, XmlDictionaryString ns)
at System.Runtime.Serialization.DataContractSerializer.InternalIsStartObject(XmlReaderDelegator reader)
at System.Runtime.Serialization.DataContractSerializer.InternalReadObject(XmlReaderDelegator xmlReader, Boolean verifyObjectName, DataContractResolver dataContractResolver)
at System.Runtime.Serialization.XmlObjectSerializer.ReadObjectHandleExceptions(XmlReaderDelegator reader, Boolean verifyObjectName, DataContractResolver dataContractResolver)
The Cloud Service is deployed using an osFamily="5" guest OS and uses the Thinktecture IdentityServer2 federated authentication middleware to control access between the application and the auth server.
There are 2 Cloud Services running identical OS and I have created them with a single instance each. I have been trying to solve this for 4 days and am at my wits end!
Any advice?