Im developing a CustomTaskPane in Outlook 2007 with pdftron.PDF.PDFViewCtrl.

I developed a custompanel in Outlook 2007 using

Just when i try to add the pdftron.PDF.PDFViewCtrl to UserControl,
an error raised like this "Cannot pass a GCHandle across
AppDomains.Parameter name: handle"

I tried to find the solution of this error but i couldn't.
In this case how can i solve the problem?

I used .net framework 4 and vsto 2010.

This issue was present when managed pdftron.PDF.PDFViewCtrl control
was used within a native app such as Outlook or IE. In past a
workaround was to use pdftron.PDF.PDFView instead of PDFViewCtrl. We
have recently resolved the AppDomain issue in PDFViewCtrl so PDFView
control will be depricated in the upcoming version of PDFNet (v.5.6?).