亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

在程序文件下運行 .exe 時出現 System.Unauthorized

在程序文件下運行 .exe 時出現 System.Unauthorized

C#
精慕HU 2021-07-09 18:03:05
通過 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)
查看完整描述

3 回答

?
喵喔喔

TA貢獻1735條經驗 獲得超5個贊

打開wix 嘗試安裝的項目的項目屬性。

安檢

并將安全設置設置為

http://img1.sycdn.imooc.com//60e965220001044012900425.jpg

查看完整回答
反對 回復 2021-07-10
  • 3 回答
  • 0 關注
  • 395 瀏覽

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號