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

Forums / Bugs & Issues / What does this error mean, and how do I prevent it from happening?

What does this error mean, and how do I prevent it from happening?

12 posts, 0 answered
  1. Isaac
    Isaac avatar
    63 posts
    Registered:
    01 Dec 2008
    31 Aug 2010
    Link to this post
    This morning, our Sitefinity website went down with the following error.

    An error occurred in the application:
    Index was outside the bounds of the array.
    Stack Trace:
    at
    System.Collections.Generic.List`1.Add(T item) at
    Telerik.Cms.Web.AdvancedUrlRewriter.Create(Object parent, Object configContext, XmlNode section) at
    System.Configuration.RuntimeConfigurationRecord.RuntimeConfigurationFactory.CreateSectionImpl(RuntimeConfigurationRecord configRecord, FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentConfig, ConfigXmlReader reader) at
    System.Configuration.RuntimeConfigurationRecord.RuntimeConfigurationFactory.CreateSectionWithRestrictedPermissions(RuntimeConfigurationRecord configRecord, FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentConfig, ConfigXmlReader reader) at
    System.Configuration.RuntimeConfigurationRecord.RuntimeConfigurationFactory.CreateSection(Boolean inputIsTrusted, RuntimeConfigurationRecord configRecord, FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentConfig, ConfigXmlReader reader) at
    System.Configuration.RuntimeConfigurationRecord.CreateSection(Boolean inputIsTrusted, FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentConfig, ConfigXmlReader reader) at
    System.Configuration.BaseConfigurationRecord.CallCreateSection(Boolean inputIsTrusted, FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentConfig, ConfigXmlReader reader, String filename, Int32 line)

    I'm not quite sure what all of that means to be honest.  I do see mention of the AdvancedURLRewriter (we are using URL Rewriting, so I'm including the URL Rewrites section of our web.config file.  Please let me know if I should include anything else

    Thank you

    01.<urlrewrites>
    02.            <rule>
    03.                <url>(/.+/$)</url>
    04.                <rewrite>/404.aspx?aspxerrorpath=$0</rewrite>
    05.            </rule>
    06.            <rule>
    07.                <url>/tequiv/tequiv-(.*)\.aspx</url>
    08.                <rewrite>/tequiv/index.aspx?page=tequiv-$1</rewrite>
    09.            </rule>
    10.            <rule>
    11.                <url>/tequiv/tequiv-(.*)\.php</url>
    12.                <rewrite>/tequiv/index.aspx?page=tequiv-$1</rewrite>
    13.            </rule>
    14.            <rule>
    15.                <url>\.php</url>
    16.                <rewrite>.aspx</rewrite>
    17.            </rule>
    18.            <rule>
    19.                <url>/rld$</url>
    20.                <rewrite>/rld/index.aspx</rewrite>
    21.            </rule>
    22.            <rule>
    23.                <url>/scholarsday$</url>
    24.                <rewrite>/scholars_day/registration.aspx</rewrite>
    25.            </rule>
    26.            <rule>
    27.                <url>/dsd$</url>
    28.                <rewrite>/honors/events/dsd/index.aspx</rewrite>
    29.            </rule>
    30.            <rule>
    31.                <url>/guidance/size</url>
    32.                <rewrite>/guidance_counselors/class_size/index.aspx</rewrite>
    33.            </rule>
    34.            <rule>
    35.                <url>counselorupdate</url>
    36.                <rewrite>counselor_update</rewrite>
    37.            </rule>
    38.            <rule>
    39.                <url>/ncpa$</url>
    40.                <rewrite>college_prep_academy</rewrite>
    41.            </rule>
    42.        </urlrewrites>

    Thank you in advance!

    -nathan
  2. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    03 Sep 2010
    Link to this post
    Hi Nathan,

    Thank you for using our services.

    Can you please see if you are getting this error on a particular page? I have tried most of the rewrite rules however I could not manage to reproduce it. It seems however that the problem is coming from reading the url rewrites section in the config file. Most probably it is thrown because of some of the rules.

    Best wishes,
    Radoslav Georgiev
    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. Isaac
    Isaac avatar
    63 posts
    Registered:
    01 Dec 2008
    03 Sep 2010
    Link to this post
    Radoslov,

    Thank you for your reply, I have checked my error logs and the .NET application logs and there is no page specific information associated with the error so I'm not sure exactly what page it happened on.  Is there a sitefinity error log someplace that I can look?

    -nathan
  4. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    03 Sep 2010
    Link to this post
    Hello Nathan,

    The Sitefinity error log file is located in ~/App_Data/sitefinity.log

    Best wishes,
    Radoslav Georgiev
    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
  5. Isaac
    Isaac avatar
    63 posts
    Registered:
    01 Dec 2008
    03 Sep 2010
    Link to this post
    Radoslov,

    Here are the Sitefinity error log entries, it looks like they may have some additional information.

    8/31/2010 10:01:15 AM [UNKNOWN]
    ************************************************************************************
    ID: eee81648-c5f4-4ea5-87be-73cb8a9a4c36; Code: 3008; Occurrence: 1; Sequence: 3
    ------------------------------------------------------------------------------------

    Application information:
        Machine name: PROVIDER
        OS Version: Microsoft Windows NT 5.2.3790 Service Pack 2
        Product Version: 3.6.1920.2
        Application Path: F:\wwwroot\Admissions\
        Debug: True

    Process information:
        Process ID: 6060
        Process Name: w3wp

    Request information:
        Request URL: /AppError.aspx?aspxerrorpath=/Talisma/2009mailer/facebook_bug.png
        Rewrite URL: http://www.admissions.unl.edu/AppError.aspx?aspxerrorpath=/Talisma/2009mailer/facebook_bug.png
        Url Referrer:    Is Authenticated: False
        Authentication Type:    User:     User Agent: Mozilla/5.0 (iPhone; U; CPU iPhone OS 3_1 like Mac OS X; en-us) AppleWebKit/528.18 (KHTML, like Gecko)
        User Address: 166.137.141.242

    Variables:
        RadControlRandomNumber: 0
        CmsHttpRequest: /AppError.aspx?aspxerrorpath=/Talisma/2009mailer/facebook_bug.png

    - L0 -------------------------------------------------------------------------------

    Exception Type: System.Configuration.ConfigurationErrorsException

    Message: An error occurred creating the configuration section handler for telerik/urlrewrites: Index was outside the bounds of the array. (F:\wwwroot\Admissions\web.config line 267)

    Source: System.Configuration

    Stack Trace:
       at System.Configuration.BaseConfigurationRecord.EvaluateOne(String[] keys, SectionInput input, Boolean isTrusted, FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentResult)
       at System.Configuration.BaseConfigurationRecord.Evaluate(FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentResult, Boolean getLkg, Boolean getRuntimeObject, Object& result, Object& resultRuntimeObject)
       at System.Configuration.BaseConfigurationRecord.GetSectionRecursive(String configKey, Boolean getLkg, Boolean checkPermission, Boolean getRuntimeObject, Boolean requestIsHere, Object& result, Object& resultRuntimeObject)
       at System.Configuration.BaseConfigurationRecord.GetSection(String configKey, Boolean getLkg, Boolean checkPermission)
       at System.Configuration.BaseConfigurationRecord.GetSection(String configKey)
       at System.Web.HttpContext.GetSection(String sectionName)
       at System.Web.Configuration.HttpConfigurationSystem.GetSection(String sectionName)
       at System.Web.Configuration.HttpConfigurationSystem.System.Configuration.Internal.IInternalConfigSystem.GetSection(String configKey)
       at System.Configuration.ConfigurationManager.GetSection(String sectionName)
       at Telerik.Cms.Web.AdvancedUrlRewriter.get_Rewriter()
       at Telerik.Cms.Web.AdvancedUrlRewriter.GetRewritedURL(String url, Boolean& changed)
       at Telerik.Cms.Web.CmsHttpModuleUrlRewrite.GetUrl(HttpContext context)
       at Telerik.Cms.Web.CmsHttpModule.BeginRequest(Object sender, EventArgs e)
       at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
       at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
    ------------------------------------------------------------------------------------
    - L1 -------------------------------------------------------------------------------

    Exception Type: System.IndexOutOfRangeException

    Message: Index was outside the bounds of the array.

    Source: mscorlib

    Stack Trace:
       at System.Collections.Generic.List`1.Add(T item)
       at Telerik.Cms.Web.AdvancedUrlRewriter.Create(Object parent, Object configContext, XmlNode section)
       at System.Configuration.RuntimeConfigurationRecord.RuntimeConfigurationFactory.CreateSectionImpl(RuntimeConfigurationRecord configRecord, FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentConfig, ConfigXmlReader reader)
       at System.Configuration.RuntimeConfigurationRecord.RuntimeConfigurationFactory.CreateSectionWithRestrictedPermissions(RuntimeConfigurationRecord configRecord, FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentConfig, ConfigXmlReader reader)
       at System.Configuration.RuntimeConfigurationRecord.RuntimeConfigurationFactory.CreateSection(Boolean inputIsTrusted, RuntimeConfigurationRecord configRecord, FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentConfig, ConfigXmlReader reader)
       at System.Configuration.RuntimeConfigurationRecord.CreateSection(Boolean inputIsTrusted, FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentConfig, ConfigXmlReader reader)
       at System.Configuration.BaseConfigurationRecord.CallCreateSection(Boolean inputIsTrusted, FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentConfig, ConfigXmlReader reader, String filename, Int32 line)
    ------------------------------------------------------------------------------------



    8/31/2010 10:01:15 AM [UNKNOWN]
    ************************************************************************************
    ID: 76ebd34e-d74d-47ce-a4a9-76bfd199a91d; Code: 3008; Occurrence: 2; Sequence: 4
    ------------------------------------------------------------------------------------

    Application information:
        Machine name: PROVIDER
        OS Version: Microsoft Windows NT 5.2.3790 Service Pack 2
        Product Version: 3.6.1920.2
        Application Path: F:\wwwroot\Admissions\
        Debug: True

    Process information:
        Process ID: 6060
        Process Name: w3wp

    Request information:
        Request URL: /daily_visit/
        Rewrite URL: http://admissions.unl.edu/daily_visit/
        Url Referrer: http://visit.unl.edu/
        Is Authenticated: False
        Authentication Type:    User:     User Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_4; en-us) AppleWebKit/533.17.8 (KHTML, like Gecko) Version/5.0.1 Safari/533.17.8
        User Address: 162.127.135.52

    Variables:
        RadControlRandomNumber: 0
        CmsHttpRequest: /daily_visit

    - L0 -------------------------------------------------------------------------------

    Exception Type: System.Configuration.ConfigurationErrorsException

    Message: An error occurred creating the configuration section handler for telerik/urlrewrites: Index was outside the bounds of the array. (F:\wwwroot\Admissions\web.config line 267)

    Source: System.Configuration

    Stack Trace:
       at System.Configuration.BaseConfigurationRecord.EvaluateOne(String[] keys, SectionInput input, Boolean isTrusted, FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentResult)
       at System.Configuration.BaseConfigurationRecord.Evaluate(FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentResult, Boolean getLkg, Boolean getRuntimeObject, Object& result, Object& resultRuntimeObject)
       at System.Configuration.BaseConfigurationRecord.GetSectionRecursive(String configKey, Boolean getLkg, Boolean checkPermission, Boolean getRuntimeObject, Boolean requestIsHere, Object& result, Object& resultRuntimeObject)
       at System.Configuration.BaseConfigurationRecord.GetSection(String configKey, Boolean getLkg, Boolean checkPermission)
       at System.Configuration.BaseConfigurationRecord.GetSection(String configKey)
       at System.Web.HttpContext.GetSection(String sectionName)
       at System.Web.Configuration.HttpConfigurationSystem.GetSection(String sectionName)
       at System.Web.Configuration.HttpConfigurationSystem.System.Configuration.Internal.IInternalConfigSystem.GetSection(String configKey)
       at System.Configuration.ConfigurationManager.GetSection(String sectionName)
       at Telerik.Cms.Web.AdvancedUrlRewriter.get_Rewriter()
       at Telerik.Cms.Web.AdvancedUrlRewriter.GetRewritedURL(String url, Boolean& changed)
       at Telerik.Cms.Web.CmsHttpModuleUrlRewrite.GetUrl(HttpContext context)
       at Telerik.Cms.Web.CmsHttpModule.BeginRequest(Object sender, EventArgs e)
       at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
       at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
    ------------------------------------------------------------------------------------
    - L1 -------------------------------------------------------------------------------

    Exception Type: System.IndexOutOfRangeException

    Message: Index was outside the bounds of the array.

    Source: mscorlib

    Stack Trace:
       at System.Collections.Generic.List`1.Add(T item)
       at Telerik.Cms.Web.AdvancedUrlRewriter.Create(Object parent, Object configContext, XmlNode section)
       at System.Configuration.RuntimeConfigurationRecord.RuntimeConfigurationFactory.CreateSectionImpl(RuntimeConfigurationRecord configRecord, FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentConfig, ConfigXmlReader reader)
       at System.Configuration.RuntimeConfigurationRecord.RuntimeConfigurationFactory.CreateSectionWithRestrictedPermissions(RuntimeConfigurationRecord configRecord, FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentConfig, ConfigXmlReader reader)
       at System.Configuration.RuntimeConfigurationRecord.RuntimeConfigurationFactory.CreateSection(Boolean inputIsTrusted, RuntimeConfigurationRecord configRecord, FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentConfig, ConfigXmlReader reader)
       at System.Configuration.RuntimeConfigurationRecord.CreateSection(Boolean inputIsTrusted, FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentConfig, ConfigXmlReader reader)
       at System.Configuration.BaseConfigurationRecord.CallCreateSection(Boolean inputIsTrusted, FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentConfig, ConfigXmlReader reader, String filename, Int32 line)
    ------------------------------------------------------------------------------------

    Line 267 in the Web.Config file is the opening of the <telerik> section
  6. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    06 Sep 2010
    Link to this post
    Hi Nathan,

    Thank you for getting back to me.

    The error message says that it is failing to generate the configuration section. The error is thrown on line 267 for both instances. Can you please tell us exactly which rules are on line 267 in your web.config.

    Kind regards,
    Radoslav Georgiev
    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
  7. Isaac
    Isaac avatar
    63 posts
    Registered:
    01 Dec 2008
    07 Sep 2010
    Link to this post
    Radoslov,

    At the end of my post above I mention that line 267 is the start of the <telerik> section of the web.config file.  There are no rewrite rules specifically on that line.  The <urlrewrites> section begins on line 268.

    Please let me know if you need anything else.

    -Nathan
  8. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    08 Sep 2010
    Link to this post
    Hello Nathan,

    I am sorry I did not notice this. Can you check if the web.config file is correctly formatted? For example the <telerik> section missing its closing tag. It seems that there is some badly formatted XML.

    Kind regards,
    Radoslav Georgiev
    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
  9. Isaac
    Isaac avatar
    63 posts
    Registered:
    01 Dec 2008
    09 Sep 2010
    Link to this post
    Radoslav,

    I have taken a look at the formatting of our web.config file and it is correctly formatted.  I would think that an incorrectly formatted web.config file would render the site completely non-functional, while in the case the problem is intermittent.  Is there a way that I can e-mail you a copy of our full web.config file so you can take a look through it?

    -nathan
  10. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    14 Sep 2010
    Link to this post
    Hi Nathan,

    Thank you for getting back to me

    Could you please elaborate what are you using this rule for:
    <rule>
        <url>(/.+/$)</url>
        <rewrite>/404.aspx?aspxerrorpath=$0</rewrite>
    </rule>

    This rule captures all requests that end with a trailing slash for example:
    http://www.admissions.unl.edu/
    http://www.admissions.unl.edu/daily_visit/
    http://www.admissions.unl.edu/daily_visit/index.aspx/

    Other than that I cannot see any rules which would match the requests to the pages which throw your error.

    All the best,
    Radoslav Georgiev
    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
  11. Isaac
    Isaac avatar
    63 posts
    Registered:
    01 Dec 2008
    14 Sep 2010
    Link to this post
    Radoslov,

    The problem that we were having was that any URL that ended in a "/" (like the examples you gave) would result in a page saying "Bad Request" from the server.  Or some other undesirable behavior, I think it was "Bad Request".  We installed about a year ago so its a little unclear in my mind right now.  What that line does is it forwards any URLs ending in a "/" to our 404 page, which detects that the URL ends in a "/", appends an "index.aspx" and directs the user to the new page.

    -nathan
  12. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    17 Sep 2010
    Link to this post
    Hi Nathan,

    Thank you for getting back to me.

    The problem with the forward slash is an issue in the Sitefinity 3.6 versions. We have it resolved in later releases of the CMS. I saw that your website is running Sitefinity 3.6 SP1. Regarding the url rewriter we have had issues on your version when the urls had query string in the url to be rewritten or on post backs. I have been testing these url rewrites locally with a recorded web test on Sitefinity 3.7 SP3, however was not able to reproduce the issue.

    Can you please try to set up a latest version website locally and see if the errors will be thrown?

    Greetings,
    Radoslav Georgiev
    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
Register for webinar
12 posts, 0 answered