Try Now
More in this section

Forums / Developing with Sitefinity / Upgrading 3.5 to 3.7

Upgrading 3.5 to 3.7

3 posts, 0 answered
  1. heads
    heads avatar
    6 posts
    30 Aug 2006
    23 Jul 2010
    Link to this post
    To whom it may concern,

    I am currently in the process of upgrading Sitefinity from 3.5 to 3.7 I created two new modules (under 3.5) after the upgrade process whenever I try to create a new module type. I get the below error

        CmsHttpRequest: /Sitefinity/Admin/Modules.aspx?module=Story
    - L0 -------------------------------------------------------------------------------
    Exception Type: System.ArgumentOutOfRangeException
    Message: Length cannot be less than zero.
    Parameter name: length
    Source: mscorlib
    Stack Trace:
       at System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy)
       at Telerik.Cms.Engine.ContentUrlRewriterService.GetItemUrl(Object item, Boolean useCache)
       at Telerik.Cms.Engine.Data.CmsContentBase.VerifyObject()
       at Nolics.ORMapper.Base.OdbClassHelper.VerifyClass(IOdbClass cl)
       at Telerik.Cms.Engine.Data.CmsContentBase.Nolics.ORMapper.Base.IOdbClass.BeginCommit()
       at Nolics.ORMapper.Base.Transaction.Commit(Boolean fCleanIfSuccess)
       at Nolics.ORMapper.Base.Transaction.Commit()
       at Telerik.Cms.Engine.Data.Providers.DefaultProvider.SaveContent(IContent content, Boolean fireEvents)
       at Telerik.Cms.Engine.ContentProviderBase.SaveContent(IContent content)
       at Telerik.Cms.Engine.ContentManager.SaveContent(IContent content, ContentStatus status)
       at Telerik.Cms.Engine.WebControls.Admin.ControlPanel.button_Command(Object sender, CommandEventArgs e)
       at System.Web.UI.WebControls.CommandEventHandler.Invoke(Object sender, CommandEventArgs e)
       at System.Web.UI.WebControls.LinkButton.OnCommand(CommandEventArgs e)
       at System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument)
       at System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
       at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
       at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

    For further information I am using the "Telerik.Sitefinity.Configuration.ControlsConfig.xml" file for mapping.

    I guess the first question is do I need to map all Custom Modules as well as the base Sitefinity controls using this methodology?

    If I do is this stack trace indicative of this fact or if I don't what could I be missing?

  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    19 Oct 2016
    23 Jul 2010
    Link to this post
    Hi heads,

    GetItemUrl - Generates a virtual path for the provided content item. The item parameter  is object representing a content item. The method returns  virtual path for the provided data item. Most probably there is something wrong with the urlRewriteFormat in one of the content item you have.You could also try to upgrade your project to 3.6 and then to 3.7.

    Best wishes,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. heads
    heads avatar
    6 posts
    30 Aug 2006
    25 Jul 2010
    Link to this post
    Hi Ivan

    Thanks for the advice.

    I will try to track down the issue with the urlRewriteFormat.
Register for webinar
3 posts, 0 answered