Saturday, November 17, 2012

Path1 cannot be NULL error received when calling the DeleteFingerprints Action

Abstract

When calling the Datacap DeleteFingerprints function, the following error is in the rss log:
System.ArgumentNullException: Value cannot be null. Parameter name: path1
at System.IO.Path.Combine(String path1, String path2)
at Datacap.Libraries.FingerprintMaintenance.Actions.DeleteFingerprint(String ID)

Signs

The application aborts when trying to delete fingerprint files and fingerprints from the fingerprint database. The fingerprint is deleted from the database, but the fingerprint files are not deleted from the fingerprint folder.

Reason & Solution


The path to the fingerprint folder does not exist.

To resolve this add the following call to the application:

SetFingerprintDir("@APPPATH(fingerprint)") --to set the path to the folder that contains the fingerprint files.

 

No comments:

Post a Comment