简体   繁体   中英

Error deploying SQL Server 2008 r2 Reporting Services data extension

I am attempting to write my own data extension for 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. 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. 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.

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 . 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. 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):

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

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.

My changes for the policy file

Add to rssrvPoliciy.config ( Same folder as rsreportserver.config) For each dll a security entry must be added!

Insert the block inside following CodeGroup Node ...

<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. You need to reference at lease one object from the assembly Microsoft.ReportingServices.DataExtensions!

In my class, I just declared an unused variable, and it worked: public Microsoft.ReportingServices.DataExtensions.Utf8StringWriter ww;

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM