[問題] 執行時 發生授權錯誤訊息

看板C_Sharp (C#)作者 (皮老闆)時間13年前 (2011/11/26 14:48), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
執行一個.net上運行的程式,結果出現以下訊息 如需叫用 Just-In-Time (JIT) 偵錯的詳細資料, 請參閱本訊息結尾處 (而非這個對話方塊) 的資訊。 ************** 例外狀況文字 ************** System.Security.SecurityException: 不允許要求的登錄使用權。 於 System.ThrowHelper.ThrowSecurityException(ExceptionResource resource) 於 Microsoft.Win32.RegistryKey.OpenSubKey(String name, Boolean writable) 於 System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent) 於 System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) 於 System.Windows.Forms.Control.WndProc(Message& m) 於 System.Windows.Forms.ButtonBase.WndProc(Message& m) 於 System.Windows.Forms.Button.WndProc(Message& m) 於 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) 於 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) 於 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) 失敗組件的區域: MyComputer...(略) 至regeidt內的eventlog開放所有權限,還是一樣. 該如何解決? -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 221.120.68.221
文章代碼(AID): #1Eq8l5kx (C_Sharp)
文章代碼(AID): #1Eq8l5kx (C_Sharp)