PDA

View Full Version : حرفه ای: منظور از این ارور چیست؟



sam166
شنبه 25 مهر 1388, 20:46 عصر
من یک پروژه asp.net دارم می نویسم به این ارور برخوردم و نمی تونم حلش کنم
با تشکر
لطفا مشکل بنده را حل کنید.

Server Error in '/WebSite10' 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.BuildSiteMap() +1307
System.Web.StaticSiteMapProvider.FindSiteMapNode(S tring rawUrl) +130
System.Web.XmlSiteMapProvider.FindSiteMapNode(Stri ng rawUrl) +86
System.Web.SiteMapProvider.FindSiteMapNode(HttpCon text context) +106
System.Web.SiteMapProvider.get_CurrentNode() +61
System.Web.SiteMapProvider.GetCurrentNodeAndHintAn cestorNodes(Int32 upLevel) +75
System.Web.UI.WebControls.SiteMapPath.CreateContro lHierarchy() +91
System.Web.UI.WebControls.SiteMapPath.CreateChildC ontrols() +46
System.Web.UI.Control.EnsureChildControls() +134
System.Web.UI.Control.PreRenderRecursiveInternal() +109
System.Web.UI.Control.PreRenderRecursiveInternal() +233
System.Web.UI.Control.PreRenderRecursiveInternal() +233
System.Web.UI.Control.PreRenderRecursiveInternal() +233
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5846
System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +188
System.Web.UI.Page.ProcessRequest() +112
System.Web.UI.Page.ProcessRequestWithNoAssert(Http Context context) +37
System.Web.UI.Page.ProcessRequest(HttpContext context) +135
ASP.main_aspx.ProcessRequest(HttpContext context) +30
System.Web.CallHandlerExecutionStep.System.Web.Htt pApplication.IExecutionStep.Execute() +401
System.Web.HttpApplication.ExecuteStep(IExecutionS tep step, Boolean& completedSynchronously) +117




--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42

mmnoody2006
شنبه 25 مهر 1388, 23:40 عصر
سایت مپ وبت مشکل داره

eyes_shut_number1
یک شنبه 26 مهر 1388, 00:48 صبح
ترتیب المنتهای پدر/فرزند در فایل xml مهمه
و این که نباید تگی به غیر از <siteMapNode> داشته باشی
فایلت رو چک کنن اگه این مشکلات رو داره درست کن

sam166
یک شنبه 26 مهر 1388, 10:37 صبح
این سایت مپی هست که درست کردم




<?xml version="1.0" encoding="utf-8" ?>
<siteMap>
<sitemapnode url="main.aspx"
title="windows mobile home"
description="windows mobile home" roles="">
<sitemapnode url="whatiswinmobile.aspx"
title="windows mobile overview"
roles=""/>
<sitemapnode url="comparedevices.aspx"
title="compare devices"
description="compare devices" roles=""/>
<sitemapnode url="software.aspx"
title="software features tour"
description="software features tour"
roles=""/>
<sitemapnode url="faq.aspx"
title="faq asked"
description="faq asked"
roles=""/>
</sitemapnode>

<sitemapnode>
<sitemapnode url="device.aspx"
title="device"
description="device"
roles=""/>
<sitemapnode url="download.aspx"
title="download"
description="downloasd"
roles=""/>
<sitemapnode url="howto.aspx"
title="help and how to"
description="help and how to"
roles=""/>
<sitemapnode url="communities.aspx"
title="communities"
description="communities"
roles=""/>
<sitemapnode url="event.aspx"
title="event"
description="envent"
roles=""/>
<sitemapnode url="administrator/admin.aspx"
title="administrator"
description="administrator"
roles=""/>
</sitemapnode>



</siteMap>

eyes_shut_number1
یک شنبه 26 مهر 1388, 13:01 عصر
داخل تگ کد [code ] [/ code]بذار که بشه درست دیدش