Rank: Newbie
Groups: Registered
Joined: 5/22/2018(UTC) Posts: 3 
|
I am trying to run the Patagames.pdf.dll library in a web service under IIS, but I keep on getting the PDFium.dll not found error. It runs on my PC perfectly - but when I publish it, it won't run on the web server. I have carefully checked the security properties on PDFium.dll to ensure it is executable by the application pool ID (and tried giving all users full access). I have tried the following code to direct the server precisely to the DLL, and it's giving the correct location: Code: string codeBase = System.Reflection.Assembly.GetExecutingAssembly().CodeBase;
UriBuilder uri = new UriBuilder(codeBase);
path = Uri.UnescapeDataString(uri.Path);
string base_path = Path.GetDirectoryName(path);
base_path = Path.GetFullPath(Path.Combine(base_path, @"..\"));
path = Path.Combine(base_path, @"pdfium.dll");
PdfCommon.Initialize(null, path);
Any suggestions please? Edited by user Tuesday, May 22, 2018 5:24:39 AM(UTC)
| Reason: Not specified
|
|
|
|
|
|
Rank: Administration
Groups: Administrators
Joined: 1/5/2016(UTC) Posts: 1,138
Thanks: 10 times Was thanked: 133 time(s) in 130 post(s)
|
|
|
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 5/22/2018(UTC) Posts: 3 
|
Originally Posted by: Paul Rayman  Thanks - it was the "bitness" of the application pool. :) Working now.
|
|
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.
Important Information:
The Patagames Software Support Forum uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close