C# 在ReportViewer中显示SSRS报告时出错

C# 在ReportViewer中显示SSRS报告时出错,c#,reporting-services,C#,Reporting Services,在报表查看器中显示SSRS报表(.rdl)时出错。错误如下 An error occurred during local report processing. The definition of the report 'Main Report' is invalid. The report definition is not valid. Details: The report definition has an invalid target namespace

在报表查看器中显示SSRS报表(.rdl)时出错。错误如下

  An error occurred during local report processing.
  The definition of the report 'Main Report' is invalid.
  The report definition is not valid. Details: The report definition has an invalid target            namespace 'http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition' which      cannot be upgraded...

我是SSRS报告的新手……所以请帮助我……。

这似乎是一个格式版本控制问题。您能否直接在SSR上正确查看报告(无需控制)

如果是这样,这可能意味着您需要在应用程序中升级ReportViewerControl—VS 2010具有该控件的版本10

如果不是,则可能意味着上载到SSRS的RDL版本不适合您的服务器

编辑 你还没有说明你的应用程序是web还是windows——我假设是web。 可能发生的情况是,您从VS2008升级了项目,但它仍然引用ReportViewer控件的V 2008

检查应用程序的web.config


是的,我是在2010年创建的…那么我该怎么办呢?因为我是SSRS报告中的新成员,所以我无法获得错误…抱歉,在添加到Web.config之后,正如您所说,我收到了相同的错误…在本地报告处理过程中发生了错误。报表“主报表”的定义无效。报表定义无效。详细信息:报表定义的目标命名空间“”无效,无法升级。您好,根据您的说法,我在web.config中完成了所有更改,但现在我收到一个错误,例如报表查看器web控件需要web窗体上的System.web.UI.ScriptManager。
<add assembly="Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="Microsoft.ReportViewer.Common, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
<add extension=".rdlc" type="Microsoft.Reporting.RdlBuildProvider, Microsoft.ReportViewer.Common, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
<asp:ScriptManager ID="scmForReportViewer" runat="server">
</asp:ScriptManager>