Skip to content

w3wp.exe won't release libargon2.dll when published to IIS. #5

@iamthemerovingian

Description

@iamthemerovingian

When trying to delete/update the libargon2.dll file I get the following error:

"This action cant be completed because the file is open in w3wp.exe"

I have tried stopping the application pools, restarting application Pools and stopping the website but the IIS worker process will not release the libargon2.dll file in the bin directory. My only work around was to go to task manager and end task on the w3wp.exe process connected to my website.

Furthermore, I hoped I could release the lock in code by disposing of the objects that maybe using the dll, but there is no dispose method on Liphsoft.Crypto.Argon2.PasswordHasher(...) ie: it does not implement IDisposable.

A little information on my setup:
WebApi 2 Project, platform target: AnyCpu
Visual Studio Pro 2017 V 15.5.3
IIS V 10.0.16299.15

Has anyone found a good solution to removing this lock?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions