通過 WiX 安裝程序,我安裝了我的 Windows 應用程序,并且正在c:\ProgramFiles使用 .exe 和所需的 dll創建文件夾。在運行 .exe 時,我得到了System.UnauthorizedAccessException.如果有任何有用的建議,請告訴我。請查找以下事件日志以供參考。Application: xxxxxxx.exeFramework Version: v1.0.0Description: The process was terminated due to an unhandled exception.Exception Info: System.UnauthorizedAccessException at System.IO.__Error.WinIOError(Int32, System.String) at System.IO.FileStream.Init(System.String, System.IO.FileMode, System.IO.FileAccess, Int32, Boolean, System.IO.FileShare, Int32, System.IO.FileOptions, SECURITY_ATTRIBUTES, System.String, Boolean, Boolean, Boolean) at System.IO.FileStream..ctor(System.String, System.IO.FileMode, System.IO.FileAccess, System.IO.FileShare, Int32, System.IO.FileOptions, System.String, Boolean, Boolean, Boolean) at System.IO.StreamWriter.CreateFile(System.String, Boolean, Boolean) at System.IO.StreamWriter..ctor(System.String, Boolean, System.Text.Encoding, Int32, Boolean) at System.IO.StreamWriter..ctor(System.String, Boolean) at System.IO.File.AppendText(System.String)
添加回答
舉報
0/150
提交
取消