'm getting this exception
“Unhandled exception. System.TypeLoadException: Cannot load type ‘System.Void, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089’.”
While using Aspose PDF in our QA env, which is dockerized from the base images “dotnet/sdk:6.0-alpine” and “dotnet/runtime-deps:6.0-alpine” .
Is there any compatibility issue between these images and Aspose?
Aspose Library version: 22.12.0 (Even tried with 23.1.0)
NOTE: This is only occurring in QA environment where we have dockerized the application, but working fine in Dev environment where no Dockerization happening.
I tried some fixes like using Aspose.Pdf.Drawing instead of Aspose.Pdf based on some guidance. But it keeps failing with the above exception.
FYI:
sample.pdf (3.0 KB)
.NET version : 6.0
Docker Build and runtime base images: “dotnet/sdk:6.0-alpine” and “dotnet/runtime-deps:6.0-alpine” .
In my case, I tried to create a Aspose.Pdf.Document from the attached PDF document.
Please note, I can’t directly attach the dockerfile here as it contains in a client laptop which can’t be transferred. But I can give more info if needed.