Free Support Forum -

Critical Security Error


I am using Aspose.PDF version 3.2.6 dll.

It works fine on local machine, but when we are deploying to other server,

it gives error as 'System.Security.Permissions.SecurityPermission, mscorlib, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed

We have given full trusted to that Dll from Code Access plicy.

Exception comes at Aspose.Pdf.Pdf.BindHTML method.

Detail exception as:

'System.Security.Permissions.SecurityPermission, mscorlib, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. ---> System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. at System.Reflection.Assembly.get_Evidence() at Aspose.Pdf.HTML..⨋(XslTransform ⨌) at Aspose.Pdf.HTML..Ꭸ(Stream Ꭻ) at Aspose.Pdf.Pdf.BindHTML(Stream htmlStream) at

As we are at the deployment stage, we are expecting this isssue to be resoved ASAP.

Thanks in Advance,


Hi Kishan,

Thank you for considering Aspose and sorry for the inconvenience.

Aspose.Pdf uses XSLT when converting HTML to PDF. The exception is caused by XSLT processing. Please try setting ControlEvidence permission to resolve this problem.

The HTML feature is Beta version and we will avoid using XSLT in the future.

Hi Kishan,

We are still investigating this issue. We will reply to you ASAP.

Dear Kishan,

Now we have found a solution but you need to install Aspose.Pdf into GAC. Is that acceptable?

Hello Tommy ,

Thanks for your reply....

But Can you please provide us Public Key for that Dll Or any strong name key.

OR can we directly put that dll into GAC.



Dear Kishan,

You can get the public key by the following command:

sn -e aspose.pdf.dll key.txt

The dll is signed with the following key: