February 6, 2012  
   Login  
Forum  
 
ForumForumEnesys RS Data ...Enesys RS Data ...Support - RS Da...Support - RS Da...System.Security.Permissions.SecurityPermission ErrorSystem.Security.Permissions.SecurityPermission Error
Previous Previous
 
Next Next
New Post
 9/6/2007 8:07 PM
 
Hi

I am getting the following error:

  • An error has occurred during report processing.
    • Cannot create a connection to data source 'DataSource1'.
      • Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

I have looked through other posts which have the same error message, but they all seem to point to problems with the RS policy file, and getting the path to the dll correct. I have checked this multiple times (and even copied the location from right clicking on the dll and selecting properties, and then copying the location information) and it seems to be correct.

I am able to connect to a sharepoint list from my development machine, create a report and preview it, this all works fine. The problem I have is when I deply to another server.

The Enesys Connection Type is available for selection on the RS server, and I have tried configuring different Data Sources on the RS server for connecting to sharepoint, but all return this same error.


Any help you can provide would be greatly appreciated.

New Post
 9/6/2007 9:10 PM
 
Hi,
Have you tried different kind of credentials?
Be aware that if you are using "Integrated security" credentials and if your report server is not installed on the same box as SharePoint server, you will need to implement Kerberos because of the famous "double-hop" issue.
Could it be the reason?
If you have yet not done so, could you specify some "Credentials stored securely on the report server"?

Let me know,
Regards,

Frederic LATOUR
ENESYS
New Post
 9/6/2007 9:16 PM
 
Hi

Thanks for the quick reply.

I have tried supplying the credentials in the Data Source setup, and selected to supply credentials during running report.  Either one still produces this same error with security.

Thanks

Nick
New Post
 9/6/2007 10:14 PM
 
Hi,
Though you seem to have double-checked, could you send me both your RSReportServer.config and RSSrvPolicy.config files at the following address (supportATenesys.fr).
Regards,

Frederic LATOUR
ENESYS
New Post
 9/6/2007 10:50 PM
 
 Modified By Frédéric LATOUR  on 9/6/2007 9:55:15 PM
Nick,

In the rssrvpolicy.config file, you have inserted the necessary <codegroup> element inside the previous <codegroup> element:

  117 <CodeGroup

  118         class="UnionCodeGroup"

  119         version="1"

  120         PermissionSetName="FullTrust">

  121     <IMembershipCondition

  122             class="UrlMembershipCondition"

  123             version="1"

  124             Url="$CodeGen$/*"

  125     />

  126     <CodeGroup

  127         class="UnionCodeGroup"

  128         version="1"

  129         PermissionSetName="FullTrust">

  130         <IMembershipCondition

  131             class="UrlMembershipCondition"

  132             version="1"

  133             Url="YourUrl"/>

  134     </CodeGroup>

  135 </CodeGroup>



You should make the necessary modification so that it looks like this :

  117 <CodeGroup

  118         class="UnionCodeGroup"

  119         version="1"

  120         PermissionSetName="FullTrust">

  121     <IMembershipCondition

  122             class="UrlMembershipCondition"

  123             version="1"

  124             Url="$CodeGen$/*"

  125     />

  126 </CodeGroup>

  127 <CodeGroup

  128     class="UnionCodeGroup"

  129     version="1"

  130     PermissionSetName="FullTrust">

  131     <IMembershipCondition

  132         class="UrlMembershipCondition"

  133         version="1"

  134         Url="YourUrl"/>

  135 </CodeGroup>


I understand it's not always easy to deal directly with config files. For this reason we are considering providing a small took to make configuration easier.

Let me know how it goes.
Regards,


Frederic LATOUR
ENESYS
New Post
 9/6/2007 11:23 PM
 
Genius!!

One line out of place, Too busy concentrating on getting the path right.

Thanks for all your help with this and getting back to me so quickly.
Previous Previous
 
Next Next
ForumForumEnesys RS Data ...Enesys RS Data ...Support - RS Da...Support - RS Da...System.Security.Permissions.SecurityPermission ErrorSystem.Security.Permissions.SecurityPermission Error

 
You need to login for posting to the forums.
If you don't have a login, click here to register.
 
Copyright 2010 Enesys - All rights reserved Terms Of UsePrivacy Statement