Hi
I’m trying to get the following piece of code working.
It works for all other Aspose Modules like pdf.kit word cell etc.
but not for the Aspose.PDF.
It’s runs on an SQL Server as a stored procedure.
Error Message below
Thanks for the help
Michael
[Microsoft.SqlServer.Server.SqlProcedure]
public static void alber_activatePDFLicense()
{
Aspose.Pdf.License license = new Aspose.Pdf.License();
license.SetLicense(“Aspose.Total.lic”);
}
Msg 6522, Level 16, State 1, Procedure alber_activatePDFLicense, Line 0
A .NET Framework error occurred during execution of user-defined routine or aggregate "alber_activatePDFLicense":
System.IO.FileNotFoundException: Could not load file or assembly '{e70953a9-b163-4c7d-9424-9a7adb3a96d3}, PublicKeyToken=3e56350693f7355e' or one of its dependencies. The system cannot find the file specified.
System.IO.FileNotFoundException:
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 ..(Object , ResolveEventArgs )
at System.AppDomain.OnResourceResolveEvent(String resourceName)
at System.Reflection.Assembly._GetResource(String resourceName, UInt64& length, StackCrawlMark& stackMark, Boolean skipSecurityCheck)
at System.Reflection.Assembly.GetManifestResourceStream(String name, StackCrawlMark& stackMark, Boolean skipSecurityCheck)
at System.Reflection.Assembly.GetManifestResourceStream(String name)
at ..(String , Assembly )
at ..(String , Assembly , Boolean )
at ..(String , Assembly )
at Aspose.Pdf.License.SetLicense(String licenseName)
at StoredProcedures.alber_activatePDFLicense()
.