【发布时间】:2016-01-21 18:04:01
【问题描述】:
我正在这样做,这在以前有效:
var di = new DirectoryInfo("FolderOnSharedDrive");
var files = di.GetFiles("*");
我现在有这个例外,我能看到的唯一区别是我现在有 Windows 10。
Exception thrown: 'System.IO.IOException' in mscorlib.dll
Additional information: The target account name is incorrect.
【问题讨论】:
-
这是一个低级 Windows 错误,ERROR_WRONG_TARGET_NAME。提供共享的机器对您使用的用户帐户不满意。这往往会在您更新操作系统时发生。
标签: c# .net ioexception directoryinfo mscorlib