DPDFPrintNative_x86.dll not found on nested nuget

Skip Navigation LinksHome  /  Support  /  Forums  /  DynamicPDF PrintManager for .NET (v4)  /  DPDFPrintNative_x86.dll not found on nested nuget

DynamicPDF PrintManager for .NET (v4) Forum

Hello,
in the solution that I'm working, the ceTe.DynamicPDF.Printing.NET nuget package is imported into a project that is in turn imported, as a NuGet, into the main project.

When an instance of ceTe.DynamicPDF.Printing.PrintJob is made, the system throws a dll not found exception (System.DllNotFoundException: Unable to load DLL 'DPDFPrintNative_x86' or one of its dependencies: The specified module could not be found. (0x8007007E))

This happens on the main solution.

Working on the NuGet project that uses the ceTe.DynamicPDF.Printing.NET I noticed that two references are added when installing the aforementioned package:
- DPDFPrintNative_x64.dll
- DPDFPrintNative_x86.dll

But none of them are physically imported as DLL files when referencing the NuGet package that uses in turn the ceTe.DynamicPDF.Printing.NET package.

Comparing the dependencies on the XXX.YYY.ZZZ.deps.json file referred to our internal nuget, I cannot find the same import instruction as for the ceTe.DynamicPDF.CoreSuite.NET library, which for runtimes like win10-x86 imports DPDFNative_x86.dll (and that's phisically imported in the main solution). Below the .deps.json file which I'm working on...

Thank you,
Best Regards

{
    "runtimeTarget": {
        "name": ".NETCoreApp,Version=v3.1",
        "signature": ""
    },
    "compilationOptions": {},
    "targets": {
        ".NETCoreApp,Version=v3.1": {
            "XXX.YYY.ZZZ/1.53.4.0": {
                "dependencies": {
                    "FreeSpire.PDF": "6.2.0",
                    "System.Drawing.Common": "4.7.0",
                    "ceTe.DynamicPDF.CoreSuite.NET": "10.36.0",
                    "ceTe.DynamicPDF.Printing.NET": "4.21.0"
                },
                "runtime": {
                    "XXX.YYY.ZZZ.dll": {}
                }
            },
            "ceTe.DynamicPDF.CoreSuite.NET/10.36.0": {
                "runtime": {
                    "lib/portable-netstandard20+Xamarin.iOS10+MonoAndroid10+UAP10/DynamicPDF.NETStandard20.dll": {
                        "assemblyVersion": "10.36.0.42385",
                        "fileVersion": "10.36.0.42385"
                    }
                },
                "runtimeTargets": {
                    "runtimes/linux-x64/native/libDPDFNative_x64.so": {
                        "rid": "linux-x64",
                        "assetType": "native",
                        "fileVersion": "0.0.0.0"
                    },
                    "runtimes/win10-arm/native/DPDFNative_ARM.dll": {
                        "rid": "win10-arm",
                        "assetType": "native",
                        "fileVersion": "10.0.0.36652"
                    },
                    "runtimes/win10-x64/native/DPDFNative_x64.dll": {
                        "rid": "win10-x64",
                        "assetType": "native",
                        "fileVersion": "10.0.0.36652"
                    },
                    "runtimes/win10-x86/native/DPDFNative_x86.dll": {
                        "rid": "win10-x86",
                        "assetType": "native",
                        "fileVersion": "10.0.0.36652"
                    }
                }
            },
            "ceTe.DynamicPDF.Printing.NET/4.21.0": {
                "runtime": {
                    "lib/netstandard20/DynamicPDF.Printing.dll": {
                        "assemblyVersion": "4.21.0.49686",
                        "fileVersion": "4.21.0.49686"
                    }
                }
            },
            "FreeSpire.PDF/6.2.0": {
                "dependencies": {
                    "System.Drawing.Common": "4.7.0",
                    "System.Text.Encoding.CodePages": "4.7.0"
                },
                "runtime": {
                    "lib/netcoreapp3.0/Spire.License.dll": {
                        "assemblyVersion": "1.3.8.320",
                        "fileVersion": "1.3.8.320"
                    },
                    "lib/netcoreapp3.0/Spire.Pdf.dll": {
                        "assemblyVersion": "6.2.4.0",
                        "fileVersion": "6.2.4.20330"
                    }
                }
            },
            "Microsoft.NETCore.Platforms/3.1.0": {},
            "Microsoft.Win32.SystemEvents/4.7.0": {
                "dependencies": {
                    "Microsoft.NETCore.Platforms": "3.1.0"
                }
            },
            "System.Drawing.Common/4.7.0": {
                "dependencies": {
                    "Microsoft.NETCore.Platforms": "3.1.0",
                    "Microsoft.Win32.SystemEvents": "4.7.0"
                }
            },
            "System.Text.Encoding.CodePages/4.7.0": {
                "dependencies": {
                    "Microsoft.NETCore.Platforms": "3.1.0"
                }
            }
        }
    },
    "libraries": {
        "XXX.YYY.ZZZ/1.53.4.0": {
            "type": "project",
            "serviceable": false,
            "sha512": ""
        },
        "ceTe.DynamicPDF.CoreSuite.NET/10.36.0": {
            "type": "package",
            "serviceable": true,
            "sha512": "",
            "path": "cete.dynamicpdf.coresuite.net/10.36.0",
            "hashPath": "cete.dynamicpdf.coresuite.net.10.36.0.nupkg.sha512"
        },
        "ceTe.DynamicPDF.Printing.NET/4.21.0": {
            "type": "package",
            "serviceable": true,
            "sha512": "",
            "path": "cete.dynamicpdf.printing.net/4.21.0",
            "hashPath": "cete.dynamicpdf.printing.net.4.21.0.nupkg.sha512"
        },
        "FreeSpire.PDF/6.2.0": {
            "type": "package",
            "serviceable": true,
            "sha512": "",
            "path": "freespire.pdf/6.2.0",
            "hashPath": "freespire.pdf.6.2.0.nupkg.sha512"
        },
        "Microsoft.NETCore.Platforms/3.1.0": {
            "type": "package",
            "serviceable": true,
            "sha512": "",
            "path": "microsoft.netcore.platforms/3.1.0",
            "hashPath": "microsoft.netcore.platforms.3.1.0.nupkg.sha512"
        },
        "Microsoft.Win32.SystemEvents/4.7.0": {
            "serviceable": true,
            "sha512": "",
            "path": "microsoft.win32.systemevents/4.7.0",
            "hashPath": "microsoft.win32.systemevents.4.7.0.nupkg.sha512"
        },
        "System.Drawing.Common/4.7.0": {
            "type": "package",
            "serviceable": true,
            "sha512": "",
            "path": "system.drawing.common/4.7.0",
            "hashPath": "system.drawing.common.4.7.0.nupkg.sha512"
        },
        "System.Text.Encoding.CodePages/4.7.0": {
            "type": "package",
            "serviceable": true,
            "sha512": "",
            "path": "system.text.encoding.codepages/4.7.0",
            "hashPath": "system.text.encoding.codepages.4.7.0.nupkg.sha512"
        }
    }
}
I've managed to solve the issue by including the native .dll library in our internal NuGet (DPDFPrintNative_x64.dll and DPDFPrintNative_x86.dll).

If there are any suggestions on this, I would appreciate them.

Thank you,
Best regards

Mattia

All times are US Eastern Standard time. The time now is 4:49 PM.