Copied to clipboard

Flag this post as spam?

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


  • Stefan 117 posts 215 karma points
    Sep 02, 2013 @ 16:49
    Stefan
    0

    StartIndex cannot be less than zero.

    I can't figure out whether its the structure of my site that causes the exception below. My site is multilingual with multiple nodes at level 1 plus som misc nodes for sitebar etc.. I'm running the latest razor edition of the package on Umbraco 6.1.4.

    The exception is only triggered when trying to access the url of the template, when adding the template to a document type and creating a node in the content tree, everything works just fine. I would just prefor not having any such nodes in the content tree for the content editors to mess with ;)

    [ArgumentOutOfRangeException: StartIndex cannot be less than zero.
    Parameter name: startIndex]
       System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy) +10698829
       AutoFolders.NotFoundHandler.Execute(String url) +223
       Umbraco.Web.Routing.ContentFinderByNotFoundHandlers.HandlePageNotFound(PublishedContentRequest docRequest) +1118
       Umbraco.Web.Routing.ContentFinderByNotFoundHandlers.TryFindContent(PublishedContentRequest docRequest) +10
       Umbraco.Web.Routing.PublishedContentRequestEngine.<FindPublishedContent>b__2a(IContentFinder finder) +15
       System.Linq.Enumerable.Any(IEnumerable`1 source, Func`2 predicate) +146
       Umbraco.Web.Routing.PublishedContentRequestEngine.FindPublishedContent() +215
       Umbraco.Web.Routing.PublishedContentRequestEngine.FindPublishedContentAndTemplate() +195
       Umbraco.Web.Routing.PublishedContentRequestEngine.PrepareRequest() +87
       Umbraco.Web.UmbracoModule.ProcessRequest(HttpContextBase httpContext) +316
       Umbraco.Web.UmbracoModule.<Init>b__7(Object sender, EventArgs e) +80
       System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +136
       System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +69

     

  • Thomas Morris 35 posts 133 karma points MVP c-trib
    Dec 09, 2013 @ 19:22
    Thomas Morris
    0

    I've got what looks to be the exact same issue and it gets triggered when I try to go to a page that doesn't exist. I would expect my site to go to a custom 404 page defined in umbracoSettings.config

    Did you get anywhere with this?

  • Stefan 117 posts 215 karma points
    Dec 10, 2013 @ 08:42
    Stefan
    0

    I you want to get the Cultiv Search Engine Sitemap working and are getting the error, what I did was to create a sitemap node in the content tree and then assign it to a template that contains the macro. This way I was able to access the sitemap without the exception.

    But maybe you are just looking for a way to create a custom 404 page for your site?

     

Please Sign in or register to post replies

Write your reply to:

Draft