2
Vote

Error: No childnodes

description

Rickard, I just downloaded the latest version (37499) but when I start the project from within VS I get the following errors:
 
"Microsoft JScript runtime error: Object expected"
 
and after that a home page without theme or css.
 
Then I login as admin and try to navigate to the Admin page an error occurs:
 
System.Exception was unhandled by user code
Message=No childnodes
Source=App_Web_mcrvekmr
StackTrace:
   at Administration_UIControls_AccordionMenu.DisplaySiteMapLevel() in c:\Projects\Pando\MWPSK\EPS content management\epscms37499\epscms\Administration\UIControls\AccordionMenu.ascx.cs:line 27
   at Administration_UIControls_AccordionMenu.Page_Load(Object sender, EventArgs e) in c:\Projects\Pando\MWPSK\EPS content management\epscms37499\epscms\Administration\UIControls\AccordionMenu.ascx.cs:line 16
   at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)
   at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
   at System.Web.UI.Control.OnLoad(EventArgs e)
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
InnerException:
 
Can you give me some tips?
 
Thanx, Geert

comments

rickardmagnusson wrote Feb 1, 2010 at 12:35 PM

Hi.
There's no childnodes in your sitemap. Check that your sitemap i created successfully when website initialize install. There should be at least administration nodes and a home node.

//Rickard

ldusit wrote Feb 3, 2010 at 6:24 AM

Hi Rickard,

How to add childnode? I download the latest, 37499, also, and have the same problem. This is my first download and use EPSCMS. After login, there will be 2 linked menus, Admin and Home. There is no menu to add node or child node. Or users have to change inside sitemap by themselves. Is there any problem if I upload to server?

Thanks in advance

ldusit wrote Feb 3, 2010 at 6:57 AM

Hi Rickard,

I want to give you more information. I checked file 'Web.sitemap' and the information as follows.

<?xml version="1.0" encoding="utf-8"?>
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0">
<siteMapNode>
<siteMapNode url="~/administration/" title="Admin">
  <siteMapNode url="~/administration/default.aspx" title="Maintenance">
    <siteMapNode url="~/administration/website.aspx" title="CMS Setup" />
    <siteMapNode url="~/administration/backup.aspx" title="Backup website" />
    <siteMapNode url="~/administration/emailtemplates.aspx" title="Email templates" />
    <siteMapNode url="~/administration/csseditor.aspx" title="Edit css" />
    <siteMapNode url="~/administration/customhtml.aspx" title="Custom html" />
    <siteMapNode url="~/administration/import.aspx" title="Import section" />
  </siteMapNode>
  <siteMapNode url="~/administration/sections.aspx" title="Sections Assignment" />
  <siteMapNode url="~/administration/navigation.aspx" title="Pages and Navigation" />
  <siteMapNode url="~/administration/usersroles#" title="Users and roles">
    <siteMapNode url="~/administration/users.aspx" title="User Management" />
    <siteMapNode url="~/administration/roles.aspx" title="Roles management" />
  </siteMapNode>
</siteMapNode>
<siteMapNode title="Home" url="~/" visible="True" hidden="False" pageId="4061f487-44da-4919-acff-1f668a51e494" lastmod="2/2/2553 13:47:31" linkedto="" />
</siteMapNode>
</siteMap>

As information above, I think, there is child node as default, Admin and Home. Why does the problem still happen?

ldusit wrote Feb 3, 2010 at 6:57 AM

Hi Rickard,

I want to give you more information. I checked file 'Web.sitemap' and the information as follows.

<?xml version="1.0" encoding="utf-8"?>
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0">
<siteMapNode>
<siteMapNode url="~/administration/" title="Admin">
  <siteMapNode url="~/administration/default.aspx" title="Maintenance">
    <siteMapNode url="~/administration/website.aspx" title="CMS Setup" />
    <siteMapNode url="~/administration/backup.aspx" title="Backup website" />
    <siteMapNode url="~/administration/emailtemplates.aspx" title="Email templates" />
    <siteMapNode url="~/administration/csseditor.aspx" title="Edit css" />
    <siteMapNode url="~/administration/customhtml.aspx" title="Custom html" />
    <siteMapNode url="~/administration/import.aspx" title="Import section" />
  </siteMapNode>
  <siteMapNode url="~/administration/sections.aspx" title="Sections Assignment" />
  <siteMapNode url="~/administration/navigation.aspx" title="Pages and Navigation" />
  <siteMapNode url="~/administration/usersroles#" title="Users and roles">
    <siteMapNode url="~/administration/users.aspx" title="User Management" />
    <siteMapNode url="~/administration/roles.aspx" title="Roles management" />
  </siteMapNode>
</siteMapNode>
<siteMapNode title="Home" url="~/" visible="True" hidden="False" pageId="4061f487-44da-4919-acff-1f668a51e494" lastmod="2/2/2553 13:47:31" linkedto="" />
</siteMapNode>
</siteMap>

As information above, I think, there is child node as default, Admin and Home. Why does the problem still happen?

wrote Feb 3, 2010 at 1:30 PM

gvraaij wrote Feb 6, 2010 at 7:20 PM

Rickard,

I don't know, but in the example site map from Idusit there are also administration nodes and a home node.
And this is exactly what I get when starting from an empty App_Data folder.

The problem remains in the Administration\UIControls\AccordionMenu.ascx.cs at line: SiteMapNode node = SiteMap.Provider.FindSiteMapNode("/administration/");
When I change this line of code with an extra ~ like: SiteMapNode node = SiteMap.Provider.FindSiteMapNode("~/administration/"); the website starts, but I don't have any themes, css etc.

Any guess?

greetz Geert

ldusit wrote Feb 8, 2010 at 12:23 AM

Thanks.

I will try to do. I have no experience in ASP.NET, so, I don't know how to solve it.

wrote Feb 13, 2013 at 6:52 PM