您的位置:首页 > 编程语言 > ASP

SharePoint 2010 自定义aspx页面装载PPS report空引用异常处理

2010-02-24 09:57 585 查看
需要一个空页面,只显示perfromancepoint report. 在sharepoint designer 2007中,直接创建一个aspx页面,然后加zone,加webpart即可显示,但是在sharepoint designer 2010中时按此操作,当preview this page的时候,页面报空引用异常。异常内容如下: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.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:
[NullReferenceException: Object reference not set to an instance of an object.]Microsoft.PerformancePoint.Scorecards.WebControls.ClientWebPart.Render(HtmlTextWriter writer) +2880Microsoft.SharePoint.WebPartPages.SPChrome.RenderPartContents(HtmlTextWriter output, WebPart part) +42[WebPartException: Object reference not set to an instance of an object.]Microsoft.SharePoint.WebPartPages.SPChrome.RenderPartContents(HtmlTextWriter output, WebPart part) +19623302Microsoft.SharePoint.WebPartPages.SPChrome.RenderWebPart(HtmlTextWriter output, WebPart part) +64Microsoft.SharePoint.WebPartPages.WebPartZone.RenderZoneCell(HtmlTextWriter output, Boolean bMoreParts, WebPart part) +1997Microsoft.SharePoint.WebPartPages.WebPartZone.RenderWebParts(HtmlTextWriter output, ArrayList webParts) +508Microsoft.SharePoint.WebPartPages.WebPartZone.Render(HtmlTextWriter output) +1000System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +240System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +253System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output) +87System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer) +53System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +240System.Web.UI.Page.Render(HtmlTextWriter writer) +38System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4240
Version Information: Microsoft .NET Framework Version:2.0.50727.4927; ASP.NET Version:2.0.50727.4927

Server Error in '/' Application.

Object reference not set to an instance of an object.

 处理办法:1. 按正常程序(sharepoint desinger 2007 中的操作方法) 在sharepoint designer 2010中加入PPS report webpart.(这个时候preview this page,即会出现上述异常!)2.在form 中增加如下代码,即可解决这个问题! <asp:ScriptManager id="ScriptManager" runat="server" EnablePageMethods="false" EnablePartialRendering="true" EnableScriptGlobalization="false" EnableScriptLocalization="true" />什么原因不用说了吧。这个是sharepoint 2010! 对于2010的应用正在熟悉摸索中。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
相关文章推荐