Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at

  • Paul Stephenson 19 posts 129 karma points
    Mar 12, 2015 @ 17:17
    Paul Stephenson

    NullRef with uSync.ContentEdition 0.7.2 and Umbraco 7.1.4


    I am trying out uSync.ContentEdition 0.7.2 on an Umbraco 7.1.4 site, getting it through NuGet.  I have previously included uSync 2.4.10 in the project, which seems to work fine.

    On the first run of the website on my developer machine, there is a YSOD.  It first creates the content tree on disk, correctly as far as I can tell.

    Here's the end of the UmbracoTraceLog.txt:

    2015-03-12 15:44:51,232 [19] INFO  jumoo.usync.content.ContentImporter - [Thread 1] ## Import Complete [5.210244 Seconds]
    2015-03-12 15:44:51,233 [19] INFO  jumoo.usync.content.MediaImporter - [Thread 1] >> Media Import starting
    2015-03-12 15:44:51,249 [19] INFO  jumoo.usync.content.MediaImporter - [Thread 1] Updating existing media node Blog photos
    2015-03-12 15:44:51,276 [19] INFO  jumoo.usync.content.MediaImporter - [Thread 1] Updating existing media node Advert
    2015-03-12 15:44:51,280 [19] ERROR Umbraco.Core.UmbracoApplicationBase - [Thread 1] An unhandled exception occurred
    System.NullReferenceException: Object reference not set to an instance of an object.
       at jumps.umbraco.usync.uSync.RunSync()
       at jumps.umbraco.usync.uSync.DoOnStart()
       at jumps.umbraco.usync.uSync.OnApplicationStarted(UmbracoApplicationBase httpApplication, ApplicationContext applicationContext)
       at Umbraco.Core.CoreBootManager.<Complete>b__5(IApplicationEventHandler x)
       at Umbraco.Core.EnumerableExtensions.ForEach[TItem](IEnumerable`1 items, Action`1 action)
       at Umbraco.Core.CoreBootManager.Complete(Action`1 afterComplete)
       at Umbraco.Web.WebBootManager.Complete(Action`1 afterComplete)
       at Umbraco.Core.UmbracoApplicationBase.StartApplication(Object sender, EventArgs e)
       at Umbraco.Core.UmbracoApplicationBase.Application_Start(Object sender, EventArgs e)
    2015-03-12 15:45:01,305 [19] INFO  umbraco.BusinessLogic.Log - [Thread 22] Log scrubbed.  Removed all items older than 2015-01-11 15:45:01
    2015-03-12 15:45:01,312 [19] INFO  Umbraco.Core.UmbracoApplicationBase - [Thread 22] Application shutdown. Reason: InitializationError
    Is this a known problem?  Have I missed something obvious?
    I have tried this on a couple of existing website projects now, with the same result (the other had Umbraco 7.2.2, uSync 2.4.6 and uSyncContent 0.7.2).
  • Paul Stephenson 19 posts 129 karma points
    Mar 18, 2015 @ 15:04
    Paul Stephenson

    I've had more of a play around:

    • Setting config/log4net.config
    • I got the source of uSync.ContentEdition from
    • I replaced the NuGet reference with a direct DLL reference to jumoo.usync.content.dll from the latest master commit
    • and the problem on startup disappeared!

    I notice in the git log that there were some changes to MediaImporter.cs and helpers/FileHelper.cs since the 0.7.2 release, so I assume that Kevin already fixed whatever was causing the issue. Thanks!

    Would it be possible for 0.7.3 to be uploaded to NuGet please?


Please Sign in or register to post replies

Write your reply to: