"Value does not fall within the expected range" Annmnt web part e



Hi,

In an announcement webpart,I need to hide the "Action" and "Status"
toolbar.Now I open the site in the sharepoint designer and see the XSLT of
the webpart which is embeded in my page and the I see the XSLT of those
toolbars..

<td class="ms-toolbar">|</td>
<td class="ms-toolbar" nowrap="">
<SharePoint:ActionsMenu runat="server"></SharePoint:ActionsMenu>
</td>
<td class="ms-toolbar">|</td>
<td class="ms-toolbar" nowrap=""
<SharePoint:SettingsMenu runat="server"></SharePoint:SettingsMenu>
</td>


I changed that to this:-

<td class="ms-toolbar">|</td>
<td class="ms-toolbar" nowrap="" style="visibility:hidden">
<SharePoint:ActionsMenu runat="server"></SharePoint:ActionsMenu>
</td>
<td class="ms-toolbar">|</td>
<td class="ms-toolbar" nowrap="" style="visibility:hidden">
<SharePoint:SettingsMenu runat="server"></SharePoint:SettingsMenu>
</td>
I also tried:-

<td class="ms-toolbar">|</td>
<td class="ms-toolbar" nowrap="">
<SharePoint:ActionsMenu runat="server"
Visible="false"></SharePoint:ActionsMenu>
</td>
<td class="ms-toolbar">|</td>
<td class="ms-toolbar" nowrap="" >
<SharePoint:SettingsMenu runat="server"
Visible="false"></SharePoint:SettingsMenu>
</td>


I also tried deleting the Settings and the Action Menu. Then I save the
page and browse the site and I always get the following error:-


--------------------------------------------------------------------------------


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.

Stack Trace:

[ArgumentException: Value does not fall within the expected range.]

Microsoft.SharePoint.Library.SPRequestInternalClass.GetFileAndMetaInfo(String
bstrUrl, Byte bPageView, Byte bPageMode, Byte bGetBuildDependencySet, String
bstrCurrentFolderUrl, Boolean& pbCanCustomizePages, Boolean&
pbCanPersonalizeWebParts, Boolean& pbCanAddDeleteWebParts, Boolean&
pbGhostedDocument, Boolean& pbDefaultToPersonal, String& pbstrSiteRoot, Guid&
pgSiteId, UInt32& pdwVersion, String& pbstrTimeLastModified, String&
pbstrContent, Byte& pVerGhostedSetupPath, UInt32& pdwPartCount, Object&
pvarMetaData, Object& pvarMultipleMeetingDoclibRootFolders, String&
pbstrRedirectUrl, Boolean& pbObjectIsList, Guid& pgListId, UInt32& pdwItemId,
Int64& pllListFlags, Boolean& pbAccessDenied, Guid& pgDocId, Byte& piLevel,
UInt64& ppermMask, Object& pvarBuildDependencySet, UInt32&
pdwNumBuildDependencies, Object& pvarBuildDependencies, String&
pbstrFolderUrl, String& pbstrContentTypeOrder) +0
Microsoft.SharePoint.Library.SPRequest.GetFileAndMetaInfo(String bstrUrl,
Byte bPageView, Byte bPageMode, Byte bGetBuildDependencySet, String
bstrCurrentFolderUrl, Boolean& pbCanCustomizePages, Boolean&
pbCanPersonalizeWebParts, Boolean& pbCanAddDeleteWebParts, Boolean&
pbGhostedDocument, Boolean& pbDefaultToPersonal, String& pbstrSiteRoot, Guid&
pgSiteId, UInt32& pdwVersion, String& pbstrTimeLastModified, String&
pbstrContent, Byte& pVerGhostedSetupPath, UInt32& pdwPartCount, Object&
pvarMetaData, Object& pvarMultipleMeetingDoclibRootFolders, String&
pbstrRedirectUrl, Boolean& pbObjectIsList, Guid& pgListId, UInt32& pdwItemId,
Int64& pllListFlags, Boolean& pbAccessDenied, Guid& pgDocId, Byte& piLevel,
UInt64& ppermMask, Object& pvarBuildDependencySet, UInt32&
pdwNumBuildDependencies, Object& pvarBuildDependencies, String&
pbstrFolderUrl, String& pbstrContentTypeOrder) +215
Microsoft.SharePoint.SPWeb.GetWebPartPageContent(Uri pageUrl, PageView
requestedView, HttpContext context, Boolean forRender, Boolean includeHidden,
Boolean mainFileRequest, Boolean fetchDependencyInformation, Boolean&
ghostedPage, Byte& verGhostedPage, String& siteRoot, Guid& siteId, Int64&
bytes, Guid& docId, UInt32& docVersion, String& timeLastModified, Byte&
level, Object& buildDependencySetData, UInt32& dependencyCount, Object&
buildDependencies, SPWebPartCollectionInitialState& initialState, Object&
oMultipleMeetingDoclibRootFolders, String& redirectUrl, Boolean&
ObjectIsList, Guid& listId) +1552

