Free Support Forum - aspose.com

Could not load file or assembly

I am having a problem with the Slides Assembly in my SSRS deployment. We have installed cells,word and PDF with no errors but are getting the following when we deploy slides. We have tried completely removing slides and doing the install form scartch with the same error. Has anybody got any suggestions? I have added the following into my rssrvpolicy.config as per the instructions on the site. This has worked for cells,words and pdf with no errors.




ERROR WHEN TRYING TO RUN WITH SLIDES

Event Type: Error
Event Source: ASP.NET 2.0.50727.0
Event Category: None
Event ID: 1334
Date: 20/06/2011
Time: 11:34:29
User: N/A
Computer: XXXX
Description:
Failed to initialize the AppDomain:ReportManager_MSSQLSERVER_0

Exception: System.Web.HttpException

Message: Could not load file or assembly 'Aspose.Slides.ReportingServices, Version=3.9.1.0, Culture=neutral, PublicKeyToken=716fcc553a201e56' or one of its dependencies. Failed to grant minimum permission requests. (Exception from HRESULT: 0x80131417)

StackTrace: at System.Web.Compilation.BuildManager.ReportTopLevelCompilationException()
at System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled()
at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters)
at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters)
at System.Web.Hosting.ApplicationManager.CreateAppDomainWithHostingEnvironment(String appId, IApplicationHost appHost, HostingEnvironmentParameters hostingParameters)
at System.Web.Hosting.ApplicationManager.CreateAppDomainWithHostingEnvironmentAndReportErrors(String appId, IApplicationHost appHost, HostingEnvironmentParameters hostingParameters)

InnerException: System.Configuration.ConfigurationErrorsException

Message: Could not load file or assembly 'Aspose.Slides.ReportingServices, Version=3.9.1.0, Culture=neutral, PublicKeyToken=716fcc553a201e56' or one of its dependencies. Failed to grant minimum permission requests. (Exception from HRESULT: 0x80131417)

StackTrace: at System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective)
at System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory()
at System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai)
at System.Web.Configuration.AssemblyInfo.get_AssemblyInternal()
at System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig)
at System.Web.Compilation.BuildProvidersCompiler..ctor(VirtualPath configPath, Boolean supportLocalization, String outputAssemblyName)
at System.Web.Compilation.ApplicationBuildProvider.GetGlobalAsaxBuildResult(Boolean isPrecompiledApp)
at System.Web.Compilation.BuildManager.CompileGlobalAsax()
at System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled()

InnerException: System.IO.FileLoadException

Message: Could not load file or assembly 'Aspose.Slides.ReportingServices, Version=3.9.1.0, Culture=neutral, PublicKeyToken=716fcc553a201e56' or one of its dependencies. Failed to grant minimum permission requests. (Exception from HRESULT: 0x80131417)

StackTrace: at System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)
at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
at System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
at System.Reflection.Assembly.Load(String assemblyString)
at System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective)

InnerException: System.Security.Policy.PolicyException

Message: Required permissions cannot be acquired.

StackTrace: at System.Security.SecurityManager.ResolvePolicy(Evidence evidence, PermissionSet reqdPset, PermissionSet optPset, PermissionSet denyPset, PermissionSet& denied, Boolean checkExecutionPermission)
at System.Security.SecurityManager.ResolvePolicy(Evidence evidence, PermissionSet reqdPset, PermissionSet optPset, PermissionSet denyPset, PermissionSet& denied, Int32& securitySpecialFlags, Boolean checkExecutionPermission)

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

Hi Bret,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your interest in Aspose.Slides.

I have observed the stack trace shared by you and it seems there is some permission error or Aspose.Slides for RS.dll instance is missing at desired place. Can you please share something about environment? Please also share which SQL Server instance you are using for your environment along with Aspose.Slides for RS version. Please try one more time using the manual setting be completely reverting the old changes and applying new ones. For manual installation, please follow this documentation link.

