当我运行下面的代码时,我的控制台应用程序输出:
“未处理的异常:System.IO.IOException:不支持该请求。”
static void Main()
{
var xmlFile = "Encrypt.xml";
File.Encrypt(xmlFile);
}
我正在运行 Windows 7 Home Premium,使用 Visual Studio 2010 进行编码,并使用 C# 进行编码。
有人可以告诉我出了什么问题吗?
最佳答案
这个InformIT文章似乎表明它仅在专业版及以上版本上受支持。
总结:
EFS is included in Windows XP Professional; Windows Vista Business, Enterprise, and Ultimate; and the Professional, Enterprise, and Ultimate editions of Windows 7.
关于c# - Windows 7 Home Premium 是否允许 (File.Encrypt)?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5441727/