New User? Sign Up  |  Sign In  |  Help
Barcode support and
tutorials from IDAutomation
and the community.
Click for the BBB Business Review of this Computers Hardware, Software & Services in Tampa FL
Resolved Questions

How Do I Set FullTrust for the CodeGroup


Hello.

I am receiving the error message "That Assembly does not allow partially trusted callers" when I try to run a report containing the font encoder assembly.

I have seen your support recommendation that we need to edit RSPreviewPolicy.config. But we're not 100% sure how to do this.

Please would you provide step-by-step instructions on how to edit the RSPreviewPolicy.config file in the correct manner?

Best wishes
Danny


Application: SSRS

05-05-15     8.8 year(s) ago    

  Report Abuse

 

Ben

Best Answer

Note: The (SSRS Font Encoder) has been released since this issue was resolved that offers an easier method of generating barcodes in SSRS without the assembly, config file edits or other components.

To edit a config file for an SSRS implementation, open the desired config file in Visual Studio or a text editor. Within the CodeGroup block, look for a parameter named PermissionSetName. By default, it may be set to a value such as Execute. Modify the value to FullTrust such as:

Example of a CodeGroup set to FullTrust in the RSPreviewPolicy.config file.

<CodeGroup
class="FirstMatchCodeGroup"
version="1"
PermissionSetName="FullTrust"
Name="IDAutomationNETAssembly"
Description="This code group grants IDAutomationNETAssembly.dll Full Trust permission and allow Preview in
Visual Studio.">

<IMembershipCondition
class="UrlMembershipCondition"
version="1"
Url="C:Program Files (x86)Microsoft Visual Studio 11.0Common7IDEPrivateAssembliesIDAutomation.NetAssembly.dll"/>
</CodeGroup>

==============================================================
I am not sure if the .NET Assembly solution is fully compatible with Report Builder. For Report Builder for SSRS, we have the ASPX Barcode Generator Script.

Sometimes FullTrust must be given to some of the other CodeGroups such as the Microsoft_Strong_Name which grants code signed with the Microsoft strong name full trust. IDAutomation can only recommend modifying the CodeGroups to FullTrust one at a time.

After modifying CodeGroups, reboot the server.

Posted 8.8 year(s) ago

(0)
(0)
  Report Abuse
 
Find Interesting
 
Email to Others
 
Bookmark
 
Subscribe to Answer Alert
No comments yet.     Be the first to comment.
Other Answers (4)
No problem Danny.

Unfortunately, when you are dealing with SSRS and use components such as DLLs, sometimes config file edits do not take effect until the machine is rebooted. I am not sure if Microsoft truly has a way around it, even if it is to prevent businesses that cannot afford to reboot their servers.

The good thing with the ASPX Script is that it will not need a reboot because the script will be part of a streamed project that does not require editing of config files or dlls.

Posted 8.8 year(s) ago

(0)
(0)
   Report Abuse
OK thanks, Ben

If I go ahead and buy this additional ASPX script, do I need to reboot my server again, or will it work straight away?

(rebooting our database server is very disruptive to our business).

Many thanks
Danny

Posted 8.8 year(s) ago

(0)
(0)
   Report Abuse
Danny,

I am not sure if the .NET Assembly solution is fully compatible with Report Builder. For Report Builder for SSRS, we have the ASPX Barcode Generator Script.

Sometimes FullTrust must be given to some of the other CodeGroups such as the Microsoft_Strong_Name which grants code signed with the Microsoft strong name full trust. IDAutomation can only recommend modifying the CodeGroups to FullTrust one at a time.

After modifying CodeGroups, reboot the server.

Posted 8.8 year(s) ago

(0)
(0)
   Report Abuse
Hi Ben

Thank you for the quick response. We edited the config file as advised and rebooted our server. But we still get the error message "That Assembly does not allow partially trusted callers". I tried re-creating a simple report with only one field and also received the same error.

Our config files contain the text below. Our report is authored with Report Builder 3.0.

I'd like to upload the file to show you, in case we edited it wrongly. But there doesn't seem to be an option here to upload files.

What else can we do to solve the problem?

Many thanks
Danny


</CodeGroup>
<CodeGroup class="FirstMatchCodeGroup" version="1" PermissionSetName="FullTrust" Name="IDAutomationNETAssembly"
Description="This code group grants IDAutomationNETAssembly.dll Full Trust permission and allow Preview in Visual Studio.">
<IMembershipCondition class="UrlMembershipCondition" version="1"
Url="C:Program Files (x86)Microsoft Visual Studio 9.0Common7IDEPrivateAssembliesIDAutomation.NetAssembly.dll"/>
</CodeGroup>

Posted 8.8 year(s) ago

(0)
(0)
   Report Abuse
Email this question link to friends
You must enter an email address, if name is entered or vice-versa for each friend.
Friend #1 -
Friend #2 -
Friend #3 -
Friend #4 -
Friend #5 -
  Your comment on this question
  |         |  
bold  italic  underline  strike       big  small       superscript  subscript 
  Allows to add a link. Added links would only be converted to actual clickable link, when the domain of the link is white-listed by administrator.
Caption :
Link URL :
(Must starts with "http://")
Add  |   Cancel
  Allow to insert an image. Must be among the following file types - *.jpg, *.gif, *.png & *.bmp.
Image Url :   Upload New
(Image url must always starts with " http:// ")
Width : pixels
(Must not be greater than 450px. Enter 0px for no resize)
Add  |   Cancel
  Allow to insert YouTube video. Insert the video embed code.
Embed Code :
Add  |   Cancel
Up to 5000 Characters are allowed. Current Count: 0
  Your comment on this answer
  |         |  
bold  italic  underline  strike       big  small       superscript  subscript 
  Allow you to add a link. Added links would only be converted to actual clickable link, when the domain of the link is white-listed by administrator.
Caption :
Link URL :
(Must start with "http://" or "https://")
Add  |   Cancel
  Allow to insert an image. Must be among the following file types - *.jpg, *.gif, *.png & *.bmp.
Image Url :   Upload New
(Image url must always start with "http://" or "https://")
Width : pixels
(Must not be greater than 450px. Enter 0px for no resize)
Add  |   Cancel
  Allow to insert YouTube video. Insert the video embed code.
Embed Code :
Add  |   Cancel
Up to 5000 characters are allowed. Current Count: 0

You may answer and comment on any thread according to the Terms and Conditions.

 © Copyright 2021 IDAutomation.com, Inc., All Rights Reserved. Legal Notices.

 Barcode Fonts | Components | Scanners | Support | Contact Us
Training Videos on YouTube Join us on Google Plus Join us on LinkedIn Follow us on Twitter Like us on Facebook