此修补程序还适用于 Microsoft SQL Server 2012 Reporting Services。
症状
请考虑以下情形:
- 你正在 Microsoft SharePoint 集成模式下运行 Microsoft SQL Server 2008 R2 Reporting Service (SSRS 2008 R2) 或 SQL Server 2012 Reporting Service (SSRS 2012) 的实例。
- 你的报表或订阅是由不再对 SharePoint 网站集具有权限的用户创作的。
- 对 SharePoint 网站集具有相应权限的用户尝试打开报表或订阅。
在此种情况下,用户无法打开报表或订阅。 此外,用户还会收到以下错误消息:
注意
Report Server 遇到 SharePoint 错误。 (rsSharePointError)
对象引用未设置为对象实例。
此外,以下异常记录在报告服务器日志文件中:
注意
Microsoft.ReportingServices.Diagnostics.Utilities.SharePointException:报告服务器遇到 SharePoint 错误。 ---> System.NullReferenceException:对象引用未设置为对象实例。
在 Microsoft.ReportingServices.SharePoint.Objects.RSSPImpUser.get_LoginName ()
位于 Microsoft.ReportingServices.SharePoint.Utilities.CatalogItemUtilities.GetListItemUserLoginName (RSSPListItem 项,字符串 fieldName)
位于 Microsoft.ReportingServices.SharePoint.Utilities.CatalogItemUtilities.CreateCatalogItem (RSSPFolder 文件夹)
在 Microsoft.ReportingServices.SharePoint.Server.SharePointDBInterface.GetParentsForFolderOrFileRecursive (RSSPWeb web, RSSPFolder 文件夹, RSSPDocumentLibrary docLib, Security secMgr, CatalogItemList parents)
在 Microsoft.ReportingServices.SharePoint.Server.SharePointDBInterface.GetParentsForFolderOrFileRecursive (RSSPWeb web, RSSPFolder 文件夹, RSSPDocumentLibrary docLib, Security secMgr, CatalogItemList parents)
在 Microsoft.ReportingServices.SharePoint.Server.SharePointDBInterface.FindParents (ExternalItemPath objectName, CatalogItemList& parents, Security secMgr, IPathTranslator pathTranslator)
解决方法
此问题已首先在 SQL Server 的以下累积更新中修复。
SQL Server 2012 SP1 累积更新 8 /en-us/help/2917531
SQL Server 2012 累积更新 11 /en-us/help/2908007
SQL Server 2008 R2 SP2 的累积更新 9 /en-us/help/2887606
关于 SQL Server 的累积更新
SQL Server 的每个新累积更新都包含上一个累积更新中包含的所有修补程序和所有安全修补程序。 查看 SQL Server 的最新累积更新:
状态
Microsoft 已确认在 "适用于" 部分中所列的 Microsoft 产品中存在问题。