Fw: [問題] 執行時 發生授權錯誤訊息
※ [本文轉錄自 C_Sharp 看板 #1Eq8l5kx ]
作者: sohumi (皮老闆) 看板: C_Sharp
標題: [問題] 執行時 發生授權錯誤訊息
時間: Sat Nov 26 14:48:32 2011
執行一個.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
※ 發信站: 批踢踢實業坊(ptt.cc)
※ 轉錄者: sohumi (221.120.68.221), 時間: 11/26/2011 14:49:14