Copied to clipboard

Flag this post as spam?

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


  • Geoff 17 posts 87 karma points
    Feb 16, 2017 @ 13:25
    Geoff
    0

    uSync Installation error - Index was outside the bounds of the array.

    Hi,

    I have created an instance of Umbraco in IIS on Windows Server 2012 using the UmbracoCms.7.3.4 zip package. The database instance is hosted on Azure SQL. The site seems to work OK, but when I attempt to install uSync from the Umbraco Package Repository everything crashes and I get the following message:

    Index was outside the bounds of the array. 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.IndexOutOfRangeException: Index was outside the bounds of the array. 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: [IndexOutOfRangeException: Index was outside the bounds of the array.]
    Umbraco.Core.Models.<>cDisplayClass1.b0(UmbracoObjectTypes types) +289
    System.Collections.Concurrent.ConcurrentDictionary2.GetOrAdd(TKey key, Func2 valueFactory) +97
    Umbraco.Core.Models.UmbracoObjectTypesExtensions.GetGuid(UmbracoObjectTypes umbracoObjectType) +116
    Umbraco.Core.Services.EntityService.GetChildren(Int32 parentId, UmbracoObjectTypes umbracoObjectType) +83
    Jumoo.uSync.BackOffice.Handlers.DataTypeHandler.Export(Int32 parent, String folder) +136
    Jumoo.uSync.BackOffice.uSyncBackOfficeContext.Export(String groupName, String folder) +444
    Jumoo.uSync.BackOffice.uSyncApplicationEventHandler.Setup() +384 [ApplicationException: uSync encounted an error during setup (which is probibily from an import) You can set DontThrowErrors = True in the uSyncBackOffice.Config file and umbraco will not throw the YSOD (usync will just log errors in the log file)]
    Jumoo.uSync.BackOffice.uSyncApplicationEventHandler.Setup() +1289
    Umbraco.Core.ApplicationEventHandler.OnApplicationStarted(UmbracoApplicationBase umbracoApplication, ApplicationContext applicationContext) +50
    Umbraco.Core.CoreBootManager.b__8(IApplicationEventHandler x) +189 Umbraco.Core.EnumerableExtensions.ForEach(IEnumerable1 items, Action1 action) +167
    Umbraco.Core.CoreBootManager.Complete(Action1 afterComplete) +467
    Umbraco.Web.WebBootManager.Complete(Action
    1 afterComplete) +82
    Umbraco.Core.UmbracoApplicationBase.StartApplication(Object sender, EventArgs e) +364 [HttpException (0x80004005): uSync encounted an error during setup (which is probibily from an import) You can set DontThrowErrors = True in the uSyncBackOffice.Config file and umbraco will not throw the YSOD (usync will just log errors in the log file)]
    System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +544
    System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +186
    System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +172
    System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +402
    System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +343 [HttpException (0x80004005): uSync encounted an error during setup (which is probibily from an import) You can set DontThrowErrors = True in the uSyncBackOffice.Config file and umbraco will not throw the YSOD (usync will just log errors in the log file)]
    System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +579
    System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +112 System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +716*

    *

    Any suggestions of how I can resolve this would be very much appreciated.

    Thanks, Geoff

  • Kevin Jump 944 posts 5094 karma points mvp c-trib
    Feb 16, 2017 @ 15:57
    Kevin Jump
    0

    Hi Geoff,

    it might be a version issue - I am not aware of any major changes in this bit of the code between umbraco 7.3.x and umbraco 7.4.x - but i will confess i haven't tried the latest versions of uSync on a 7.3 install.

    I will have a check today and get back to you - it might be that you have to use an older version of uSync with that version of umbraco - but i will confirm.

    Kevin

  • Geoff 17 posts 87 karma points
    Feb 16, 2017 @ 16:00
    Geoff
    0

    Hi Kevin,

    Thank you very much. Since submitting my earlier post I have also tried to install the uSync package on the same version of Umbraco running as an Azure web app and get the same issue.

    Cheers, Geoff

  • Kevin Jump 944 posts 5094 karma points mvp c-trib
    Feb 16, 2017 @ 16:26
    Kevin Jump
    0

    Hi Geoff,

    yes - Umbraco 7.4 introduced folders for datatypes and doctypes - the support for this in the latest versions of usync is causing the error :(

    You need to install the last supported version of usync for umbraco 7.3.x which is uSync 3.0.4 - https://our.umbraco.org/FileDownload?id=15854

    Kevin

  • Geoff 17 posts 87 karma points
    Feb 17, 2017 @ 08:35
    Geoff
    0

    Hi Kevin,

    Thanks. Do the release of updates to uSync always keep pace with changes to the core Umbraco? This is the first time we've used Umbraco. We intend to keep our code up to date with the latest patches as they are released. How do we ensure that we always maintain a compatible version of uSync?

    Cheers, Geoff

  • Kevin Jump 944 posts 5094 karma points mvp c-trib
    Feb 17, 2017 @ 08:54
    Kevin Jump
    0

    Hi Geoff,

    Yes in general when there are any significant changes in how umbraco stores data there is usually a usync release within a few days.

    In reality there haven't been any major changes since v7.4 so the latest version (v3.3.x) works with v7.4.0 through to v.7.5.9+

    even when there are changes the previous version of usync often continues to work, and just not support new features (so for example a version 2 of usync will work with the latest version of umbraco, you just won't get the folders , or any of the patches / fixes to usync since that release).

    my recommendation would be run the latest version of umbraco with the latest version of usync for the best possible results :)

  • Geoff 17 posts 87 karma points
    Feb 21, 2017 @ 11:25
    Geoff
    0

    Hi Kevin,

    That's cool, thanks.

Please Sign in or register to post replies

Write your reply to:

Draft