Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

ERROR with SSIS Script Task

$
0
0
Hello, 
I m trying to merge two PDF with ASPOSE.net.
This working well into a .net application but the same code into a Task script on SSIS launch a error on the line new document
static void Main(string[] args)
        {
            
            string dataDir ="C:\\SOURCE\\SSIS\\IN\\PDF\\";
            
            Document pdfDocument1 = new Document(dataDir + "Concat1.pdf");
            
            Document pdfDocument2 = new Document(dataDir + "Concat2.pdf");
            
            pdfDocument1.Pages.Add(pdfDocument2.Pages);
            
            dataDir = dataDir + "ConcatenatePdfFiles_out_.pdf";
            
            //Save concatenated output file
            pdfDocument1.Save(dataDir);
           
            }
I m have the folowwing error into SSIS : 
DTS Script task has encountered an exception in user code :
 à System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
   à System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
   à System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   à System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
   à Microsoft.SqlServer.Dts.Tasks.ScriptTask.VSTATaskScriptingEngine.ExecuteScript()
Do you have any idea ?
Bests, regards, 

Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>