Aspose.PDF for Reporting Services for SSRS 2019

Hi,

Im trying to evaluate the product in our test environment. Our case is to render PDF/A files from SSRS 2019.
Does your product support SSRS 2019 ?

Do i need a different PublicKeyBlob for the configuration?

I cant get the extension to work with the RS log error:

extensionfactory!ReportServer_0-1!1454!10/04/2022-10:22:42:: e ERROR: Exception caught instantiating APPDF report server extension: System.IO.FileLoadException: Could not load file or assembly ‘Aspose.Pdf.ReportingServices, Version=19.7.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56’ or one of its dependencies. Failed to grant minimum permission requests. (Exception from HRESULT: 0x80131417)
File name: ‘Aspose.Pdf.ReportingServices, Version=19.7.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56’ —> System.Security.Policy.PolicyException: Required permissions cannot be acquired.

@jukka.uro

Could you please share some more detail about your requirement along with environment detail e.g. operating system, SQL server version etc.?

Are you facing this issue while installing Aspose.PDF for Reporting Services or exporting RDL to PDF?

We have Windows Server 2019 and SSRS 2019.

SSRS version 15.0.1102.675
SQL version 15.0.2080.9

This issue is while installing Aspose.PDF for Reporting Services.
I downloaded Aspose.PDF for Reporting Services 19.7.0 (DLLs only).
Installed it with the instructions from Manual install

  1. Copied the dll from install ZIP “SSRS2016” folder to my bin folder.
  2. Made changes to rsreportserver.config
  3. Made changes to rssrvpolicy.config
  4. Restarted

Im getting this error while reportserver is started and there is no Export button for Aspose Pdf in the report server.

extensionfactory!ReportServer_0-1!1454!10/04/2022-10:22:42:: e ERROR: Exception caught instantiating APPDF report server extension: System.IO.FileLoadException: Could not load file or assembly ‘Aspose.Pdf.ReportingServices, Version=19.7.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56’ or one of its dependencies. Failed to grant minimum permission requests. (Exception from HRESULT: 0x80131417)
File name: ‘Aspose.Pdf.ReportingServices, Version=19.7.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56’ —> System.Security.Policy.PolicyException: Required permissions cannot be acquired.
at System.Security.SecurityManager.ResolvePolicy(Evidence evidence, PermissionSet reqdPset, PermissionSet optPset, PermissionSet denyPset, PermissionSet& denied, Boolean checkExecutionPermission)
at System.Security.SecurityManager.ResolveCasPolicy(Evidence evidence, PermissionSet reqdPset, PermissionSet optPset, PermissionSet denyPset, PermissionSet& denied, Int32& securitySpecialFlags, Boolean checkExecutionPermission)
at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection)
at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
at System.Reflection.Assembly.Load(String assemblyString)
at Microsoft.ReportingServices.Diagnostics.ExtensionClassFactory.LoadAssembly(String name)
at Microsoft.ReportingServices.Diagnostics.ExtensionClassFactory.<>c__DisplayClass15_0.b__0()
at Microsoft.ReportingServices.Diagnostics.RevertImpersonationContext.<>c__DisplayClass1_0.b__0(Object state)
at System.Security.SecurityContext.runTryCode(Object userData)
at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
at System.Security.SecurityContext.Run(SecurityContext securityContext, ContextCallback callback, Object state)
at Microsoft.ReportingServices.Diagnostics.RevertImpersonationContext.Run(ContextBody callback)
at Microsoft.ReportingServices.Diagnostics.ExtensionClassFactory.CreateExtensionObject(Extension extConfig, Boolean typeOnly)

@jukka.uro

Please read the following article about installing Aspose.PDF for Reporting Services manually.
Install Manually

You can also install Aspose.PDF for Reporting Services using MSI installer.

I got the msi installer to work. I was missing some dependencies like .net 3.5…

Manual installation instructions doesnt work with SSRS 2016 dll. I think you have the wrong configuration for rssrvpolicy.config. (PublicKeyBlob). Configuration tool corrected this. Im not an expert with these trust issues, i could be wrong :slight_smile:

Anyways, thanks for the help, all good here now.

@jukka.uro

We have logged this issue in our issue tracking system as PDFRS-33584. We will inform you once there is an update available on it.