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

Error render pdf with IDAutomation Fonts Code128 , Failed to load expression host assembly. Details: That assembly does not allow partially trusted callers.

image

I was config Fulltrust About RSPreviewPolicy.config
Barcode Show correct like image upper (in Syncfusion JS Report Viewer work cool) also in SSRS Design can preview work too. / print is OK comes with a barcode and can scan it correctly.

But when I use the Microsoft command Reportviewer.LocalReport.Render to render PDF it error with this message

Failed to load expression host assembly. Details: That assembly does not allow partially trusted callers.

Please advise how it config for localReport Process, thank


PS: I got a custom assembly of my function I put some code following the link below it works fine for me about custom assembly.

http://www.c-sharpcorner.com/UploadFile/balajiintel/CustomAssemblyinRS06302005081435AM/CustomAssemblyinRS.aspx

Operating System: Windows 10 / Server Windows Server 2008R2 / Windows Server 2012

Application: RDL/RDLC Report , Visual Studio 2015, C# , AngularJS, ASP.NET , WebAPI

04-03-16     7.9 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.


You may definitely use the C# code and bundle it in your application and current dll as you have a Developer License.

Posted 7.9 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 (6)
Dear Ben

I saw this folder after the setup

image

My license is Code 128 Font Advantage Package

For this case, Can I use bundle Encoding Code128Auto in my CustomAssembly (My custom Assembly is C# and Can run fine without error) is Illegal or not?

Output encoding is the same as .NETAsemmbly Encode (Code.clsIDAutomationBarcode.Code128) or not.

Posted 7.9 year(s) ago

(0)
(0)
   Report Abuse
Unfortunately, I am not sure what is going wrong. The config files look okay. You may want to consider streaming the Code 128 barcode using the ASPX Barcode Generator instead of using the font and encoder. At this time, I cannot test or duplicate the setup.

Posted 7.9 year(s) ago

(0)
(0)
   Report Abuse
Dear Ben

I sent an email.

BI Report Project comes with VS2013 Shell integrated

Web App, Create in VS2015 (Copy RDL from report project to put inside WebApp Project)

Posted 7.9 year(s) ago

(0)
(0)
   Report Abuse
This is not a solution that we can directly support. However, send your RSPreviewPolicy.config to us: Contact Us and we can look at the file.

Posted 7.9 year(s) ago

(0)
(0)
   Report Abuse
I created by Business Intelligence Report Project
extension file is .RDL with barcode fonts Code128Auto and the .NET Assembly
but I use to render it by localReport.Render like RDLC (Run Without Report Service Server and deploy to Web Server not install Report Server and Visual Studio)

FrontEnd HTML5 + Angular Call WeAPI --> genereate PDF by localReport.Render
All feature in RDL work fine, only IDAutomation cannot (My Custom Assembly work fine)

https://code.msdn.microsoft.com/ASPNET-MVC5-AngularJS-1f18da53


and Already config RSPreviewPolicy.config

https://www.idautomation.com/font-encoders/dotnet-assembly/sql-server-reporting-services-tutorial.html

you can see for Preview Report on the top post


image

Posted 7.9 year(s) ago

(0)
(0)
   Report Abuse
What type of report is created using the barcode fonts and the .NET Assembly? RDL or RDLC? If creating an RDL and the issue is the RSPreviewPolicy.config, verify that Full Trust is given to additional CodeGroups. For now, our solution is available here.

Posted 7.9 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