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 Bookmark and Share
krittikorn

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 come with barcode and can scan it correct.

But when i use 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 custom assembly of myself function I put some code follow link below it work 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     1111 day(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 1108 day(s) ago

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

krittikorn
Dear Ben

I saw this folder after setup

image

My licensed is Code 128 Font Advantage Package

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

Output endcoding is a same as .NETAsemmbly Encode (Code.clsIDAutomationBarcode.Code128) or not.

Posted 1108 day(s) ago

()
()
   Report Abuse

Ben
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 set up.

Posted 1109 day(s) ago

()
()
   Report Abuse

krittikorn
Dear Ben

I sent email.

BI Report Project come with VS2013 Shell integrated

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



Posted 1110 day(s) ago

()
()
   Report Abuse

Ben
This is not a solution that we can directly support. However, send your RSPreviewPolicy.config to support@idautomation.com and we can look at the file.

Posted 1110 day(s) ago

()
()
   Report Abuse

krittikorn
I create 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 is 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 top post


image

Posted 1110 day(s) ago

()
()
   Report Abuse

Ben
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 1110 day(s) ago

()
()
   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 2019 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