+1-888-365-2779
Try Now
More in this section

Forums / Set-up & Installation / Language Localization in a subdirectory

Language Localization in a subdirectory

2 posts, 0 answered
  1. danfinney
    danfinney avatar
    51 posts
    Registered:
    09 Jul 2008
    12 Nov 2009
    Link to this post
    I have turned on Language Localization for a site and I am having difficulty with the redirect for the homepage. The site is in a subdirectory like so:

    www.mysite.com/subfolder

    If you go to any page in the site directly, like typing in www.mysite.com/subfolder/home.aspx  It will successfully redirect you to www.mysite.com/subfolder/en/home.aspx 

    However if you type in www.mysite.com/subfolder  Sometimes it attempts to redirect you to www.mysite.com/en/subfolder or it gives the following error:

    Server Error in '/subfolder' Application.

    startIndex cannot be larger than length of string.
    Parameter name: startIndex

    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: startIndex cannot be larger than length of string.
    Parameter name: startIndex

    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: startIndex cannot be larger than length of string.
    Parameter name: startIndex]
       System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy) +5596709
       Telerik.Cms.Web.UrlHelper.UnresolveLanguageUrl(String path, CultureInfo& selectedCulture) +275
       Telerik.Cms.Web.CmsHttpModule.SetCurrentCulture(HttpContext context, CmsHttpRequest request) +76
       Telerik.Cms.Web.CmsHttpModule.BeginRequest(Object sender, EventArgs e) +1026
       System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +80
       System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +177
    


    d a n f i n n e y
    Dan Finney Design, Inc.
    Indianapolis Web Design
    - - - - - - - - - - - - - - - - - - -
    www.danfinney.com
    sitefinity@danfinney.com
    317-816-9353
  2. Stoyanka Assenova
    Stoyanka Assenova avatar
    113 posts
    Registered:
    01 Dec 2016
    16 Nov 2009
    Link to this post
    Hello danfinney,

    We sent a reply to your support request. Please take a look at it. We could continue the discussion here in our forums or using support system if preferred.

    Kind regards,
    Stoyanka Assenova
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
2 posts, 0 answered