KNOWLEDGE BASE

Fixing Error "ADDING TO SITEMAPPROVIDER IN LOAD NODES()"


In Umbraco 4.9, we found our Sql database increasing in size rapidly.

We got an error stating -

"Error adding to SiteMapProvider in loadNodes(): System.Web.HttpException (0x80004005): 'http://mydomain.net/' is not a valid virtual path. at System.Web.Util.UrlPath.CheckValidVirtualPath(String path) at System.Web.Util.UrlPath.Combine(String appPath, String basepath, String relative) at System.Web.StaticSiteMapProvider.AddNode(SiteMapNode node, SiteMapNode parentNode) at umbraco.presentation.nodeFactory.UmbracoSiteMapProvider.loadNodes(String parentId, SiteMapNode parentNode)"

We solved this by removing the sitemap configuration section from the web.config

<siteMap defaultProvider="UmbracoSiteMapProvider" enabled="true">

<providers>

<clear />

<add name="UmbracoSiteMapProvider" type="umbraco.presentation.nodeFactory.UmbracoSiteMapProvider" defaultDescriptionAlias="description" securityTrimmingEnabled="true" />

</providers>

</siteMap>
We also deleted all the old log files to free up the data taken over by the error


Need an Umbraco Master?

Here at Simon Antony, we have an in house certified Umbraco Grand Master available for hire. Got a problem with your site, need architecture advice, give us a call to speak to Simon directly and see how we can help

Contact Simon Today!