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:
Stack Trace:
Version Information: Microsoft .NET Framework Version:2.0.50727.4927; ASP.NET Version:2.0.50727.4927
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. |
[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 |
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的应用正在熟悉摸索中。相关文章推荐
- SharePoint 2010 应用自定义aspx页面调换列表默认的新建(NewForm.aspx),查看(DispFo...
- SharePoint 2010 使用自定义aspx页面替换列表默认的新建(NewForm.aspx),查看(DispForm.aspx)和编辑(EditForm.aspx)页面
- SharePoint 2010 应用自定义aspx页面调换列表默认的新建(NewForm.aspx),查看(DispFo...
- SharePoint 2010 使用自定义aspx页面替换列表默认的新建(NewForm.aspx),查看(DispForm.aspx)和编辑(EditForm.aspx)页面
- SharePoint 2010 使用自定义aspx页面替换列表默认的新建(NewForm.aspx),查看(DispForm.aspx)和编辑(EditForm.aspx)页面
- SharePoint 2010 使用自定义aspx页面替换列表默认的新建(NewForm.aspx),查看(DispForm.aspx)和编辑(EditForm.aspx)页面
- SharePoint:修改FormServer.aspx页面实现自定义逻辑
- Sharepoint 2010 Form认证自定义登录页面,总是自动登录问题
- ASP.NET全局错误处理和异常日志记录以及IIS配置自定义错误页面
- SharePoint 自定义列表编辑页面,附件上传提示“此表单自定义为不处理附件”
- MVC 自定义异常错误页面处理
- 继续定制Sharepoint 2010表单页面(DispForm.aspx)
- 使自定义的aspx页面仅用于部分SharePoint站点
- 为SharePoint 2010中的FBA创建自定义登录页面
- SharePoint 2010自定义母版页小技巧——JavaScript和CSS引用
- SharePoint 2010高并发下异常“此用户不存在或不唯一”处理
- SharePoint 2010 页面引用 Reporting Services 展现 List 报表
- sharepoint 2010 用contenttype自定义表单显示页面 custom displayForm page by contenttype
- sharepoint 2010 讨论板回复页面 显示和隐藏(显示引用邮件)Hide/Show Quoted Messages
- sharepoint 2010 配置自定义错误页面