Microsoft.SharePoint.ApplicationRuntime.SPRequestModuleData.FetchWebPartPageInformationForInit(HttpContext
context, SPWeb spweb, Boolean mainFileRequest, String path, Boolean
impersonate, Boolean& fGhostedPage, Byte& verGhostedPage, Guid& docId,
UInt32& docVersion, String& timeLastModified, SPFileLevel& spLevel, String&
masterPageUrl, String& customMasterPageUrl, String& webUrl, String& siteUrl,
Guid& siteId, Object& buildDependencySetData,
SPWebPartCollectionInitialState& initialState, String& siteRoot, String&
redirectUrl, Object& oMultipleMeetingDoclibRootFolders, Boolean&
objectIsList, Guid& listId, Int64& bytes) +691

Microsoft.SharePoint.ApplicationRuntime.SPRequestModuleData.FetchWebPartPageInformation(HttpContext
context, String path, Boolean impersonate, Boolean& fGhostedPage, Byte&
verGhostedPage, Guid& docId, UInt32& docVersion, String& timeLastModified,
SPFileLevel& level, String& masterpageUrl, String& customMasterPageUrl,
String& webUrl, String& siteUrl, Guid& siteId, Object&
buildDependencySetData) +132

Microsoft.SharePoint.ApplicationRuntime.SPRequestModuleData.GetWebPartPageData(HttpContext context, String path, Boolean throwIfFileNotFound) +773
Microsoft.SharePoint.ApplicationRuntime.SPVirtualFile.GetFile(String
virtualPath, Boolean fetchContent) +78
Microsoft.SharePoint.ApplicationRuntime.SPVirtualFile.GetFile(String
virtualPath) +30

Microsoft.SharePoint.ApplicationRuntime.SPVirtualPathProvider.GetFile(String
virtualPath) +171
System.Web.Hosting.VirtualPathProvider.GetFile(String virtualPath) +18
System.Web.Hosting.VirtualPathProvider.GetFileWithCheck(String
virtualPath) +11
System.Web.FormatterWithFileInfo.GetSourceFileLines(String fileName,
Encoding encoding, String sourceCode, Int32 lineNumber) +229
System.Web.DynamicCompileErrorFormatter.get_MiscSectionContent() +926
System.Web.ErrorFormatter.GetHtmlErrorMessage(Boolean
dontShowSensitiveInfo) +818
System.Web.HttpResponse.WriteErrorMessage(Exception e, Boolean
dontShowSensitiveErrors) +645
System.Web.HttpResponse.ReportRuntimeError(Exception e, Boolean canThrow,
Boolean localExecute) +271
System.Web.HttpRuntime.FinishRequest(HttpWorkerRequest wr, HttpContext
context, Exception e) +338





--------------------------------------------------------------------------------

Version Information: Microsoft .NET Framework Version:2.0.50727.1433;
ASP.NET Version:2.0.50727.1433




Why am I getting the same error irrespective of whatever I do.It looks like
a general error not related to what I am trying to do here.Also,Is the way I
am trying to achieve this problem correct? If not please suggest.

Any help is appreciated.
Thanks a lot,
Ashish
.



Relevant Pages

  • Value does not fall within the expected range
    ... bGetBuildDependencySet, String bstrCurrentFolderUrl, Boolean& ... pbCanCustomizePages, Boolean& pbCanPersonalizeWebParts, Boolean& ... pbDefaultToPersonal, String& pbstrSiteRoot, Guid& pgSiteId, UInt32& ...
    (microsoft.public.sharepoint.portalserver)
  • Value does not fall within the expected range
    ... bGetBuildDependencySet, String bstrCurrentFolderUrl, Boolean& ... pbCanCustomizePages, Boolean& pbCanPersonalizeWebParts, Boolean& ... pbDefaultToPersonal, String& pbstrSiteRoot, Guid& pgSiteId, UInt32& ...
    (microsoft.public.sharepoint.windowsservices)
  • Connecting to Sharepoint Problem
    ... String bstrCurrentFolderUrl, Boolean& pbCanCustomizePages, Boolean& ... pVerGhostedSetupPath, UInt32& pdwPartCount, Object& pvarMetaData, ... pbstrRedirectUrl, Boolean& pbObjectIsList, Guid& pgListId, UInt32& ...
    (microsoft.public.biztalk.general)
  • Re: Connecting to Sharepoint Problem
    ... String bstrCurrentFolderUrl, Boolean& pbCanCustomizePages, Boolean& ... pVerGhostedSetupPath, UInt32& pdwPartCount, Object& pvarMetaData, ... pbstrRedirectUrl, Boolean& pbObjectIsList, Guid& pgListId, UInt32& ...
    (microsoft.public.biztalk.general)
  • RE: installation WSS 3.0
    ... <exception, Boolean breakConnection) ... <owningObject, SqlConnectionString connectionOptions, String newPassword, ... <newDatabaseId, String strDatabaseServer, String strDatabaseName, String ... <databaseServer, String databaseName, String databaseUsername, String ...
    (microsoft.public.windows.server.sbs)

Loading