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/6/2009 11:15 PM
 

I was able to successfully install the base Google sitemap provider without any problems, which seems to work properly including the appropriate pages.  I attempted to incorporate the ArticlesSiteMapProvider to bring in the Ventrian News Articles into the sitemap.  When I include the appropriate lines in the web.config I get the following error where I would expect to see the articles in the sitemap:  Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index

My web.config in the context of the provider is as follows:

 <configSections><section name="googlesitemaps" type="iFinity.DNN.Modules.GoogleSiteMap.GoogleSiteMapSection, iFinity.DNN.GoogleSiteMapProvider" />
  </configSections>

 <system.webserver><handlers>

<add name="SitemapHandler"  verb="*" path="SiteMap.axd" type="iFinity.DNN.Modules.GoogleSiteMap.GoogleSiteMapHandler, iFinity.DNN.GoogleSiteMapProvider" preCondition="integratedMode,runtimeVersionv2.0" />
    </handlers>

<system.web>

<httpHandlers><add verb="*" path="SiteMap.axd" type="iFinity.DNN.Modules.GoogleSiteMap.GoogleSiteMapHandler, iFinity.DNN.GoogleSiteMapProvider" />
    </httpHandlers>

</system.web>

  </dotnetnuke>
  <googlesitemaps defaultProvider="BaseGoogleSitemapProvider">
  <providers>
   <add name="BaseGoogleSiteMapProvider" type="iFinity.DNN.Modules.GoogleSiteMap.GoogleSiteMapProvider" defaultPagePriority="0.5" defaultPageUpdateFrequency="daily" includeHiddenPages="false"/>
   <!--
      GoogleSiteMap Provider Attributes
      name -> Matches the 'FriendlyName' of the module the provider is for
      type -> The fully qualified namespace.type of the Provider Class, then the AssemblyName (minus the .dll)
      defaultPagePriority -> value from 0 - 1 for the default page priority as seen in the output sitemap
      defaultPageUpdateFrequency -> daily, weekly etc - the default page update frequency as seen in the output sitemap
      includeHiddenPages -> whether or not to output 'hidden' pages into the sitemap. 
                            NOTE: If a module-specific provider is installed, and the matching module is
                            installed on a hidden page, the module-specific sitemap provider overrides the includeHiddenPages.
                            Ie, a Blog module is installed on a hidden page.  If 'includeHiddenPages'= false in the BaseGoogleSiteMapProvider entry, and the Blog GoogleSiteMap provider
                            is installed, whether or not the Blog module output is included in the Sitemap is determined by the 'View_Blog.GoogleSiteMapProvider' module's 'includeHiddenPages' attribute.
      includeDisabledPages -> whether or not to output 'disabled' pages (page settings->advanced settings->disable)
                            This settings works in the same way as the includeHiddenPages settings - it works at the
                            page-level for the base provider, and the module-specific provider level.  It allows the Url to be output
                            for a disabled page when includeDisabledPages="true".  The default value is false.
   useCachedSitemap    -> Whether to cache the sitemap output to a file in the portal directory, under sitemaps/  True/False, false if omitted
      sitemapCacheMinutes -> Length of time, in minutes, to cache the sitemap output for.  This is calculated from the file write time of the cached sitemap output file.
   useSitemapIndex     -> true/false.  Default/omitted=false.  When true, instead of outputting a sitemap, a sitemap index file is generated instead.  When true, sitemap caching is automatically used.
        Each individual sitemap will be requested with googlesitemap.axd?sitemap=n where n is the number of the sitemap.  See the instructions file for more detail.
      maxEntriesPerSitemap -> configurable value of the number of url entries allowed per sitemap.  If omitted, uses the standard 50,000 as per the sitemap schema.  Use a value lower than 50,000 to split a large
            sitemap up into a number of smaller sitemaps using the sitemapIndex.
      -->
   <!-- News Articles Sitemap Provider -->
   <add name="DnnForge - NewsArticles.GoogleSiteMapProvider" type="iFinity.DNN.Modules.GoogleSiteMap.ArticlesGoogleSiteMapProvider, iFinity.DNN.ArticlesSitemapProvider" defaultPagePriority="0.5" defaultPageUpdateFrequency="daily" includeHiddenPages="false"/>
   <!-- 
        News Articles Provider Attributes

        featuredOnly = "true" / "false" - When true, only featured articles are displayed in the SiteMap.  Default false;
        singlePagesOnly = "true" / "false" - When true, only the first page of articles are included in the Sitemap.  Default false
        maxNumArticles (integer value 1->upwards) - WHen specified, restricts the number of articles in the sitemap.  Articles are sorted by Start Date. Default unlimited.
        showHiddenAndExpired = "true" / "false" - Allows showing of hidden and expired articles -default false
        showCategories = "true" / "false" - Whether to put an entry for the pagename/Categories/ url in with each page with the Articles Module. Default false.
        -->
  </providers>
 </googlesitemaps>

Any help is appreciated.

Thanks.

Derek

 
New Post
5/7/2009 1:08 AM
 

Hi Derek

Are you able to post the stack trace for the exception you're getting?  Either from the generated sitemap, or perhaps it's in your dnn event log?  Alternatively, can you give me the url for the sitemap?

-Bruce

 
New Post
5/7/2009 4:12 PM
 

The sitemap can be found at:  http://www.derektrauger.com/sitemap.axd

Thanks in advance for the help.

Derek

 
New Post
5/7/2009 4:24 PM
 

As a side note, no event is logged in the event viewer.

Thanks again.

Derek

 
New Post
5/12/2009 4:09 PM
 

Any ideas regarding what could be causing this problem?

Thanks.

Derek

 
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.