Community ForumCategory: Adobe PDF LibraryNo able to debug or publish the webAPI C# with this library, run time error occurs
manjinders asked 4 months ago

I checked the things in sample. So I implement in demo web api C#. I implemented that library and copy all things to bin folder. But it gave me error when I run it in visualstudio.
“Could not load file or assembly ‘Datalogics.PDFL’ or one of its dependencies. An attempt was made to load a program with an incorrect format”.
Please help me so that I can create and make a running demo for client . I need to publish it to IIS for show demo to my client after check it on visualstudio with debug mode.

1 Answers
Scott Staff answered 4 months ago

The “incorrect format” error usually indicates a platform mismatch.  The Datalogics.PDFL.dll relies on the underlying native libraries.  If you are running the application on a 32-bit OS, you will need to download the 32-bit release of APDFL. If you are using a 64-bit OS, when you build the application in Visual Studio, be sure to select the “x64” selection in the Visual Studio configuration manager dropdown.
Datalogics Support

Scott Urchell3 replied 4 months ago

Thanks for reply. I did that. I am using 64 bit os. and server is also using same. But not work with change in property. When I change visual studio setting then only work in 64 that settings are in tools-> options->webproject->use 64 bit version of iis express for websites and projects. then it start working in visual studio. But when I publish the project for server. it publish to file path successfully. But when I deploy on server it gave error

"<i>Could not load file or assembly 'mfcm140u.DLL' or one of its dependencies. The specified module could not be found.</i>".

I need that urgently.

Scott Urchell3 replied 4 months ago

please reply. Yes some where I found it need visual studio for run. But on server there is no visual studio. And Client will not allow us to install visual studio. Is there any other way to run it without visual studio?