Hello,
We have Aspose.Total license. Pdf, Cells and Words works fine. The problem is that we can’t seem to pass the license file for Aspose.Slides (v 6.1.0.0).
Our code (If we comment Slides out it works fine):
License wordsLicense = new License();
wordsLicense.SetLicense("Aspose/Aspose.Total.lic");
Aspose.Pdf.License pdfLicense = new Aspose.Pdf.License();
pdfLicense.SetLicense("Aspose/Aspose.Total.lic");
Aspose.Cells.License excelLicense = new Aspose.Cells.License();
excelLicense.SetLicense("Aspose/Aspose.Total.lic");
Aspose.Pdf.Kit.License pdfKitLicense = new Aspose.Pdf.Kit.License();
pdfKitLicense.SetLicense("Aspose/Aspose.Total.lic");
Aspose.Imaging.License imagingLicense = new Aspose.Imaging.License();
imagingLicense.SetLicense("Aspose/Aspose.Total.lic");
Aspose.Slides.License slidesLicense = new Aspose.Slides.License();
slidesLicense.SetLicense("Aspose/Aspose.Total.lic");
Our exception:
License "Aspose/Aspose.Total.lic" doesn't exist or access is restricted.
License "{path}\bin\Aspose.Total.lic" doesn't exist in the executing assembly's directory.
License "{path}\bin\Aspose.Total.lic" doesn't exist in the calling assembly's directory.
License "Aspose.Total.lic" doesn't exist in calling assembly's resources.
Cannot find license "Aspose/Aspose.Total.lic".
Description:
An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details:
System.IO.FileNotFoundException: License "Aspose/Aspose.Total.lic" doesn't exist or access is restricted.
License "{path}\bin\Aspose.Total.lic" doesn't exist in the executing assembly's directory.
License "{path} \bin\Aspose.Total.lic" doesn't exist in the calling assembly's directory.
License "Aspose.Total.lic" doesn't exist in calling assembly's resources.
Cannot find license "Aspose/Aspose.Total.lic".
Source Error:
Line 81:
Line 82: Aspose.Slides.License slidesLicense = new Aspose.Slides.License();
Line 83: slidesLicense.SetLicense("Aspose/Aspose.Total.lic");
Line 84:
Line 85: // clear cache
Source File:
{path}\Global.asax.cs **Line:** 83
Stack Trace:
[FileNotFoundException: License "Aspose/Aspose.Total.lic" doesn't exist or access is restricted.
License "{path}\bin\Aspose.Total.lic" doesn't exist in the executing assembly's directory.
License "{path}\bin\Aspose.Total.lic" doesn't exist in the calling assembly's directory.
License "Aspose.Total.lic" doesn't exist in calling assembly's resources.
Cannot find license "Aspose/Aspose.Total.lic".]
..[1](String licenseName, Assembly callingAssembly) +1167
..[1](String licenseName, Assembly clientAssembly) +303
DMSPortal.Web.MvcApplication.Application_Start() in {path}\Global.asax.cs:83
[HttpException (0x80004005): License "Aspose/Aspose.Total.lic" doesn't exist or access is restricted.
License "{path}\bin\Aspose.Total.lic" doesn't exist in the executing assembly's directory.
License "{path}\bin\Aspose.Total.lic" doesn't exist in the calling assembly's directory.
License "Aspose.Total.lic" doesn't exist in calling assembly's resources.
Cannot find license "Aspose/Aspose.Total.lic".]
System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +12863325
System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +175
System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +304
System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +404
System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +475
[HttpException (0x80004005): License "Aspose/Aspose.Total.lic" doesn't exist or access is restricted.
License "{path}\bin\Aspose.Total.lic" doesn't exist in the executing assembly's directory.
License "{path}\bin\Aspose.Total.lic" doesn't exist in the calling assembly's directory.
License "Aspose.Total.lic" doesn't exist in calling assembly's resources.
Cannot find license "Aspose/Aspose.Total.lic".]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +12880068
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +159
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +12721257