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

Trying to use demo version of 2D Aztec barcodes in SSRS. Get error in Visual Studio preview

I'm trying to create a 2D Aztec barcode in SSRS using VS 2010. Currently, I'm using the demo version.

I'm trying to use the tutorial provided for SSRS that creates a Code128 barcode using .NETAssembly.
I've modified the instructions to use the Aztec dll and added System.Windows.Forms reference as well.
I added the code line as an expression to the barcode textbox.

I tried to add the CodeGroup xml code to rspolicy.config in the visual studio folder. I had to modify the example from the tutorial. My snippet looks like this:
<CodeGroup
class="UnionCodeGroup"
version="1"
PermissionSetName="FullTrust"
Description="This code group grants IDAutomationNETAssembly.dll Full Trust permission.">

<IMembershipCondition class="UrlMembershipCondition"version="1"
Url="C:Program FilesMicrosoft SQL ServerMSRS11.MSSQLSERVERReporting
ServicesReportServerbinIDAutomationNETAssembly.dll" />
</CodeGroup>
I am not totally clear about where this should be installed. It says in the tutorial to "put it after the first codegroup...".

I get the following error when trying to Preview:
Failed to load expression host assembly. Details: Could not load file or assembly 'IDAutomation.Aztec, Version 2013. 5.0.0.... or one of its dependencies. Failed to grant permission to execute.

Any ideas of other steps that I am missing for the Aztec or anything I might have done incorrectly?

Thanks,

Renee

Operating System: Windows 7

Application: SSRS, Visual Studio 2010

08-08-14     10.2 year(s) ago    

  Report Abuse

 

Ben

Best Answer

The tutorial defaults to Code 128 which uses the IDAutomation.NETAssembly.dll. Because you need to generate Aztec, it requires a reference to the IDAutomation.Aztec.dll. Your Code Group should have a path to the Aztec dll such as:

image

The Code Group in the PrivateAssemblies config file must also use the IDAutomation.Aztec.dll.


Enter the assembly name in the Code Group Path for the barcode type that you need to generate:

image
NOTE: 1D barcodes such as Code 128, Code 39, UPC, and I2of5, use the IDAutomation.NETAssembly.

Because you are running the demo, there may be an issue with the barcode causing an Error when the report is deployed. This is documented in this forum posts that resolves the #Error or nonscannable barcode issue.#Error or non scannable barcode issue

Posted 10.2 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 (1)
I accidentally pasted the wrong CodeGroup text in my post above. I did have the Aztec dll referenced, but I finally noticed that I had a small error in the URL. Once I fixed that and rebooted the Visual Studio preview is working nicely. I got a popup message about the demo mode and once I said OK to that it displayed the barcode.

Thanks so much for the help and the quick response.

Renee

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