Type handle 'Aspose.Pdf.Document' and method handle with declaring type '#=zb04s9BCMYe3AYMBFFrvz95s=' are incompatible. Get RuntimeMethodHandle and declaring RuntimeTypeHandle off the same MethodBase

Hi Team,

We have upgraded aspose from 21.9 to 22.5 but we are getting Type handle runtime error and not allowing our application to run.
We tried to upgrade to 21.10 which works fine without any issue.
but when we tried to upgrade to 21.11 we are getting the same type handle error. Please find the below error details.
we are getting Type handle ‘Aspose.Pdf.Document’ and method handle with declaring type ‘#=zb04s9BCMYe3AYMBFFrvz95s=’ are incompatible. Get RuntimeMethodHandle and declaring RuntimeTypeHandle off the same MethodBase.

Note: we tried to use latest aspose in stand alone application which works without any issue.
But out project application fails with 21.11 where as it works well with 21.10.
We verified release not that did not help much hence we are posting here.

We would like to know what changes required to make our application run with 21.11 or 22.5.

Regards,
Shivaraj Hiremath

@Kkyadav07

Could you please share the project type that you are using? Please create a sample application (source code without compilation errors) that helps us to reproduce your problem on our end and attach it here for testing.

As soon as you get these pieces of information ready, we will start investigation into your issue and provide you more information. Thanks for your cooperation.

Thanks for the reply,

Please find the attachment for the sameasposetest7.zip (760.8 KB)

@Kkyadav07

We have logged this problem in our issue tracking system as PDFNET-51937. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

The issues you have found earlier (filed as PDFNET-51937) have been fixed in Aspose.PDF for .NET 22.7.