[英]Error deploying SQL Server 2008 r2 Reporting Services data extension
I am attempting to write my own data extension for SSRS 2008 r2. 我正在尝试为SSRS 2008 r2编写自己的数据扩展。 I have created a very basic extension that should just return a simple dataset based on this example .
我创建了一个非常基本的扩展,它应该只返回一个基于这个例子的简单数据集。 I followed the deployment instructions here and used this sample for reference.
我按照此处的部署说明进行操作,并使用此示例作为参考。
In BI Dev Studio I can create a Data Source using my new Type (AS) and create a dataset using the source. 在BI Dev Studio中,我可以使用新的Type(AS)创建数据源,并使用源创建数据集。 When I type a query and click OK, I get this error message:
当我键入一个查询并单击确定时,我收到此错误消息:
The selected data extension AS is not installed or cannot be loaded.
未安装或无法加载所选的数据扩展AS。 Verify that the selected data extension is installed on the client for local reports and on the report server for published reports.
验证所选数据扩展是否已在客户端上安装用于本地报告,并在报告服务器上用于已发布报告。
I've checked over my config files many times and tried adding the 'CodeGroup' before, after and within the existing CodeGroups since the instructions aren't very clear without success. 我已经多次检查了我的配置文件并尝试在现有CodeGroup之前,之后和之内添加'CodeGroup',因为说明不是很清楚而没有成功。
I have signed my assembly and put the dll in C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\Common7\\IDE\\PrivateAssemblies
and C:\\Program Files\\Microsoft SQL Server\\MSRS10_50.MSSQLSERVER\\Reporting Services\\ReportServer\\bin
. 我已经签署了我的程序集并将dll放在
C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\Common7\\IDE\\PrivateAssemblies
和C:\\Program Files\\Microsoft SQL Server\\MSRS10_50.MSSQLSERVER\\Reporting Services\\ReportServer\\bin
。 I've also done lots of googling. 我也做了很多谷歌搜索。
I'm not sure what other information would be useful. 我不确定其他哪些信息会有用。 Any suggestions?
有什么建议?
Thanks. 谢谢。
Make sure that you are compiling your data extension to target .NET 3.5. 确保您正在编译数据扩展以定位.NET 3.5。 This resolved some similar problems I encountered a few months ago.
这解决了我几个月前遇到的一些类似问题。
If You using assembly You will also must write CodeGroup into this file (my instance for Express Edition): 如果您使用程序集您还必须将CodeGroup写入此文件(我的Express Edition实例):
C:\Program Files\Microsoft SQL Server\MSRS10_50.SQLEXPRESS\Reporting Services\ReportServer
Did You try this? 你试过这个吗?
You also have to install the plugin for your visual studio 您还必须为Visual Studio安装插件
From my last installation documentation: 从我上次的安装文档:
Installing on the Developer PC ( for creating Reports with the plugin )
Copy the assemblies to the following folder ( C:\\Program Files\\Microsoft SQL Server\\100\\Tools\\Report Designer) Make the same change to rspreviewpolicy.config as you did for rssvrpolicy.config on the server. 将程序集复制到以下文件夹(C:\\ Program Files \\ Microsoft SQL Server \\ 100 \\ Tools \\ Report Designer)对rspreviewpolicy.config进行与服务器上rssvrpolicy.config相同的更改。
My changes for the policy file 我对策略文件的更改
Add to rssrvPoliciy.config ( Same folder as rsreportserver.config) For each dll a security entry must be added! 添加到rssrvPoliciy.config(与rsreportserver.config相同的文件夹)对于每个dll,必须添加安全条目!
Insert the block inside following CodeGroup Node ... 将块插入以下CodeGroup节点...
<CodeGroup class="FirstMatchCodeGroup" version="1" PermissionSetName="Execution" Description="This code group grants MyComputer code Execution permission. ">
<CodeGroup class="UnionCodeGroup" version="1" PermissionSetName="FullTrust" Name="ADONETDataset" Description="ADONETDataset DPE"> <IMembershipCondition class="UrlMembershipCondition" version="1" Url="C:\Program Files\Microsoft SQL Server\Reporting Instance Name\Reporting Services\ReportServer\bin\ADF.Reporting.SRS.DPE.ADODataset.dll" />
</CodeGroup>
<CodeGroup class="UnionCodeGroup" version="1" PermissionSetName="FullTrust" Name="ADF_System" Description="ADF System">
<IMembershipCondition class="UrlMembershipCondition" version="1" Url="C:\Program Files\Microsoft SQL Server\Reporting Instance Name\Reporting Services\ReportServer\bin\ADF.System.dll" />
</CodeGroup>
</CodeGroup>
... ...
It worked with me while examining the assembly references of the DLL. 它在检查DLL的程序集引用时与我合作。 You need to reference at lease one object from the assembly Microsoft.ReportingServices.DataExtensions!
您需要从程序集Microsoft.ReportingServices.DataExtensions中引用至少一个对象!
In my class, I just declared an unused variable, and it worked: public Microsoft.ReportingServices.DataExtensions.Utf8StringWriter ww; 在我的课堂上,我刚刚声明了一个未使用的变量,它起作用了:public Microsoft.ReportingServices.DataExtensions.Utf8StringWriter ww;
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.