System.EntryPointNotFoundException on donet Core 2


On a new dotnet Core 2 api app, we have added pdfnet by explicitly adding a reference to the 64bit dll. When we then add
to the startup file we get the following error:

EntryPointNotFoundException: A library name must be specified in a DllImport attribute applied to non-IJW methods.
ModuleLoadException: The C++ module failed to load.

Any ideas on how to resolve. Also, do you know if pdfnet sdk runs ok on a dotnet core 2.* app run on a linux container?


Hello Glen,

Thanks for letting us know that you’re running into this behaviour. We don’t officially support PDFNet atop .NET Core, since .NET Core does not yet provide all the APIs that PDFNet relies on (such as WPF). However, we are not aware of any specific issues with running our PDFNet for .NET 4+ build inside of .NET Core on Windows. We don’t provide a .NET build of PDFNet for Linux.

So that we’re on the same page, could you kindly forward your project files to PDFTron support? That way we can take a look at the project and provide further advice. Thanks in advance for your help.

Thanks for the reply - we have decided not to pursue this any further at this stage - going to keep the pdfnet sdk work on a .Net 4+ stack for now.