Please note that uSync was working fine until I started getting following exception. I have an onsite partner with whom I share uSync folders. While trying to resolve the issue I discovered that if I set "templates=false" in uSyncSettings.config file then this error goes away but obviously then it would not be synching templates. Please guide if anybody has an idea about this issue. Many Thanks.
Unexpected end of file while parsing CDATA has occurred. Line 41,
position 1. 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: Unexpected end of file
while parsing CDATA has occurred. Line 41, position 1.
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: Unexpected end of file while parsing CDATA has
occurred. Line 41, position 1.] jumps.umbraco.usync.uSync.RunSync()
+674 jumps.umbraco.usync.uSync.DoOnStart() +118 Umbraco.Core.EnumerableExtensions.ForEach(IEnumerable1 items,
Action1 action) +148
Umbraco.Core.CoreBootManager.Complete(Action1 afterComplete) +116
Umbraco.Web.WebBootManager.Complete(Action1 afterComplete) +49
Umbraco.Core.UmbracoApplicationBase.StartApplication(Object sender,
EventArgs e) +243
[HttpException (0x80004005): Unexpected end of file while parsing
CDATA has occurred. Line 41, position 1.]
System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext
context, HttpApplication app) +12951237
System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr
appContext, HttpContext context, MethodInfo[] handlers) +175
System.Web.HttpApplication.InitSpecial(HttpApplicationState state,
MethodInfo[] handlers, IntPtr appContext, HttpContext context) +304
System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr
appContext, HttpContext context) +404
System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr
appContext) +475
[HttpException (0x80004005): Unexpected end of file while parsing
CDATA has occurred. Line 41, position 1.]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +12968244
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context)
+159 System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest
wr, HttpContext context) +12807949
I had copied and pasted some content from photoshop and looks like it had copied some hidden characters or text from a different character encoding.
When uSync was exporting the files, it didn't write out the full template file and stopped on the line that had the hidden character.
Easyest way to fix was to open up the template in the umbraco backend and look for "little red dots" and delete them. Make sure usync exports the full template, upload the uSync folder and try again.
Hope this helps anyone else that gets tripped up on this!
Unexpected end of file
Hi,
Please note that uSync was working fine until I started getting following exception. I have an onsite partner with whom I share uSync folders. While trying to resolve the issue I discovered that if I set "templates=false" in uSyncSettings.config file then this error goes away but obviously then it would not be synching templates. Please guide if anybody has an idea about this issue. Many Thanks.
Regards,
Omer Javed
Thanks Omer,
I just had the exact same issue (except different line No.), and disabling templates in the in uSyncSettings.config has stopped the error occuring.
Did you ever resolve the issue, allowing you to turn templates back on?
Cheers,
David
OK, figured out the issue...
I had copied and pasted some content from photoshop and looks like it had copied some hidden characters or text from a different character encoding.
When uSync was exporting the files, it didn't write out the full template file and stopped on the line that had the hidden character.
Easyest way to fix was to open up the template in the umbraco backend and look for "little red dots" and delete them. Make sure usync exports the full template, upload the uSync folder and try again.
Hope this helps anyone else that gets tripped up on this!
Cheers,
David
is working on a reply...