Note: In some cases, when you copy the DLL to the ReportServer\bin directory, it might get copied together with explicit NTFS file permissions assigned to it. The NTFS permissions might be such that Microsoft SQL Server Reporting Services will be denied access when loading Aspose.Slides.ReportingServices.dll and the new export formats will not be available.

To make sure NTFS permissions are correct, right click on Aspose.Slides.ReportingServices.dll, click Properties and select the Security tab. Remove any explicitly assigned NTFS permissions and leave only inherited permissions.

Please share your feedback and requested information with us if the issue still exists.

Thanks and Regards,

Thanks for the reply. We did a manual installation for all three products. We are using SQL2008R2 and the Aspose.Slides.ReportingServices.dll Version 3.9.1.0 which we downloaded and etxracted from Aspose.Slides.ReportingServices\Bin\SSRS2008R2.

I agree that it seems to be a permission issue. We have added the following to our rssrvpolicy.config file which seems to have worked for Cells and Words etc..










Hi Bret,<?xml:namespace prefix = o ns = “urn:schemas-microsoft-com:office:office” /><o:p></o:p>

Have you tried performing the following step when you have copied the Aspose.Slides for RS dll.

Note: In some cases, when you copy the DLL to the ReportServer\bin directory, it might get copied together with explicit NTFS file permissions assigned to it. The NTFS permissions might be such that Microsoft SQL Server Reporting Services will be denied access when loading Aspose.Slides.ReportingServices.dll and the new export formats will not be available.

To make sure NTFS permissions are correct, right click on Aspose.Slides.ReportingServices.dll, click Properties and select the Security tab. Remove any explicitly assigned NTFS permissions and leave only inherited permissions.

Aspose.Sllides for SSRS, supports SQL Server 2008R2. If the issue still persists than please also share the "rssrvpolicy.config" and "rsreportserver.config" files with us for investigation.

Thanks and Regards,

I have checked the premissions and they are all inherited. Please see below for for files as requested.

rssrvpolicy.config













































































rsreportserver.config


XXXX
Default






MSRS10_50.MSSQLSERVER
{70151abe-b451-44a6-96cd-84a96f078b5d}




















ReportServerWebService
ReportServer


http://reporting:80
S-1-5-21-1258000012-1064473834-4201514878-14050
XXXX\XXXX




ReportManager
Reports


http://reporting:80
S-1-5-21-1258000012-1064473834-4201514878-14050
XXXX\XXXX








Off
Proxy
true


True
True
True
10
False
80
90
720
30
0



XX
XX
XX

rssrvpolicy.config
True
True








Estimate




3
900



HTMLOWC
NULL
RGDI





3
900


XXXX










2


XXX

MHTML




HTMLOWC
NULL
RGDI

True








3
900



HTMLOWC
NULL
RGDI










MHTML


True

















PDF (A4 Lanscape)



PDF
8.27in
11.69in





PDF (A4 Portrait)



PDF
11.69in
8.27in













































False




True
False
False
False




True
oREPLACE



















ReportHistorySnapshotCreated




TimedSubscription




SnapshotUpdated









2
10
(Default)
Default

Hi Bret,

I have investigated the config files shared by you and they seem to be fine. It seems evident that there is some permission related issue while accessing the Aspose.Slides for RS dll file. An issue with ID 28612 has been created in our issue tracking system to further investiagate and resolves the issue. Secondly, I earlier requested you about the platform environment. Can you please share the information about platform used. Is it x86 or x64? Please also share the location of the file where Aspose.Slides for RS.dll is placed.

Thanks and Regards,

Windows Server 2003 x64 SP2
SQL 2008 R2 x64

The files are located in

C:\Program Files\Microsoft SQL Server\MSRS10_50.MSSQLSERVER\Reporting Services\ReportServer

and

C:\Program Files\Microsoft SQL Server\MSRS10_50.MSSQLSERVER\Reporting Services\ReportServer\bin

Hi Bret,

Thanks for sharing the further information. I will share further information with you once it is shared by our development team.

We are greatly sorry for your inconvenience,