A2Zmenu Forum
»
Ask Question
»
SharePoint
»
Ribbon-Read has not been made available for this page or does not exist
Rank: Administration
Groups: Administrators
Joined: 3/10/2013(UTC) Posts: 4
|
Hi All, I am developing a custom WebPart and added custom WebPart in the page. It is working fine, but when I am trying to open same page in the SharePoint modal dialog, getting following exception: Exception: The Ribbon Tab with id: "Ribbon.Read" has not been made available for this page or does not exist. Use Ribbon.MakeTabAvailable(). 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: The Ribbon Tab with id: "Ribbon.Read" has not been made available for this page or does not exist. Use Ribbon.MakeTabAvailable(). 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: Code:
ArgumentException: The Ribbon Tab with id: "Ribbon.Read" has not been made available for this page or does not exist.
Use Ribbon.MakeTabAvailable().
Microsoft.Web.CommandUI.Ribbon.Render(HtmlTextWriter writer) +1474
Microsoft.SharePoint.WebControls.SPRibbon.Render(HtmlTextWriter writer) +316
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +240
System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +253
System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output) +87
System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer) +53
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +240
System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) +42
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +240
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +240
System.Web.UI.Page.Render(HtmlTextWriter writer) +38
Microsoft.SharePoint.WebPartPages.WikiEditPage.Render(HtmlTextWriter writer) +207
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4240
Please help, if anyone has any idea about it.
|
|
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 9/28/2013(UTC) Posts: 1  Location: Banglore
|
Hi Softhacker,
I guess, the page you are using for WebPart is not a WebPart page. Please create a WebPart page and add your custom WebPart and try to open in the SharePoint model dialog. It should work fine. Let me know if issue doesn't resolve.
|
|
|
|
Rank: Administration
Groups: Administrators
Joined: 3/10/2013(UTC) Posts: 4
|
Hi Rakesh, Thank you for quick reply. I used WebPart page it is working for me. Also I have read few blogs regarding same below code might also resolve this issue but I didn't tried that: Code:
Page currentPage = this.Page;
SPRibbon ribbon = SPRibbon.GetCurrent(this.Page);
SPContext context = SPContext.Current;
ribbon.MakeTabAvailable(SPRibbon.ReadTabId);
Thanks a lot for solution!!!
|
|
|
|
A2Zmenu Forum
»
Ask Question
»
SharePoint
»
Ribbon-Read has not been made available for this page or does not exist
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.