Skip to content
This repository has been archived by the owner on Aug 2, 2019. It is now read-only.

pdfium.dll locked by IIS Worker Process #182

Open
NextAlexM opened this issue Dec 7, 2018 · 1 comment
Open

pdfium.dll locked by IIS Worker Process #182

NextAlexM opened this issue Dec 7, 2018 · 1 comment

Comments

@NextAlexM
Copy link

NextAlexM commented Dec 7, 2018

Hi there,

Using Pdfium Viewer 2.13.0 (from Nuget) and PdfiumViewer.Native.x86_64.v7-xfa 2.13.0 (from Nuget) in a Web API project but am getting an issue when re-deploying to IIS Express.

The initial run works fine, DLL is copied and loaded fine.
The next time a deployment/run is attempted (In Visual Studio 2017) I get the following error:

Could not copy "pdfium.dll" to "bin\x64\pdfium.dll". Exceeded retry count of 10. Failed. The file is locked by: "IIS Worker Process"

Unable to copy file "pdfium.dll" to "bin\x64\pdfium.dll". The process cannot access the file 'bin\x64\pdfium.dll' because it is being used by another process.

I've seen a few others with similar issues on this GitHub but no real solution.

I believe this is a specific issue with Pdfium Viewer as no other DLL produces the same error.

Killing the "IIS Worker Process" resolves the issue but isn't a practical solution to be doing every time we want to re-run our Web API.

@NextAlexM NextAlexM changed the title pdfium.dll locked by IIS Worker Process - Dec 7, 2018
@NextAlexM NextAlexM reopened this Dec 7, 2018
@NextAlexM NextAlexM changed the title - pdfium.dll locked by IIS Worker Process Dec 7, 2018
@gauravp-amtrav
Copy link

gauravp-amtrav commented Jul 31, 2019

I also had this issue. Ended up having to add a deployment step to restart the website and also recycling the app pool too. Recylcling just the app pool didn't work on its own. However that fix seemed to work for a while but now seeing this issue again. I was hoping didn't have to do a full iisreset everytime. Is there a better solution?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants