Not able to monitor map drive if File system property is VFS and FAT,Directory.GetAccessControl(Path) API throw exception.

sachin kumar rajak 1 Reputation point
2021-04-19T16:46:45.4+00:00

We have created 3 MAP drive of our 3 different MFP and NAS in our PC. Z:/ ,X:/ and Y:/
File system property of Z:/ is NTFS and for X:/ is VFS and for Y:/ is FAT.

we are able to Monitor for NTFS file system MAP drive(Z:/) through our WPF Application .

But for VFS(X:/) or FAT(Y:) MFP's File system property
Directory.GetAccessControl(Path) API method throw below system exception. And unbale to Monitor the MAP drive

Method failed with unexpected error code 50.

we did not get any clue why this system exception coming for X:/ and Y:/ .and why no any exception came for Z:/ and other NTFS local MAP drive .

Developer technologies | C#
Developer technologies | C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
{count} votes

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.