Could you post a snippet of your web.config. It seems that you have placed a wrong element under the wrong section. Vikram DiscountASP.NET www.DiscountASP.NET
i'm trying to use a tree menu to display the links for my site with the web.sitemap file but i get this error no clue on what it means. *ERROR CODE* Server Error in '/Web' Application. -------------------------------------------------------------------------------- Only <siteMapNode> elements are allowed at this location. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Configuration.ConfigurationErrorsException: Only <siteMapNode> elements are allowed at this location. Source Error: The source code that generated this unhandled exception can only be shown when compiled in debug mode. To enable this, please follow one of the below steps, then request the URL: 1. Add a 'Debug=true' directive at the top of the file that generated the error. Example: <%@ Page Language='C#' Debug='true' %> or: 2) Add the following section to the configuration file of your application: <configuration> <system.web> <compilation debug='true'/> </system.web> </configuration> Note that this second technique will cause all files within a given application to be compiled in debug mode. The first technique will cause only that particular file to be compiled in debug mode. Important: Running applications in debug mode does incur a memory/performance overhead. You should make sure that an application has debugging disabled before deploying into production scenario. Stack Trace: [ConfigurationErrorsException: Only <siteMapNode> elements are allowed at this location.] System.Web.XmlSiteMapProvider.ConvertFromXmlNode(Queue queue) +383 System.Web.XmlSiteMapProvider.BuildSiteMap() +1148 System.Web.XmlSiteMapProvider.get_RootNode() +12 System.Web.UI.WebControls.SiteMapDataSource.GetNodes() +220 System.Web.UI.WebControls.SiteMapDataSource.GetTreeView(String viewPath) +33 System.Web.UI.WebControls.SiteMapDataSource.GetHierarchicalView(String viewPath) +27 System.Web.UI.HierarchicalDataSourceControl.System.Web.UI.IHierarchicalDataSource.GetHierarchicalView(String viewPath) +7 System.Web.UI.WebControls.HierarchicalDataBoundControl.GetData(String viewPath) +22 System.Web.UI.WebControls.Menu.DataBindItem(MenuItem item) +43 System.Web.UI.WebControls.Menu.PerformDataBinding() +107 System.Web.UI.WebControls.HierarchicalDataBoundControl.PerformSelect() +72 System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +68 System.Web.UI.WebControls.Menu.DataBind() +4 System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +61 System.Web.UI.WebControls.Menu.EnsureDataBound() +29 System.Web.UI.WebControls.Menu.OnPreRender(EventArgs e, Boolean registerScript) +21 System.Web.UI.WebControls.Menu.OnPreRender(EventArgs e) +24 System.Web.UI.Control.PreRenderRecursiveInternal() +88 System.Web.UI.Control.PreRenderRecursiveInternal() +171 System.Web.UI.Control.PreRenderRecursiveInternal() +171 System.Web.UI.Control.PreRenderRecursiveInternal() +171 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +7942 System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +158 System.Web.UI.Page.ProcessRequest() +85 System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +20 System.Web.UI.Page.ProcessRequest(HttpContext context) +110 ASP.default_aspx.ProcessRequest(HttpContext context) +29 System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +317 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +65 -------------------------------------------------------------------------------- Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.210 *WEB.SITEMAP* this is just the layout i have all the pages that i put in here already done and saved. <siteMap xmlns='http://schemas.microsoft.com/AspNet/SiteMap-File-1.0' > <siteMapNode > <siteMapNode /> <siteMapNode /> <siteMapNode > <siteMapNode /> <siteMapNode /> <siteMapNode > <siteMapNode /> <siteMapNode /> <siteMapNode /> </siteMapNode> </siteMapNode> <siteMapNode /> <sireMapNode /> </siteMapNode> </siteMap> Post Edited (jessethebean) : 2/19/2007 8:04:20 AM GMT
yep that was it. thanks alot. i thought there was some spell and code checking thats why i never really looked at a miss type. o well. thanks again
You mispelled siteMapNode (sireMapNode) on the third to last line. Aristotle DiscountASP.NET www.DiscountASP.NET