Adding database and restarting biometric service
Closed this issue · 3 comments
First, thanks for putting this lib in the public domain.
There is an issue with WBF that when you try to add database, it won't actually get created until windows biometric service is restarted. Some dirty workarround is to restart biometric service (see https://social.msdn.microsoft.com/Forums/vstudio/en-US/ea69bb0e-e534-4873-8c5f-5476b554ca28/winbio-private-pool-opensession?forum=windowssecurity), maybe there is some better way to do this. Admin right are required for all this.
Also, if you add database and then try to remove it without restarting biometric service, it will fail when trying to delete database file beacuse there is no file at given path (at RemoveDatabase, File.Delete(database.FilePath);)
Thanks for reporting the issue.
The second part should not really be a problem since File.Delete()
does not throw an exception if the file to be deleted does not exist.
Did you check what type of exception is thrown?