将RDLC报告从VS 2008转换为VS 2010 [英] Converting an RDLC Report from VS 2008 to VS 2010

查看:199
本文介绍了将RDLC报告从VS 2008转换为VS 2010的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个带有.rdlc文件的小项目,由ReportViewer Control查看并使用VS 2008开发。我使用VS 2010打开了解决方案项目已成功转换,没有错误。

I have a small project with an .rdlc file viewed by the ReportViewer Control and was developed using VS 2008. I opened the solution using VS 2010 and the project was converted successfully with no errors.

然而,运行该应用程序时,报表无法查看数据源,因此我必须打开.rdlc进行检查,它是我要求"转换为2008 RDLC定义或以XML格式打开",所以我选择了转换。运行应用程序后,它会保留
给我一个错误,其中包含以下消息:

However, running the app, the report was not able to see the data sources, so I had to open the .rdlc to check and it is asked me to "Convert to the 2008 RDLC Definition or Open in XML", so I chose the conversion. After the running the app, it keeps giving me an error with the following msg:

"在本地报告处理期间发生错误"。

"an error occurred during local report processing".

我进入内部例外:

1-"报告'xxx'的定义无效"。

1- "The definition of the report 'xxx' is invalid".

2-"报告定义无效。详细信息:报表定义具有无效的目标命名空间'http://schemas.microsoft.sqlserver.reporting/2008/01/reportdefinition',无法升级"。

2- "The report definition is not valid. Details: the report definition has an invalid target namespace 'http://schemas.microsoft.sqlserver.reporting/2008/01/reportdefinition' which cannot be upgraded".

我注意到SQL涉及服务器,我在开发此应用程序时有SQL Server 2005,现在我安装了SQL Server 2008。但是生产数据库是SQL Server 2005。

I noticed that SQL Server is involved, I had SQL Server 2005 at the time this app was developed and now I have SQL Server 2008 installed. But the Production DB is SQL Server 2005.

对此有任何帮助吗?

提前致谢

推荐答案

即使您转换为VS2010项目,您可能实际上并未使用2010 ReportViewer。您需要在项目中手动删除引用Microsoft.ReportViewer.Common和Microsoft.ReportViewer.WinForms(或Microsoft.ReportViewer.WebForms)
并将它们指向10.0.0.0版本。还要检查你的App.config(或Web.config),以确保没有9.0.0.0 ReportViewer引用。
You're probably not actually using the 2010 ReportViewer, even though you converted to VS2010 project. You'll need to manually remove the references Microsoft.ReportViewer.Common and Microsoft.ReportViewer.WinForms (or Microsoft.ReportViewer.WebForms) in your project and point them to the 10.0.0.0 version. Also check your App.config (or Web.config) to make sure no 9.0.0.0 ReportViewer references remain there.


这篇关于将RDLC报告从VS 2008转换为VS 2010的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