Error Unexpected end of file has occurred

Modified on Mon, 20 Jul 2015 11:55 by Kevin Ricciardo — Categorized as: Uncategorized

Unexpected end of file has occurred. The following elements are not closed: ClientSettings. Line 54, position 15.


at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.Throw(String res, String arg)
at System.Xml.XmlTextReaderImpl.Throw(Int32 pos, String res, String arg)
at System.Xml.XmlTextReaderImpl.ThrowUnclosedElements()
at System.Xml.XmlTextReaderImpl.ParseElementContent()
at System.Xml.XmlTextReaderImpl.Read()
at System.Xml.XmlTextReader.Read()
at System.Xml.XmlReader.ReadEndElement()
at System.Data.DataSet.ReadEndElement(XmlReader reader)
at System.Data.DataSet.ReadXSDSchema(XmlReader reader, Boolean denyResolving)
at System.Data.DataSet.ReadXml(XmlReader reader, Boolean denyResolving)
at System.Data.DataSet.ReadXml(String fileName)
at Client.jClientConfiguration.get_ClientSettings()
at Client.jClientConfiguration.settingsTable(String tableName)


This error occurs when client tier settings, or other files from the RW CAREWare Client Tier folder, are saved in Appdata or roaming folders instead of the RW CAREWare Client Tier folder. This is caused by a setting in Windows to provide users with personalized settings for programs.

Here is an article from Microsoft regarding the setting that causes this issue.

Disabling the UAC feature to virtualize the files and registry or turning off UAC controls will eliminate this error from occurring. It is not recommended to turn off UAC or to disable the Virtualize file and registry setting. UAC controls are necessary for Windows security. The UAC control setting for virtualize file and registry setting may affect other programs than CAREWare. Consult your local IT or contact Windows support before making these adjustments.

For instruction on operating CAREWare with UAC turned on, you can read How to install CAREWare with User Access Control turned on