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

Forums / Bugs & Issues / Newsletter Module - Index was out of range

Newsletter Module - Index was out of range

9 posts, 0 answered
  1. Nigel
    Nigel avatar
    49 posts
    Registered:
    07 Jul 2008
    08 Feb 2010
    Link to this post
    Hi, I have two websites under development that are getting this error in the Newsletter module under 3.7. The first one did have some custom code using newsletters so I thought it was related to this however I now have a fresh site, that does not use the newsletter module in any way and this error is occuring. The database is hosted with SQL 2008 Standard, and this error is occurring in Sitefinity 3.7 Community.

    I create or view a subscriber group and I get the following error. I believe it is from the list subscribers page as this would be the page the create goes to after creation, and the group is being created:

    Index was out of range. Must be non-negative and less than the size of the collection.
    Parameter name: index

    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: Index was out of range. Must be non-negative and less than the size of the collection.
    Parameter name: index

    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: Index was out of range. Must be non-negative and less than the size of the collection.
    Parameter name: index]
       System.ThrowHelper.ThrowArgumentOutOfRangeException() +78
       System.Collections.Generic.List`1.get_Item(Int32 index) +53
       Telerik.Notifications.Newsletters.WebControl.SubscriberList.CreateChildControls() +5195
       System.Web.UI.Control.EnsureChildControls() +146
       System.Web.UI.Control.PreRenderRecursiveInternal() +61
       System.Web.UI.Control.PreRenderRecursiveInternal() +224
       System.Web.UI.Control.PreRenderRecursiveInternal() +224
       System.Web.UI.Control.PreRenderRecursiveInternal() +224
       System.Web.UI.Control.PreRenderRecursiveInternal() +224
       System.Web.UI.Control.PreRenderRecursiveInternal() +224
       System.Web.UI.Control.PreRenderRecursiveInternal() +224
       System.Web.UI.Control.PreRenderRecursiveInternal() +224
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3394
    
  2. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    08 Feb 2010
    Link to this post
    Hi Nigel,

    Thank you for using our services.

    When you are trying this on a blank project, are you connecting to the same database as project you initially got the error is connected to? If so it is possible that something might have happened to the tables for holding subscribers and groups, and subscribers in groups. Could you please check if all subscribers in the sf_Notif_GroupSubscriber table exist in the sf_Notif_Subscriber table.

    I have tested this both in Sitefinity 3.7 Standard and Community edition and was unable to reproduce this with the standard setup and templates.

    Best wishes,
    Radoslav Georgiev
    the Telerik team

    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
    Follow the status of features or bugs in PITS and vote for them to affect their priority.
  3. Nigel
    Nigel avatar
    49 posts
    Registered:
    07 Jul 2008
    09 Feb 2010
    Link to this post
    Hi, thanks for your reply, all websites that I produce are based on the "Empty site" template

    I have checked these tables for both the websites that I am experiencing the problem on and both have the sf_Notif_GroupSubscriber and the sf_Notif_Subscriber tables and the subscriber that is in GroupSubscriber also apears in the Subscriber table.

    In the case of the second website there are no subscribers as I can not add subscribers through the subscriber list as this index out of range error occurs. This error has occured both on my development machine, and when deployed to the live server.
  4. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    09 Feb 2010
    Link to this post
    Hello Nigel,

    Thank you for getting back to us.

    We have tried to reproduce this error, however to no avail. This can not be reproduced with a blank set up to a blank database. As I asked you before do you connect the new projects to the same database you have first experienced the error? If possible could you please send us a project with db where we can reproduce this issue?

    Greetings,
    Radoslav Georgiev
    the Telerik team

    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
    Follow the status of features or bugs in PITS and vote for them to affect their priority.
  5. Nigel
    Nigel avatar
    49 posts
    Registered:
    07 Jul 2008
    09 Feb 2010
    Link to this post
    Hi, thankyou for your patience. I have been able to reproduce the problem in a fresh, completely empty project by doing the following:

    Creating a new Database
    Creating a new Blank project
    Updating the Telerik.Web.UI to 2009.3.1103.35
    Attempt to view subscribed in Demo group = Crash

    So it is something to do with the Telerik web controls.

    I have not attached the project as the zip is larger than the max 2 MB, and in theory you should be able to reproduce this using the above steps
  6. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    10 Feb 2010
    Link to this post
    Hi Nigel,

    We are not able to reproduce this problem. You can also give a try to our demo website - http://demo.sitefinity.com/ and try to reproduce it there.

    Sincerely yours,
    Ivan Dimitrov
    the Telerik team

    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
    Follow the status of features or bugs in PITS and vote for them to affect their priority.
  7. Nigel
    Nigel avatar
    49 posts
    Registered:
    07 Jul 2008
    10 Feb 2010
    Link to this post
    Not supprising, I am unable to reproduce the problem on the demo site (but I can't confirm what version of Web.UI the demo is using either)

    To allow you to reproduce this problem I have uploaded the file to my website and this can be downloaded from

    http://www.ic-solutions.com.au/newsletterbug.rar
    http://www.ic-solutions.com.au/newsletterbugdb.rar
  8. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    12 Feb 2010
    Link to this post
    Hello Nigel,

    The problem arises, because you have upgraded Teleirk.Web.UI.dll, but the Newsletters "expects" different version. You could upgrade your project to SP2 which includes Telerik.Web.UI 2009.3.1103.35

    Sincerely yours,
    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.
  9. Nigel
    Nigel avatar
    49 posts
    Registered:
    07 Jul 2008
    15 Feb 2010
    Link to this post
    Ok, thanks, will download sp2.

    I said in 3 posts ago that the problem occured when upgrading the web.ui package :)

    Thanks again for you your
    Nigel
Register for webinar
9 posts, 0 answered