某些用户帐户没有出现.NET异常

时间:2012-01-25 10:17:04

标签: .net vb.net exception user-accounts administrator

我在VB.NET应用程序中遇到错误,该错误显示了以下信息:

System.ArgumentNullException: 'name' argument cannot be null.
Parameter name: name
at System.Data.DataColumnCollection.get_Item(String name)
at System.Data.DataRow.GetDataColumn(String columnName)
at System.Data.DataRow.get_Item(String columnName)
at SiWaPro.Utilities.GetLabel(String frmName, String ctrlname)
at SiWaPro.frmHaupt.Beschriften(Control ctrl)
at SiWaPro.frmHaupt.frmHaupt_Load(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

但是,当我以管理员身份登录时,错误才会出现,但是当我将该软件用作“普通”用户时,则不会出现错误。

这可能是什么原因?是否存在依赖于当前用户帐户的.NET运行时参数?

0 个答案:

没有答案