通过查看日志,我可以看到Process.Start()失败了,因为它找不到文件。问题是,我们将字符串url传递给Start()方法,因此我无法理解为什么它会生成此消息。下面是日志中的异常: at System.Diagnostics.Process.StartWithShellExecuteExSystem.Diagnostics.Process.Start(String fileName)
"System.ComponentModel.Win32Exception:‘试图使用工作目录’C:\WINDOWS\system32 32‘启动进程'C:\Users\Documents\helpfile.pdfProcess.Start("C:\\Users\\<username>\\Documents\\helpfile.pdf"); // removed the username here and above}\\helpfile.pdf";
Proc