作者sohumi (皮老板)
看板Visual_Basic
标题Fw: [问题] 执行时 发生授权错误讯息
时间Sat Nov 26 14:49:14 2011
※ [本文转录自 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