Hi
I installed uSync via Nuget tonight and initially everything was working great. But I downloaded the uSync folder to my local machine and I now get this error message. I've even downloaded the entire site and DB again to see if I could fix it but nothing.
If I remove the uSync dlls from the bin folder then I can access my site and everything works fine, except uSync, obviously.
Any ideas what might cause this and how to fix?
Thanks
Root element is missing.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Xml.XmlException: Root element is missing.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[XmlException: Root element is missing.]
System.Xml.XmlTextReaderImpl.Throw(Exception e) +88
System.Xml.XmlTextReaderImpl.ParseDocumentContent() +1611
System.Xml.XmlReader.MoveToContent() +100
System.Xml.Linq.XElement.Load(XmlReader reader, LoadOptions options) +37
System.Xml.Linq.XElement.Load(String uri, LoadOptions options) +99
Jumoo.uSync.BackOffice.Handlers.DataTypeHandler.Import(String filePath, Boolean force) +197
Jumoo.uSync.BackOffice.Handlers.uSyncBaseHandler`1.ImportFolder(String folder, Boolean force, Dictionary`2 updates) +227
Jumoo.uSync.BackOffice.Handlers.uSyncBaseHandler`1.ImportFolder(String folder, Boolean force, Dictionary`2 updates) +663
Jumoo.uSync.BackOffice.Handlers.uSyncBaseHandler`1.ImportAll(String folder, Boolean force) +413
Jumoo.uSync.BackOffice.uSyncBackOfficeContext.Import(IEnumerable`1 syncHandlers, String folder, Boolean checkConfig, Boolean force, String groupName) +530
Jumoo.uSync.BackOffice.uSyncBackOfficeContext.Import(String groupName, String folder, Boolean force) +1045
Jumoo.uSync.BackOffice.uSyncBackOfficeContext.ImportAll(String folder, Boolean force) +123
Jumoo.uSync.BackOffice.uSyncApplicationEventHandler.Setup() +298
it sounds like you have corrupted (or empty?) usync files in the DataTypes folder ? not finding the root element, probibly means the xml isn't well formed or the file is empty.
if you up the logging by putting the following in config/log4net.conifg
I had a look in the logs and nothing obvious was thrown up so what I did was delete all the data in the uSync/data folder on my local dev environment, booted up my site with no issues then downloaded each individual folder from live to dev and did a manual import via the uSync dashboard. All seems to be up and running again.
Root element is missing
Hi
I installed uSync via Nuget tonight and initially everything was working great. But I downloaded the uSync folder to my local machine and I now get this error message. I've even downloaded the entire site and DB again to see if I could fix it but nothing. If I remove the uSync dlls from the bin folder then I can access my site and everything works fine, except uSync, obviously. Any ideas what might cause this and how to fix? Thanks
Hi
it sounds like you have corrupted (or empty?) usync files in the DataTypes folder ? not finding the root element, probibly means the xml isn't well formed or the file is empty.
if you up the logging by putting the following in config/log4net.conifg
then you will get more logging and it might pinpoint the exact file that is causing the issue.
Thanks Kevin.
I had a look in the logs and nothing obvious was thrown up so what I did was delete all the data in the uSync/data folder on my local dev environment, booted up my site with no issues then downloaded each individual folder from live to dev and did a manual import via the uSync dashboard. All seems to be up and running again.
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.