SSRS 2012 and Polygons CRI example
Hi, I'm trying to get Microsoft Custom Report Item example Polygons to work on SSRS 2012. After some reference changes I managed to build whole project. Now I have moved dll's to similar locations in SSRS 2012 as mentioned in example. Also those configuration changes are done. Both dll's are signed. So the question is am I doing now something which should not even work in SSRS 2012. Result when I'm opening the Polygon report project in Data tools I can't get Polygon design time item to toolbox even if I use "choose Item" to load it. Result is error: Failed to create ToolboxItem of type: Microsoft.ReportDesigner.Shell.CRIToolboxItem, Microsoft.ReportDesigner, Version=10.0.0.0, Culture=neutral etc. Thanks, Sami
June 7th, 2012 3:49am

Hi Sami, Sorry for the delay. Hope its not too late for an answer. Based on the current information, the issue might occur if the rssrvpolicy.config file was not modified correctly. In SQL Server 2012 Reporting Services 2012, we should modify the CodeGroup attribute as follows: <CodeGroup class="UnionCodeGroup" version="1" PermissionSetName="FullTrust" Description="This code group grants PolygonsCRI.dll FullTrust permission. "> <IMembershipCondition class="UrlMembershipCondition" version="1" Url="%PROGRAMFILES%\Microsoft SQL Server\MSRS11.MSSQLSERVER\Reporting Services\ReportServer\bin\PolygonsCRI.dll" /> </CodeGroup> Note: If you are using a named instance, please modify the MSRS11.MSSQLSERVER to MSRS11.<InstanceName>. Besides, please make sure the PolygonsCRI.dll file and PolygonsDesigner.dll file are copied to the right folders. If you are using 64-Bit operating system, the target Visual Studio private assemblies directory should be %ProgramFiles(x86)%\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies. Hope this helps. Regards, Mike Yin TechNet Subscriber Support If you are TechNet Subscription user and have any feedback on our support quality, please send your feedback here.
Free Windows Admin Tool Kit Click here and download it now
June 17th, 2012 10:42pm

Hi Mike, Thanks for your reply. I have not yet solved this. But as you say it seems to be some configuration issues. I'm using Visual Studio 10 and have x64 environment so I'm pointing to ProgramFiles(x86)%\Microsoft Visual Studio 10.0\Common7\IDE\PrivateAssemblies. And dll's are copied to that place both designer and CRI. I have instance with default name. And my codegroup definition were identical with yours. I was placed that inside class ="FirstMatchCodeGroup". But now I moved it alone after those CodeGroups but functionality is still same. Data Tools Report design window says: Could not load type 'PolygonsCRI.PolygonsDesigner' from assembly... BR, Sami
June 18th, 2012 3:39am

Hi Sami, Thanks for your post. If you copied the PolygonsCRI.dll files to the %PROGRAMFILES%\Microsoft SQL Server\MSRS11.MSSQLSERVER\Reporting Services\ReportServer\bin folder, the issue may occur if the assembly has been crashed. At this time, I suggest that you refer to the following steps: Delete the Polygons*.dll files in both the Report Server bin folder and the Visual Studio PrivateAssemblies folder.Copy the PolygonsCRI.dll file from the \PolygonCRI\Bin\Debug directory to the Visual Studio PrivateAssemblies folder.Copy the PolygonsCRI.dll file from the \PolygonCRI\Bin\Debug directory to Report Server bin folder.Copy the PolygonsDesigner.dll file from the \PolygonCRI\Bin\Debug directory to the Visual Studio PrivateAssemblies folder. Hope this helps. Regards, Mike Yin TechNet Subscriber Support If you are TechNet Subscription user and have any feedback on our support quality, please send your feedback here.
Free Windows Admin Tool Kit Click here and download it now
June 19th, 2012 9:03am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics