You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 28, 2021. It is now read-only.
Hi, I am trying to run TestApplication. I changed the first line from const char driveLetter = 'E' to const char driveLetter='C', and get this error while running:
Exception thrown: 'System.ArgumentException' in RawDiskLib.dll
An unhandled exception of type 'System.ArgumentException' occurred in RawDiskLib.dll
Invalid diskName: \\.\C:
Also, both NTFSDirectoryTests (3) and NTFSFileTests(3) failed because of the same exception at the line RawDisk disk = new RawDisk(driveLetter);.
Thanks!
The text was updated successfully, but these errors were encountered:
Solved. Run VS with Admin privilege and this problem will go away.
However the TestApplication and unit tests still cannot proceed, for unit tests it ran into exception System.InvalidOperationException: Sequence contains no matching element.
chaojian-zhang
changed the title
Invalid Drive Name
Cannot Run TestApplication and Failed Unit Tests ("Invalid Drive Name" and "Sequence contains no matching element")
Aug 14, 2019
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi, I am trying to run TestApplication. I changed the first line from
const char driveLetter = 'E'
toconst char driveLetter='C'
, and get this error while running:Also, both NTFSDirectoryTests (3) and NTFSFileTests(3) failed because of the same exception at the line
RawDisk disk = new RawDisk(driveLetter);
.Thanks!
The text was updated successfully, but these errors were encountered: