使用旧命名空间的新报告 [英] New Reports Using old Namespace
问题描述
这是我的问题。
我正在使用安装了BIDS 2008 R2的Visual Studio 2008。 当我创建一个新报告时,它将默认命名空间设置为2008/01,尽管我检查过的所有内容都表明它应该使用2010/01。
我已经验证服务器是使用Namespace for 2008 R2,转到URL [reportserver] /reportserver/reportdefinition.xsd. 它显示的值为:
xsd:schema targetNamespace =" http: //schemas.microsoft.com/sqlserver/reporting/2010/01/reportdefinition"
当我转到报告并选择" ;在报表生成器中编辑"它会打开报告构建器3.0(2008 R2)。 在文本编辑器中打开时,在报表生成器中新创建的任何报表都会显示以下内容。
xmlns =" http://schemas.microsoft.com/sqlserver/reporting/2010/01/ reportdefinition"
当我打开BIDS并通过转到帮助查看版本时 - >关于Microsoft Visual Studio,然后向下滚动到"SQL Server Reporting Service"行。它显示10.50.2500.0
最后当我浏览到
的Visual Studio 2008的默认报告模板时 C:\程序文件(x86)\ Microsoft Visual Studio 9.0 \Common7 \IDE \ PrivateAssemblies \ ProjectItems \ ReportProject
打开Report.rdl时显示
<报告xmlns =" http://schemas.microsoft.com / SQLSERVER /报告/ 2010/01 / reportdefinition" xmlns:rd =" http://schemas.microsoft.com/SQLServer/reporting/reportdesigner">
当然我确保"目标服务器版本"在项目属性中将设置设置为SQL Server 2008R2。
我甚至尝试安装新版本的"BIDS"。对于Visual Studio 2012,它还会创建名称空间错误的新报告。
我缺少什么?
你试过这个吗?
Here's my problem.
I'm using Visual studio 2008 with BIDS 2008 R2 installed. When I create a new report it sets the default namespace to 2008/01 despite everything I've checked that indicates that it should be using 2010/01.
I have verified that the server is using the Namespace for 2008 R2 by going to the URL [reportserver]/reportserver/reportdefinition.xsd. It shows the value as;
xsd:schema targetNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/01/reportdefinition"
When I go to a report and select "Edit in Report Builder" It opens report builder 3.0 (2008 R2). Any reports created fresh in report builder show the following when opened in a text editor.
xmlns="http://schemas.microsoft.com/sqlserver/reporting/2010/01/reportdefinition"
When I open BIDS and view the version by going to Help -> About Microsoft Visual Studio, and then scroll down to the line that says "SQL Server Reporting Service" it shows 10.50.2500.0
And lastly when I browse to the default report template for Visual Studio 2008 at C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\ProjectItems\ReportProject
When opening the Report.rdl it shows
<Report xmlns="http://schemas.microsoft.com/sqlserver/reporting/2010/01/reportdefinition" xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner">
And of course I am making sure that the "Target Server Version" setting is set to SQL Server 2008R2 in the project properties.
I have even tried installing a new version of "BIDS" for Visual Studio 2012 and it also creates new reports with the wrong name space.
What am I missing?
Have you tried this?
这篇关于使用旧命名空间的新报告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!