GalleryView on ApplicationPage
-
Thursday, December 30, 2010 12:58 PM
Hi,
unfortunately I am unable to implement the Gallery View (e.g. carousel or theater) User Control on my Appllication Page which is loacates in the _layouts directory (<servername>/_layouts/myapp/ppTest.apsx). The WebPart which displays all elements of my PowerPivot catalog works fine though.
I have tried to copy code from the Carousel.aspx page but it did not work out
<%@ Register TagPrefix="gemuc" TagName="ReportGalleryView" Src="~/_layouts/PowerPivot/ReportGalleryView.ascx" %> <asp:Content ID="Content7" ContentPlaceHolderId="PlaceHolderMain" runat="server"> <gemuc:ReportGalleryView runat="server" ID="RGView" ViewMode="carousel"/> </asp:Content>
maybe someone can give me ahint how to implemet the siverlight carosuel view on an apllication page...
All Replies
-
Monday, January 03, 2011 9:09 AMModerator
Hi spikxs,
Is the ReportGalleryView marked as SafeControl in the SharePoint site? Could you please check if the following article is helpful?
http://powerpivotgeek.com/2010/06/17/modifying-the-sharepoint-v4-master-page-for-the-powerpivot-gallery/Also, could you please help to collect the SharePoint error logs? It may be helpful to solve the issue.
Thanks,
Jin Chen
Jin Chen - MSFT -
Monday, January 03, 2011 2:53 PM
Hi,
thanks a lot for the provided link, the ReportGalleryView was not marked as SafeControl but the sadly the View won't display, I get the following error:
Object reference not set to an instance of an object. 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.NullReferenceException: Object reference not set to an instance of an object. Stack Trace: [NullReferenceException: Object reference not set to an instance of an object.] Microsoft.AnalysisServices.SharePoint.Integration.ReportGalleryView.ExtractSharepointInfo() +45 Microsoft.AnalysisServices.SharePoint.Integration.ReportGalleryView.Page_Load(Object sender, EventArgs e) +105 System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +24 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +41 System.Web.UI.Control.OnLoad(EventArgs e) +131 System.Web.UI.Control.LoadRecursive() +65 System.Web.UI.Control.LoadRecursive() +190 System.Web.UI.Control.LoadRecursive() +190 System.Web.UI.Control.LoadRecursive() +190 System.Web.UI.Control.LoadRecursive() +190 System.Web.UI.Control.LoadRecursive() +190 System.Web.UI.Control.LoadRecursive() +190 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2427
I registered the view with the following line at the top of my application page
<%@ Register TagPrefix="gemuc" TagName="ReportGalleryView" Src="~/_layouts/PowerPivot/ReportGalleryView.ascx" %>
and then i tried to display the gallery in my content placeholder<asp:Content ID="Content7" ContentPlaceHolderId="PlaceHolderMain" runat="server"> <gemuc:ReportGalleryView runat="server" ID="RGView" ViewMode="carousel"/> </asp:Content>
-
Saturday, March 16, 2013 5:40 AMThe content in the content tag is needed also.

