System.ArgumentException: Value does not fall within the expected range

Feb 18, 2009 at 6:07 AM
Hi All,

I am getting the fallowing exception when try to create new site.

Value does not fall within the expected range.

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.ArgumentException: Value does not fall within the expected range.

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.


With the Stack trace

Stack Trace:

[ArgumentException: Value does not fall within the expected range.]
   Microsoft.SharePoint.SPListCollection.GetListByName(String strListName, Boolean bThrowException) +264
   Microsoft.SharePoint.SPListCollection.get_Item(String strListName) +39
   PKS.Sharepoint.Navigation.<>c__DisplayClass2.<BuildSiteMap>b__1() +152
   Microsoft.SharePoint.SPSecurity.CodeToRunElevatedWrapper(Object state) +70
   Microsoft.SharePoint.<>c__DisplayClass4.<RunWithElevatedPrivileges>b__2() +392
   Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated secureCode) +152
   Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(WaitCallback secureCode, Object param) +345
   Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(CodeToRunElevated secureCode) +86
   PKS.Sharepoint.Navigation.SPLeftNavigationProvider.BuildSiteMap() +264
   PKS.Sharepoint.Navigation.SPLeftNavigationProvider.GetRootNodeCore() +37
   System.Web.SiteMapProvider.get_RootNode() +15
   System.Web.UI.WebControls.SiteMapDataSource.GetNodes() +229
   System.Web.UI.WebControls.SiteMapDataSource.GetTreeView(String viewPath) +35
   System.Web.UI.WebControls.SiteMapDataSource.GetHierarchicalView(String viewPath) +32
   System.Web.UI.HierarchicalDataSourceControl.System.Web.UI.IHierarchicalDataSource.GetHierarchicalView(String viewPath) +10
   System.Web.UI.WebControls.HierarchicalDataBoundControl.GetData(String viewPath) +25
   System.Web.UI.WebControls.Menu.DataBindItem(MenuItem item) +56
   System.Web.UI.WebControls.Menu.PerformDataBinding() +50
   System.Web.UI.WebControls.HierarchicalDataBoundControl.PerformSelect() +85
   System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +73
   System.Web.UI.WebControls.Menu.DataBind() +4
   System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +82
   System.Web.UI.WebControls.Menu.EnsureDataBound() +40
   System.Web.UI.WebControls.BaseDataBoundControl.OnPreRender(EventArgs e) +22
   System.Web.UI.WebControls.Menu.OnPreRender(EventArgs e, Boolean registerScript) +15
   System.Web.UI.WebControls.Menu.OnPreRender(EventArgs e) +25
   Microsoft.SharePoint.WebControls.AspMenu.OnPreRender(EventArgs e) +142
   System.Web.UI.Control.PreRenderRecursiveInternal() +80
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   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) +842


Can any one have any idea?