2014-03-18 91 views
2

嗨, 我無法檢測到此錯誤。我檢查了web.config文件,沒有sitemap標籤。我應該在哪裏尋找這個。有人能指出我在正確的方向網站地圖提供程序錯誤

The SiteMapProvider 'SamplesSiteMap' cannot be found. 
    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.Web.HttpException: The SiteMapProvider 'SamplesSiteMap' cannot be found. 

Source Error: 


An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. 

Stack Trace: 



[HttpException (0x80004005): The SiteMapProvider 'SamplesSiteMap' cannot be found.] 
    System.Web.UI.WebControls.SiteMapDataSource.get_Provider() +1213908 
    System.Web.UI.WebControls.SiteMapDataSource.GetView(String viewName) +17 
    System.Web.UI.WebControls.SiteMapDataSource.System.Web.UI.IDataSource.GetView(String viewName) +10 
    System.Web.UI.WebControls.Repeater.ConnectToDataSourceView() +253 
    System.Web.UI.WebControls.Repeater.OnLoad(EventArgs e) +19 
    System.Web.UI.Control.LoadRecursive() +50 
    System.Web.UI.Control.LoadRecursive() +141 
    System.Web.UI.Control.LoadRecursive() +141 
    System.Web.UI.Control.LoadRecursive() +141 
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627 

回答

1

樣品

<system.web> 
    <!-- SiteMap ConfigurationSettings --> 
    <siteMap enabled="true" defaultProvider="MenuSiteMap"> 
     <providers> 
     <add name="MenuSiteMap" type="System.Web.XmlSiteMapProvider" siteMapFile="~/Menu.sitemap" securityTrimmingEnabled="true" /> 
     </providers> 
    </siteMap> 

</system.web> 
+0

的JavaScript運行時錯誤:AjaxControlToolkit需要ASP.NET AJAX 4.0的腳本。確保引用了正確版本的腳本。如果您使用的是ASP.NET ScriptManager,請切換到AjaxControlToolkit.dll中的ToolkitScriptManager。這個錯誤是什麼意思?你能幫我嗎? – user3429723