Products » Support Forums 

Support Forums

HomeHomeDotNetNuke Modu...DotNetNuke Modu...Google Sitemap ...Google Sitemap ...Index Out of Range Error in SiteMap Using ArticleSiteMapProviderIndex Out of Range Error in SiteMap Using ArticleSiteMapProvider
Previous
 
Next
New Post
5/14/2009 8:42 AM
 

Hi Derek - sorry about the delay, I thought I had answered your question.  I took a look at this last week - I can't work out what the problem is, and seeing as you have no exception details, it's a bit of a stab in the dark.   Did you have a prior version of the sitemap provider working with your articles, and it stopped working with the latest release, or was this your first attempt at it?

I may have to build a new version with better exception handling to find out where in the code the problem lies.

 
New Post
5/14/2009 10:47 PM
 

This was my first attempt using your product.  I believe I am using the latest version of your product with the latest version of the Ventrian News Articles product.

Thanks for your help.

Derek

 
New Post
5/19/2009 3:07 AM
 

Derek - I'll have to try and solve this problem by building some extra debug information into the code, so that I can try and ascertain where the issue is.   Please be patient and I will release a new minor version with this next time I am working on the sitemap code.

 
New Post
1/28/2010 11:58 PM
 

Bruce-

I too experienced this issue with a copy of the ArticleSiteMapProvider, and after downloading the source and doing some debugging I can tell you where my problem came from.  If you have deleted Ventrian News modules in your recycle bin, the GetLatestnewsArticles function in ArticlesGoogleSiteMapProvider.cs throws an exception of the mentioned type when it tries to work with the settings hashtable for the module, which has 0 entries in it (the actual error occurs at line 248 where the code attempts to access categories[0], which is empty due to the empty hashtable.

Once I emptied my recycle bin of the news modules, the error disappeared.  Is this behavior by design?

Thanks

Pete Saunders

 
New Post
1/29/2010 3:30 AM
 

Thanks Pete

I do have an updated version of the module that a couple of people were testing for me.  I hadn't picked up why the settings were coming back invalid, I just inserted a test to check the hashtable to see if it was valid before checking it.

I'm working from memory here, but I think the code manually retrieves the module settings and goes through them.  If you have a module in the recycle bin, then I'm guessing the module settings still exist but refer to an invalid module.  I doubt I would have included a check to see if the 'IsDeleted' flag was set before reading the module settings. Wild speculation, but it's probably along those lines somewhere.

 
Previous
 
Next
HomeHomeDotNetNuke Modu...DotNetNuke Modu...Google Sitemap ...Google Sitemap ...Index Out of Range Error in SiteMap Using ArticleSiteMapProviderIndex Out of Range Error in SiteMap Using ArticleSiteMapProvider


Support Guidelines.. Please read before posting

To get support on iFinity products and services, please search the forums for the the answer to the problem you are seeking. If you cannot find a solution, post a question in the relevant forum.   Ensure that you specify the relevant versions of the problem, and the actual error message or a detailed description of the problem.    You will need to register with this site to post on the forum.  If you have a Microsoft Live (Hotmail/Passport) account you can use that.  If you have a Open Id account you can use that.  If you neither of these, you will need to register a user Id and password.