|
朋友的SharePoint 2007项目中有一个子项目采用SQL2008报表服务的客户端报表控件(ReportViewer)开发了一些报表(.rdlc),并部署到SharePoint服务器上的_layout目录下的一个子目录中,在IIS中配置该子目录为应用程序。但是报表页面报错:
Microsoft.Reporting.WebForms.InvalidConfigFileTypeException: The type 'Microsoft.SharePoint.Portal.Analytics.UI.ReportViewerMessages, Microsoft.SharePoint.Portal, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' does not implement IReportViewerMessages
这个问题是SharePoint站点的web.config与报表程序的web.config冲突造成的。解决办法很简单:在报表程序的web.config中添加如下配置:
<appSettings>
<remove key="ReportViewerMessages" />
</appSettings>
此外,rdlc程序还需要启用asp.net session才可工作 |
|
|