Products » Support Forums 

Support Forums

HomeHomeDotNetNuke Modu...DotNetNuke Modu...Google Sitemap ...Google Sitemap ...The type initializer for The type initializer for 'iFinity.DNN.Modules.Tagger.Data.DataProvider' threw an exception.
Previous
 
Next
New Post
7/28/2009 12:50 PM
 

i need to implement the custom ifinity sitemap provider ..

i am following the instruction from ifinity ..

i got this error while implementing "The type initializer for 'iFinity.DNN.Modules.Tagger.Data.DataProvider' threw an exception."  inner Exception is "Value cannot be null.\r\nParameter name: type"

the error line

 

 

new TaggerController();TagInfoCol tags = tc.GetTagsForPortal(portalAlias.PortalID, _options, _maxNumTags); where paasing potalid=0,_option=iFinity.DNN.Modules.Tagger.TaggerController.TagCloudGetOptions.GetMostPopular,_maxNumTags=0

 

 

Please tell me the solution

 

 

 
New Post
7/28/2009 3:04 PM
 

If you don't have the Tagger module installed, then don't include the Tagger entry in your list of sitemap providers.  The error is most likley because it's looking for the Tagger module and can't find it.

 
New Post
7/28/2009 5:18 PM
 

Thanks for your quick response...But still i got the same error

stact trace ="   at iFinity.DNN.Modules.Tagger.Data.DataProvider.Instance()\r\n   at iFinity.DNN.Modules.Tagger.TaggerController.GetTagsForPortal(Int32 portalId, TagCloudGetOptions tagOptions, Int32 numTags)\r\n   at TestSiteMapProvider.TestGoogleSiteMapProvider.GetTagListUrls(ModuleInfo mod, TabInfo tab, PortalAliasInfo portalAlias) in D:\\SampleSiteMapProvider\\TestGoogleSiteMapProvider.cs:line 102\r\n   at TestSiteMapProvider.TestGoogleSiteMapProvider.GetSitePagesForTagList(PortalAliasInfo portalAlias, TabInfo tab) in D:\\SampleSiteMapProvider\\TestGoogleSiteMapProvider.cs:line 81\r\n   at TestSiteMapProvider.TestGoogleSiteMapProvider.SitePagesForTab(PortalAliasInfo portalAlias, TabInfo tab) in D:\\SampleSiteMapProvider\\TestGoogleSiteMapProvider.cs:line 37\r\n   at iFinity.DNN.Modules.GoogleSiteMap.GoogleSiteMapProvider.GetModuleSpecificPages(PortalAliasInfo portalAlias, TabInfo ti, Locale locale, GoogleSiteMapProviderCollection providers, Int32 sitemapNum, Int32 urlCount, Int32 startingCount, Int32 endingCount)\r\n   at iFinity.DNN.Modules.GoogleSiteMap.GoogleSiteMapProvider.GetSitePages(Int32 sitemapNum, Int32 startingIndex, Int32 endingIndex)\r\n   at iFinity.DNN.Modules.GoogleSiteMap.GoogleSiteMapProvider.WriteSitemapPages(XmlTextWriter writer, Int32 sitemapNum)"

I am not included the Tagger module and providers.

Please help me

 
New Post
7/29/2009 1:05 AM
 

OK, well it looks like you've probably copied the Tagger sitemap provider to make your own, but have forgotten to take out the references to the Tagger module.  There's no .TestGoogleSiteMapProvider source code in the standard providers.  Just check out your sitemap provider and remove all the references to the Tagger module.

 
New Post
7/29/2009 4:38 PM
 

thank you for your response ....but still have same problem ..i have used the taggoogleprovider not custom module and got the same problem

when used "Tag List" as one module definition..

please look this code

 

 switch (modDefFriendlyName.ToLower())
                    {
                        case "tag list":
                            siteUrls.AddRange(GetTagListUrls(mod, tab, portalAlias));
                            break;
                    }

if modDefFriendlyName is "tag list" then only go to the GetTagListUrls() method

and inside this method have these error lines

"List<SitePage> tagListUrls = new List<SitePage>();  //initalise new value           
            //first get the list of tags in the portal
            TaggerController tc = new TaggerController();
            TagInfoCol tags = tc.GetTagsForPortal(portalAlias.PortalID, _options, _maxNumTags);
          
"

 

please check this one and give me a solution
          

 
Previous
 
Next
HomeHomeDotNetNuke Modu...DotNetNuke Modu...Google Sitemap ...Google Sitemap ...The type initializer for The type initializer for 'iFinity.DNN.Modules.Tagger.Data.DataProvider' threw an exception.


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.