System.Security.Permissions.Securi tyPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' fai
Hi, I am currently working on SQL server reporting. I have created custom assemblies. I am loading the custom assebly in the rdl file. I am getting following exception An error occurred while executing OnInit: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. (rsErrorInOnInit) Please let me know if anyone knows the reason. Thanks in Advance.
October 29th, 2007 7:41am

Are you saying you have created assemblies that have been deployed to SQL Server, and when you try toexecute an exposed method you are getting said exception? If so, what permission set did you give the assemblies when deploying? If you didn't give the assembly any explicit permission set, re-deploy using EXTERNAL_ACCESS, if that doesn't help use UNSAFE.Niels
Free Windows Admin Tool Kit Click here and download it now
October 30th, 2007 10:56am

I am having the same problem...I haveused a Custom data extension assembly which is working fine on Visual studio RDL development preview but Now...as I paste it to SSRS bin and try to view in report server it doesnot work...error given An error has occurred during report processing. (rsProcessingAborted) Cannot create a connection to data source 'DataSource1'. (rsErrorOpeningConnection) Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. C:\Program Files\Microsoft SQL Server\MSSQL.3\Reporting Services\ReportServerand register give necessary permission(1)<Extension Name="DATASET" Type="Prologika.RS.Extensibility.CustomDataExtension.DsConnectionWrapper,Prologika.CustomDataExtension"/>(2)<CodeGroup class="UnionCodeGroup" version="1" Name="CustomDataExtensionCodeGroup" Description= "Code group for the Custom Data Extension" PermissionSetName="fulltrust"> <IMembershipCondition class="UrlMembershipCondition" version="1" Url="C:\Program Files\ Microsoft SQL Server\MSSQL.3\ Reporting Services\ReportServer\bin\ Prologika.CustomDataExtension.dll"/> </CodeGroup>
January 20th, 2009 3:09pm

Hi abhisharmaDid you finally find a way to solve your problem?Because i have the same now...Thanks a lot if you have the solutionMaxime
Free Windows Admin Tool Kit Click here and download it now
July 23rd, 2009 2:43pm

I am having the same problem...I have used a Custom data extension assembly which is working fine on Visual studio RDL development preview but Now...as I paste it to SSRS bin and try to view in report server it doesnot work...error given An error has occurred during report processing. (rsProcessingAborted) Cannot create a connection to data source 'DataSource1'. (rsErrorOpeningConnection) Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. C:\Program Files\Microsoft SQL Server\MSSQL.3\Reporting Services\ReportServer and register give necessary permission (1) <Extension Name="DATASET" Type="Prologika.RS.Extensibility.CustomDataExtension.DsConnectionWrapper,Prologika.CustomDataExtension"/> (2) <CodeGroup class="UnionCodeGroup" version="1" Name="CustomDataExtensionCodeGroup" Description= "Code group for the Custom Data Extension" PermissionSetName="fulltrust"> <IMembershipCondition class="UrlMembershipCondition" version="1" Url="C:\Program Files\ Microsoft SQL Server\MSSQL.3\ Reporting Services\ReportServer\bin\ Prologika.CustomDataExtension.dll"/> </CodeGroup> I am having the same EXACT problem with the same code any resolution?
January 8th, 2010 9:56pm

Hi folks,This is a ReportServer problem (in SSRS service) not a SQLCLR problem. Did you also post on the reporting services forum? Do you want me to transfer this posting to that forum?Cheers,Bob BeaucheminSQLskills
Free Windows Admin Tool Kit Click here and download it now
January 9th, 2010 2:56am

I am having the same issue. Does anyone here know how to solve this?Thanks,
January 12th, 2010 3:23am

sorry but i am haveing the same problem, any resolution??
Free Windows Admin Tool Kit Click here and download it now
January 12th, 2010 4:02am

I finally found the solution. I don't know if it applies to other but to me it is very stupid.I just fixed the path for the dll file from policy config file by doing it without newline./**Before**/C:\Program Files\ Microsoft SQL Server\MSSQL.3\ Reporting Services\ReportServer\bin\ Prologika.CustomDataExtension.dll/**After**/C:\Program Files\Microsoft SQL Server\MSSQL.3\Reporting Services\ReportServer\bin\Prologika.CustomDataExtension.dllThis fix my problem! More and more I found Microsoft products really bad. I use to love using MS products a lot but not anymore. Most of their products just cannot compete with others. The worst I will say is their IE Browser. I never seen a browser that slow anymore.Anyways, hope my solution help.
January 13th, 2010 2:46am

I finally found the solution. I don't know if it applies to other but to me it is very stupid. I just fixed the path for the dll file from policy config file by doing it without newline. /**Before**/ C:\Program Files\ Microsoft SQL Server\MSSQL.3\ Reporting Services\ReportServer\bin\ Prologika.CustomDataExtension.dll /**After**/ C:\Program Files\Microsoft SQL Server\MSSQL.3\Reporting Services\ReportServer\bin\Prologika.CustomDataExtension.dll This fix my problem! More and more I found Microsoft products really bad. I use to love using MS products a lot but not anymore. Most of their products just cannot compete with others. The worst I will say is their IE Browser. I never seen a browser that slow anymore. Anyways, hope my solution help. no, thats how i already have it but still no luck its because my dll is a custom one i use to connect to the database not using prologika.
Free Windows Admin Tool Kit Click here and download it now
January 13th, 2010 5:39pm

well i SOLVED THE PROBLEM but u wont like the solution i went into the web.config file in \reportserver\ and changed <securityPolicy> <trustLevel name="RosettaSrv" policyFile="rssrvpolicy.config" /> </securityPolicy> <trust level="RosettaSrv" originUrl="" /> </system.web> to </securityPolicy> <trust level="Full" originUrl="" /> </system.web> clearly the problem is in this file. now besides making this full trust like that, maybe we can use a scalper instead of a shovel ! any suggestions?
January 14th, 2010 5:52pm

I know this is an old thread, but it has 18K views (wow!!!) so let me see if I can spot the issue: The only difference I see and I *think* it is the problem is that you're using lower case in the PermissionSetName attribute. Try "FullTrust" which is the actual permission set defined at the top of the file... <PermissionSet class="NamedPermissionSet" version="1" Unrestricted="true" Name="FullTrust" Description="Allows full access to all resources"/> Hope this helps, -LukaszGot a bug or feature request? Tell me about it at http://connect.microsoft.com. This posting is provided "AS IS" with no warranties, and confers no rights.
Free Windows Admin Tool Kit Click here and download it now
September 21st, 2010 6:09pm

Dude! You rock! Thanks!
January 20th, 2011 12:35pm

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

Other recent topics Other recent topics