[英]file not found exception on existing file in system32 directory
I run my app as administrator. 我以管理员身份运行我的应用。 However, I get an exception here 但是,我这里有一个例外
var myFileVersionInfo = FileVersionInfo.GetVersionInfo(fileName);
when filename is "C:\\Windows\\System32\\WFS.exe". 当文件名是“ C:\\ Windows \\ System32 \\ WFS.exe”时。
The file does really exist. 该文件确实存在。 What should I do to fix it? 我该怎么解决?
Any help will be appreciated! 任何帮助将不胜感激!
解决方案是取消选中“首选32位”(“项目”>“属性”>“构建”选项卡)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.