Copied to clipboard

Flag this post as spam?

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


  • Martin Griffiths 784 posts 1182 karma points c-trib
    Apr 06, 2020 @ 07:26
    Martin Griffiths
    0

    usync Import() Error:Value cannot be null. Parameter name: source

    Has anyone come across this error when trying to programmatically import on application startup?

    uSyncBackOfficeContext uSyncBackOffice = uSyncBackOfficeContext.Instance;
                IEnumerable<uSyncAction> actions = uSyncBackOffice.Import("default", "~/uSync/data/", true);
    

    2020-04-06 08:22:03,400 [P22664/D2/T1] WARN Jumoo.uSync.BackOffice.uSyncBackOfficeConfig - Unable to load the settings: System.Threading.ThreadAbortException: Thread was being aborted. at System.Diagnostics.Debugger.NotifyOfCrossThreadDependencySlow() at System.Diagnostics.Debugger.NotifyOfCrossThreadDependency() at System.Lazy1.get_Value() at System.Xml.Serialization.TempAssembly.LoadGeneratedAssembly(Type type, String defaultNamespace, XmlSerializerImplementation& contract) at System.Xml.Serialization.XmlSerializer..ctor(Type type, String defaultNamespace) at Jumoo.uSync.BackOffice.uSyncBackOfficeConfig.Init() 2020-04-06 08:22:11,962 [P22664/D2/T1] INFO Jumoo.uSync.BackOffice.uSyncApplicationEventHandler - Running uSync Import: Group = default Folder = ~/uSync/data/ Force = True 2020-04-06 08:22:27,236 [P22664/D2/T1] ERROR Lcp.Pas.Web.MemberAccess.Umbraco.Helpers.PropertyDataAndMemberMigration - Error:Value cannot be null. Parameter name: source System.ArgumentNullException: Value cannot be null. Parameter name: source at System.Linq.Enumerable.Select[TSource,TResult](IEnumerable1 source, Func`2 selector) at Jumoo.uSync.BackOffice.uSyncBackOfficeContext.Import(String groupName, String folder, Boolean force) at Lcp.Pas.Web.MemberAccess.Umbraco.Helpers.PropertyDataAndMemberMigration.Up() in C:\vs_proj\pas\Solutions\WebMemberAccess\Lcp.Pas.Web.MemberAccess.Umbraco\Helpers\PropertyDataAndMemberMigration.cs:line 47

  • Kevin Jump 1753 posts 11263 karma points MVP 4x c-trib
    Apr 06, 2020 @ 08:14
    Kevin Jump
    0

    Hi,

    From the error it looks like the uSync config files are missing/corrupt ?

    uSync will try to read them, to get handler settings/etc.

    you might be doing this but Its probably best to run code after uSync has started up itself, you can hook into the uSyncEvents.Initilized event, which is fired after uSync has started up.

Please Sign in or register to post replies

Write your reply to:

Draft