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.0(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.
*
Any suggestions of how I can resolve this would be very much appreciated.
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.
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.
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?
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 :)
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:
*
Any suggestions of how I can resolve this would be very much appreciated.
Thanks, Geoff
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
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
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
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
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 :)
Hi Kevin,
That's cool, thanks.
is working on a reply...