Spire.Barcode is a professional barcode library specially designed for .NET developers (C#, VB.NET, ASP.NET, .NET Core) and Java developers (J2SE and J2EE) to generate, read and scan 1D & 2D barcodes.

Tue Jan 28, 2014 10:53 pm

I am needing to use Spire.BarCode project on a server and I'm having security issues. I have the following error:

System.Security.SecurityException: That assembly does not allow partially trusted callers.

Could help me

guathan
 
Posts: 2
Joined: Tue Jan 28, 2014 10:49 pm

Wed Jan 29, 2014 6:55 am

Hi,

Thanks for you inquiry.
If you use the dll files of Spire.BarCode under NET4.0 folder, you could not use [assembly: AllowPartiallyTrustedCallers()] in your AssemblyInfo.cs, you need to use [assembly: SecurityRules(SecurityRuleSet.Level1)].
This issue will be fixed in the next version

Regards,
Harry
Technical Support / Developer,
e-iceblue Support Team
User avatar

harry.support
 
Posts: 180
Joined: Mon Nov 08, 2010 3:11 pm

Wed Feb 05, 2014 11:38 pm

I used [assembly: SecurityRules (SecurityRuleSet.Level1)], but still the same error. When will be released the new version? I am in dire need. Why not provide the source code? This error is very easy to be solved.

guathan
 
Posts: 2
Joined: Tue Jan 28, 2014 10:49 pm

Fri Feb 07, 2014 10:01 am

Hello guathan,

I do the test and find no error. Please check these screenshots in the attachment.

If you have any questions, welcome to tell us.

Regards,
Benjamin
E-iceblue support team
User avatar

Benjamin Du
 
Posts: 82
Joined: Thu Jul 25, 2013 2:38 am

Return to Spire.BarCode