Docker app missing Aspose dll


#1

We are having deployment problems using Aspose libraries in Docker containers. Parameters are

  1. App is .NET Core 2.1 web api
  2. Deployed to a Kubernetes cluster with an Linux Docker host, image “microsoft/dotnet:2.1-aspnetcore-runtime-alpine”
  3. Aspose.Total license expiry 20190216
  4. These libraries are referenced in a single project (versions checked by IlSpy):
    a. Aspose.Pdf, Version=19.2.0.0,
    b. Aspose.Cells, Version=19.2.0.0,
    c. Aspose.Diagram, Version=19.1.0.0
    d. Aspose.Slides, Version=19.2.0.0
    e. Aspose.Words, Version=19.2.0.0
    The symptoms are
    • In development environment using IIS/kestrel the project builds and runs without errors
    • All 5 of these dll’s are copied to the bin folder by msbuild
    • When built in an Azure DevOps pipeline to make a Docker image these five are copied by Dockerfile and the dotnet build succeeds. Verified by copying the dll folder to the project root and examining the copy on linux.
    • When deployed to the cluster, only 4 of the dlls appear in the app root. Aspose.PDF.dll is missing. Verified that the VS reference properties has Copy Local = Yes for all.
    • When executed the program logs errors like so:
    "Could not load file or assembly ‘Aspose.Pdf, Version=19.2.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56’. The system cannot find the file specified.”
    • Manual copy of the missing dll to the Docker project root does not resolve the runtime error.
    • Changing the case of the file to match assembly name (Aspose.PDF.dll->Aspose.Pdf.dll) does not resolve the error.

Suggestions welcome.


#2

@cpreddy

Thank you for contacting support.

We have logged an investigation ticket with ID PDFNET-46707 in our issue management system for detailed investigations. We will let you know as soon as any significant update will be available in this regard. In the meanwhile, please upgrade to Aspose.PDF for .NET 19.7 and share your kind feedback with us.