We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

A first chance exception of type 'System.ArgumentException' occurred in mscorlib.dll Additional information: Item has already been added. Key in dictionary: '98065' Key being added: '98065'

I get this error: "A first chance exception of type ‘System.ArgumentException’ occurred in mscorlib.dll

Additional information: Item has already been added. Key in dictionary: ‘98065’ Key being added: ‘98065’ "

When calling this: Dim pdfDocument As New Aspose.Pdf.Document(_PDFName)

I am in a multi-threaded environment with each object in its own task.

Any ideas?

Hi Simon,


Thanks for your inquiry. Please note Aspose.Pdf is multithread safe as long as only one thread works on a document at a time. So different threads can safely work on different documents at the same time. Please double check this scenario in your code. Even if a thread processes a document at a time and issue persists then please share your sample code along with document. We will test the scenario at our end and will guide you accordingly.
We are sorry for the inconvenience caused.

Best Regards,