简体   繁体   English

部署SQL Server 2008 r2 Reporting Services数据扩展时出错

[英]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\\PrivateAssembliesC:\\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.

相关问题 通过WPF(C#)应用程序自动部署Reporting Services报表(SQL Express 2008 R2) - Automatically Deploying Reporting Services Reports Via WPF (C#) Application (SQL Express 2008 R2) SQL Server 2008 R2 Reporting Services-获取订阅和计划链接 - SQL Server 2008 R2 Reporting Services - Get Subscription + Schedule Link 从哪里开始SQL Server 2008 R2中的报告服务 - Where do I start with reporting services in SQL Server 2008 R2 SQL Server数据工具SSDT或SQL Server 2008 R2 - SQL Server Data Tool SSDT or SQL Server 2008 R2 如何将数据从datagridview保存到SQL Server 2008 R2 - How to save data from datagridview to SQL Server 2008 R2 从SQL Server 2008 R2解密数据 - Decrypt Data From SQL Server 2008 R2 在Microsoft Windows Server 2008 R2上运行的SQL通知错误 - sql notification error running on Microsoft Windows Server 2008 R2 错误948:带有SQL Server 2008 R2的Visual Studio 2012 - Error 948 :Visual Studio 2012 with SQL Server 2008 R2 在SQL Server 2008 R2中创建程序集时出错 - Error Creating Assembly in SQL Server 2008 R2 部署使用Asp.Net,C#和Sql Server 2008 R2构建的Web应用程序 - Deploying an Web Application built using Asp.Net,C# and Sql Server 2008 R2
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM