vegaitglobal / uSiteBuilder

Vega IT’s uSitebuilder is an open source (LPGL) framework created for .NET developers to accelerate and streamline their Umbraco based development projects. Our objective is to enable back-end developers to adhere to the .NET standards with minimal external interaction, and to facilitate the automation of their deployments.
GNU Lesser General Public License v2.1
29 stars 21 forks source link

issue after umbraco 7.3 upgrade #32

Open shearer3000 opened 9 years ago

shearer3000 commented 9 years ago

Length cannot be less than zero. Parameter name: length

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.ArgumentOutOfRangeException: Length cannot be less than zero. Parameter name: length

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:

[ArgumentOutOfRangeException: Length cannot be less than zero. Parameter name: length] System.String.Substring(Int32 startIndex, Int32 length) +12215123 Umbraco.Core.Models.File.get_Alias() +157 Vega.USiteBuilder.DocumentTypeBuilder.<>cDisplayClassb.b9(ITemplate t) +58 System.Linq.Enumerable.Any(IEnumerable1 source, Func2 predicate) +146 Vega.USiteBuilder.DocumentTypeBuilder.DocumentTypeComparer.CompareAllowedTemplates(IContentType contentType, DocumentTypeAttribute docTypeAttr, Type typeDocType) +453 Vega.USiteBuilder.DocumentTypeBuilder.DocumentTypeComparer.IsUnchanged(Type typeDocType, Type parentDocType, IContentType contentType) +835 Vega.USiteBuilder.DocumentTypeBuilder.DocumentTypeComparer.PreviewDocTypes(Type parentDocType, String parentAlias) +355 Vega.USiteBuilder.DocumentTypeBuilder.DocumentTypeComparer.PreviewDocTypes(Type parentDocType, String parentAlias) +687 Vega.USiteBuilder.DocumentTypeBuilder.DocumentTypeComparer.PreviewDocumentTypeChanges(Boolean& hasDefaultValues) +120 Vega.USiteBuilder.DocumentTypeManager.Synchronize() +101 Vega.USiteBuilder.UmbracoManager.SynchronizeDocumentTypes() +68 Vega.USiteBuilder.UmbracoManager.Synchronize() +50 Vega.USiteBuilder.UmbracoManager.SynchronizeIfNotSynchronized() +100 Vega.USiteBuilder.USiteBuilderHttpModule.BeginRequest(Object sender, EventArgs e) +31 System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +141 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +69

revolution42 commented 9 years ago

I am also having this same issue

spopovic commented 9 years ago

Hi @shearer3000 and @revolution42,

I'll try to find someone to look into this this week but still can't promise anything. If you get time to look into it in the meantime, feel free to make a fix and a pull request and I'll be happy to review and merge it.

Regards, Sasa

DejanMilicic commented 9 years ago

I have one more issue regarding upgrade to 7..4

Invalid column name "uniqueID"

revolution42 commented 9 years ago

@DejanMilicic if you turn the syncing off for the upgrade you can get past that issue.

mokonta commented 9 years ago

Any movement on this? I'm getting the same error with Umbraco 7.3. Thanks in advance.

mgobec commented 9 years ago

What version did you guys upgrade from and did you turn off sync while upgrading ?

mokonta commented 9 years ago

We upgraded from 7.2.8 and I'm told sync was indeed turned off while upgrading.

revolution42 commented 9 years ago

As a bit of an update, I did a pull from bitbucket (instead of the nuget package) and was not having this same issue

mokonta commented 9 years ago

Think this is the fix: https://github.com/vegaitsourcing/uSiteBuilder/commit/e1fdd65086ebeba678ee9b7a661f125921a782da

Lachlann commented 8 years ago

@mokonta agreed that fixed it for me too.

BillTomMorrison commented 8 years ago

@spopovic I think that mokonta is right. I had this issue after upgrading to umbraco 7.4.1. New version should be realesed because I think that using nuget is much better than compiling it by yourself. Please concider this:)

spopovic commented 8 years ago

@BillTomMorrison You are right. We'll release a new version on NuGet next week.