Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesCustom Sql SiteMapProviderCustom Sql SiteMapProvider
Previous
 
Next
New Post
9/28/2010 3:07 PM
 
I created a Sql Sitemap provider on my dev DNN instance in 05.01.04 for use in a TreeView control I use in a module I created. Everything works great on my dev instance.

Then on prod I added the custom sql sitemap to the web.config file, added the customsqlsitemap.vb file into the directory of the module I added, but DNN will not recognize the customsqlsitemap.
ERROR:
DotNetNuke.Services.Exceptions.PageLoadException: The SiteMapProvider 'CustomSqlSiteMapProvider' cannot be found. ---> System.Web.HttpException: The SiteMapProvider 'CustomSqlSiteMapProvider' cannot be found. at System.Web.UI.WebControls.SiteMapDataSource.get_Provider() at System.Web.UI.WebControls.SiteMapDataSource.GetHierarchicalView(String viewPath) at System.Web.UI.HierarchicalDataSourceControl.System.Web.UI.IHierarchicalDataSource.GetHierarchicalView(String viewPath) at System.Web.UI.WebControls.HierarchicalDataBoundControl.GetData(String viewPath) at System.Web.UI.WebControls.TreeView.DataBindNode(TreeNode node) at System.Web.UI.WebControls.TreeView.PerformDataBinding() at System.Web.UI.WebControls.HierarchicalDataBoundControl.PerformSelect() at System.Web.UI.WebControls.BaseDataBoundControl.DataBind() at System.Web.UI.WebControls.TreeView.DataBind() at System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() at System.Web.UI.WebControls.BaseDataBoundControl.OnPreRender(EventArgs e) at System.Web.UI.WebControls.TreeView.OnPreRender(EventArgs e) at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace ---

What am I missing?????

<siteMap defaultProvider="CustomSqlSiteMapProvider" enabled="true">
            <providers>
                <clear/>              
                <add name="CustomSqlSiteMapProvider" type="CustomSqlSiteMapProvider" connectionStringName="MySQLConnection"/>
            </providers>
        </siteMap>
 
New Post
9/28/2010 3:43 PM
 
did you copy over the provider dll as well?

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
9/28/2010 4:28 PM
 
Thank you for your quick reply! I may be lost or confused or both. When I created the custom sql sitemap provider in dev, I did not create it within it's own solution/compile it into a dll. I simply created a class for the provider and placed it within the module folder (that's using the provider) within the app_code folder. Where am I going wrong here? Does this method not work within DNN? From looking at the MSDN article(http://msdn.microsoft.com/en-us/library/44w5aswa.aspx) I am not sure what I am missing.
Thanks!
 
New Post
9/29/2010 12:46 PM
 
I removed the sitemapprovicer class from the app_code directory, then built a class library and built the dll. I then added the dll to my DNN site on dev and was successful (5.01.04). Then I moved the dll over to production (5.01.05) and it still says the sitemapprovider cannot be found.  Ideas? I am thinking this is an issue with version 5.01.05 and am about to roll back to version 5.01.04 to see if it works in that build.

Error received:

Could not load provider CustomSqlSiteMapProvider


ComponentFactory.InstallComponents(New ProviderInstaller("sitemap", GetType(DotNetNuke.Services.Sitemap.SitemapProvider))) 
 
New Post
9/29/2010 1:26 PM
 
Alright, I figured out my issue and of course it was user error :)
I added the custom sql sitemap provider into the wrong area of the web.config file. I put it in the <dotnetnuke><sitemap> section instead of under the <web><sitemap> section.  D'oh!
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesCustom Sql SiteMapProviderCustom Sql SiteMapProvider


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out